diff --git a/go/gen/sift/policies/v1/policies.pb.go b/go/gen/sift/policies/v1/policies.pb.go new file mode 100644 index 000000000..af7825760 --- /dev/null +++ b/go/gen/sift/policies/v1/policies.pb.go @@ -0,0 +1,1294 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc (unknown) +// source: sift/policies/v1/policies.proto + +package policiesv1 + +import ( + _ "github.com/sift-stack/sift/go/gen/buf/validate" + _ "github.com/sift-stack/sift/go/gen/google/api" + _ "github.com/sift-stack/sift/go/gen/protoc-gen-openapiv2/options" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Policy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PolicyId string `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` + OrganizationId string `protobuf:"bytes,4,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + CreatedByUserId string `protobuf:"bytes,5,opt,name=created_by_user_id,json=createdByUserId,proto3" json:"created_by_user_id,omitempty"` + ModifiedByUserId string `protobuf:"bytes,6,opt,name=modified_by_user_id,json=modifiedByUserId,proto3" json:"modified_by_user_id,omitempty"` + CreatedDate *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_date,json=createdDate,proto3" json:"created_date,omitempty"` + ModifiedDate *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=modified_date,json=modifiedDate,proto3" json:"modified_date,omitempty"` + // Policy rules/configuration + Configuration *PolicyConfiguration `protobuf:"bytes,9,opt,name=configuration,proto3" json:"configuration,omitempty"` + // Reference to the current policy version ID + PolicyVersionId string `protobuf:"bytes,10,opt,name=policy_version_id,json=policyVersionId,proto3" json:"policy_version_id,omitempty"` + // The date the policy was archived. + ArchivedDate *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=archived_date,json=archivedDate,proto3" json:"archived_date,omitempty"` + IsArchived bool `protobuf:"varint,12,opt,name=is_archived,json=isArchived,proto3" json:"is_archived,omitempty"` + // Optional version number for this policy + Version *int32 `protobuf:"varint,13,opt,name=version,proto3,oneof" json:"version,omitempty"` + // Optional notes for this version + VersionNotes *string `protobuf:"bytes,14,opt,name=version_notes,json=versionNotes,proto3,oneof" json:"version_notes,omitempty"` + // Auto-generated change message for this version + GeneratedChangeMessage *string `protobuf:"bytes,15,opt,name=generated_change_message,json=generatedChangeMessage,proto3,oneof" json:"generated_change_message,omitempty"` +} + +func (x *Policy) Reset() { + *x = Policy{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Policy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Policy) ProtoMessage() {} + +func (x *Policy) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Policy.ProtoReflect.Descriptor instead. +func (*Policy) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{0} +} + +func (x *Policy) GetPolicyId() string { + if x != nil { + return x.PolicyId + } + return "" +} + +func (x *Policy) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Policy) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +func (x *Policy) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +func (x *Policy) GetCreatedByUserId() string { + if x != nil { + return x.CreatedByUserId + } + return "" +} + +func (x *Policy) GetModifiedByUserId() string { + if x != nil { + return x.ModifiedByUserId + } + return "" +} + +func (x *Policy) GetCreatedDate() *timestamppb.Timestamp { + if x != nil { + return x.CreatedDate + } + return nil +} + +func (x *Policy) GetModifiedDate() *timestamppb.Timestamp { + if x != nil { + return x.ModifiedDate + } + return nil +} + +func (x *Policy) GetConfiguration() *PolicyConfiguration { + if x != nil { + return x.Configuration + } + return nil +} + +func (x *Policy) GetPolicyVersionId() string { + if x != nil { + return x.PolicyVersionId + } + return "" +} + +func (x *Policy) GetArchivedDate() *timestamppb.Timestamp { + if x != nil { + return x.ArchivedDate + } + return nil +} + +func (x *Policy) GetIsArchived() bool { + if x != nil { + return x.IsArchived + } + return false +} + +func (x *Policy) GetVersion() int32 { + if x != nil && x.Version != nil { + return *x.Version + } + return 0 +} + +func (x *Policy) GetVersionNotes() string { + if x != nil && x.VersionNotes != nil { + return *x.VersionNotes + } + return "" +} + +func (x *Policy) GetGeneratedChangeMessage() string { + if x != nil && x.GeneratedChangeMessage != nil { + return *x.GeneratedChangeMessage + } + return "" +} + +// PolicyConfiguration represents the configuration and rules for a policy. +// Expects a string containing a policy in the Cedar format +// https://docs.cedarpolicy.com/policies/syntax-policy.html +type PolicyConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CedarPolicy string `protobuf:"bytes,1,opt,name=cedar_policy,json=cedarPolicy,proto3" json:"cedar_policy,omitempty"` +} + +func (x *PolicyConfiguration) Reset() { + *x = PolicyConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PolicyConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PolicyConfiguration) ProtoMessage() {} + +func (x *PolicyConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PolicyConfiguration.ProtoReflect.Descriptor instead. +func (*PolicyConfiguration) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{1} +} + +func (x *PolicyConfiguration) GetCedarPolicy() string { + if x != nil { + return x.CedarPolicy + } + return "" +} + +// The request for a call to `PolicyService_GetPolicy`. +type GetPolicyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PolicyId string `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"` +} + +func (x *GetPolicyRequest) Reset() { + *x = GetPolicyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPolicyRequest) ProtoMessage() {} + +func (x *GetPolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPolicyRequest.ProtoReflect.Descriptor instead. +func (*GetPolicyRequest) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{2} +} + +func (x *GetPolicyRequest) GetPolicyId() string { + if x != nil { + return x.PolicyId + } + return "" +} + +// The response of a call to `PolicyService_GetPolicy`. +type GetPolicyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` +} + +func (x *GetPolicyResponse) Reset() { + *x = GetPolicyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPolicyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPolicyResponse) ProtoMessage() {} + +func (x *GetPolicyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPolicyResponse.ProtoReflect.Descriptor instead. +func (*GetPolicyResponse) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{3} +} + +func (x *GetPolicyResponse) GetPolicy() *Policy { + if x != nil { + return x.Policy + } + return nil +} + +// The request for a call to `PolicyService_ListPolicies` to retrieve policies. +type ListPoliciesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The maximum number of policies to return. The service may return fewer than this value. + // If unspecified, at most 50 policies will be returned. The maximum value is 100; values above + // 100 will be coerced to 100. Optional. + PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token, received from a previous `ListPolicies` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListPolicies` must match + // the call that provided the page token. Optional. + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are `policy_id`, `organization_id`, `name`, `description`, + // `created_by_user_id`, `modified_by_user_id`, `created_date`, `modified_date`, `archived_date`, and `is_archived`. + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + // For more information about the fields used for filtering, please refer to [this definition](/docs/api/grpc/protocol-buffers/policies#policy). Optional. + Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` + // How to order the retrieved policies. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date`, `modified_date`, and `name`. + // If left empty, items are ordered by `created_date` in descending order (newest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "created_date desc,modified_date" + OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + // Whether to include archived policies in the response. If false or unset, archived policies are excluded. + IncludeArchived bool `protobuf:"varint,6,opt,name=include_archived,json=includeArchived,proto3" json:"include_archived,omitempty"` +} + +func (x *ListPoliciesRequest) Reset() { + *x = ListPoliciesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPoliciesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPoliciesRequest) ProtoMessage() {} + +func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPoliciesRequest.ProtoReflect.Descriptor instead. +func (*ListPoliciesRequest) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{4} +} + +func (x *ListPoliciesRequest) GetPageSize() uint32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListPoliciesRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListPoliciesRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ListPoliciesRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +func (x *ListPoliciesRequest) GetIncludeArchived() bool { + if x != nil { + return x.IncludeArchived + } + return false +} + +// The result of a call to `PolicyService_ListPolicies`. +type ListPoliciesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Policies []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListPoliciesResponse) Reset() { + *x = ListPoliciesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPoliciesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPoliciesResponse) ProtoMessage() {} + +func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPoliciesResponse.ProtoReflect.Descriptor instead. +func (*ListPoliciesResponse) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{5} +} + +func (x *ListPoliciesResponse) GetPolicies() []*Policy { + if x != nil { + return x.Policies + } + return nil +} + +func (x *ListPoliciesResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +// The request for a call to `PolicyService_CreatePolicy` to create a new policy. +type CreatePolicyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"` + // Policy rules/configuration + Configuration *PolicyConfiguration `protobuf:"bytes,3,opt,name=configuration,proto3" json:"configuration,omitempty"` + // Optional notes for this version + VersionNotes *string `protobuf:"bytes,4,opt,name=version_notes,json=versionNotes,proto3,oneof" json:"version_notes,omitempty"` +} + +func (x *CreatePolicyRequest) Reset() { + *x = CreatePolicyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreatePolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreatePolicyRequest) ProtoMessage() {} + +func (x *CreatePolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreatePolicyRequest.ProtoReflect.Descriptor instead. +func (*CreatePolicyRequest) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{6} +} + +func (x *CreatePolicyRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreatePolicyRequest) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +func (x *CreatePolicyRequest) GetConfiguration() *PolicyConfiguration { + if x != nil { + return x.Configuration + } + return nil +} + +func (x *CreatePolicyRequest) GetVersionNotes() string { + if x != nil && x.VersionNotes != nil { + return *x.VersionNotes + } + return "" +} + +// The response of a call to `PolicyService_CreatePolicy`. +type CreatePolicyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` +} + +func (x *CreatePolicyResponse) Reset() { + *x = CreatePolicyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreatePolicyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreatePolicyResponse) ProtoMessage() {} + +func (x *CreatePolicyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreatePolicyResponse.ProtoReflect.Descriptor instead. +func (*CreatePolicyResponse) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{7} +} + +func (x *CreatePolicyResponse) GetPolicy() *Policy { + if x != nil { + return x.Policy + } + return nil +} + +// The request for a call to `PolicyService_UpdatePolicy` to update a policy. +type UpdatePolicyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` + // The list of fields to be updated. The fields available to be updated are `name`, `description`, `configuration`, and `is_archived`. + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Optional notes for the new policy version when configuration changes + VersionNotes *string `protobuf:"bytes,3,opt,name=version_notes,json=versionNotes,proto3,oneof" json:"version_notes,omitempty"` +} + +func (x *UpdatePolicyRequest) Reset() { + *x = UpdatePolicyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdatePolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdatePolicyRequest) ProtoMessage() {} + +func (x *UpdatePolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdatePolicyRequest.ProtoReflect.Descriptor instead. +func (*UpdatePolicyRequest) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{8} +} + +func (x *UpdatePolicyRequest) GetPolicy() *Policy { + if x != nil { + return x.Policy + } + return nil +} + +func (x *UpdatePolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.UpdateMask + } + return nil +} + +func (x *UpdatePolicyRequest) GetVersionNotes() string { + if x != nil && x.VersionNotes != nil { + return *x.VersionNotes + } + return "" +} + +// The response of a call to `PolicyService_UpdatePolicy`. +type UpdatePolicyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` +} + +func (x *UpdatePolicyResponse) Reset() { + *x = UpdatePolicyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdatePolicyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdatePolicyResponse) ProtoMessage() {} + +func (x *UpdatePolicyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdatePolicyResponse.ProtoReflect.Descriptor instead. +func (*UpdatePolicyResponse) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{9} +} + +func (x *UpdatePolicyResponse) GetPolicy() *Policy { + if x != nil { + return x.Policy + } + return nil +} + +// The request for a call to `PolicyService_ArchivePolicy` to archive a policy. +type ArchivePolicyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PolicyId string `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"` +} + +func (x *ArchivePolicyRequest) Reset() { + *x = ArchivePolicyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchivePolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchivePolicyRequest) ProtoMessage() {} + +func (x *ArchivePolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchivePolicyRequest.ProtoReflect.Descriptor instead. +func (*ArchivePolicyRequest) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{10} +} + +func (x *ArchivePolicyRequest) GetPolicyId() string { + if x != nil { + return x.PolicyId + } + return "" +} + +// The response of a call to `PolicyService_ArchivePolicy`. +type ArchivePolicyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` +} + +func (x *ArchivePolicyResponse) Reset() { + *x = ArchivePolicyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_policies_v1_policies_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchivePolicyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchivePolicyResponse) ProtoMessage() {} + +func (x *ArchivePolicyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_policies_v1_policies_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchivePolicyResponse.ProtoReflect.Descriptor instead. +func (*ArchivePolicyResponse) Descriptor() ([]byte, []int) { + return file_sift_policies_v1_policies_proto_rawDescGZIP(), []int{11} +} + +func (x *ArchivePolicyResponse) GetPolicy() *Policy { + if x != nil { + return x.Policy + } + return nil +} + +var File_sift_policies_v1_policies_proto protoreflect.FileDescriptor + +var file_sift_policies_v1_policies_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x73, 0x69, 0x66, 0x74, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x10, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, + 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, + 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x86, 0x07, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x28, 0x0a, + 0x09, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x08, 0x70, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x2a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x34, 0x0a, 0x0f, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x38, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, + 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, + 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x0f, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x13, + 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, + 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x10, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, + 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x0d, + 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x44, 0x61, + 0x74, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x11, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x0f, 0x70, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x44, 0x0a, + 0x0d, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x44, + 0x61, 0x74, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x69, + 0x73, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, + 0x01, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x2d, 0x0a, + 0x0d, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x02, 0x52, 0x0c, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x42, 0x0a, 0x18, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, + 0xe0, 0x41, 0x01, 0x48, 0x03, 0x52, 0x16, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, + 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x10, 0x0a, 0x0e, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x1b, + 0x0a, 0x19, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x38, 0x0a, 0x13, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x65, 0x64, 0x61, 0x72, 0x5f, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x65, 0x64, 0x61, 0x72, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x3c, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x09, 0x70, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, + 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, + 0xc8, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, + 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, + 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, + 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, + 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, + 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x2e, 0x0a, 0x10, 0x69, 0x6e, + 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, + 0x64, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x22, 0x74, 0x0a, 0x14, 0x4c, 0x69, + 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x08, + 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, + 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x22, 0xfd, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x2a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x50, 0x0a, + 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x2d, 0x0a, 0x0d, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x01, 0x52, 0x0c, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x0e, + 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x10, + 0x0a, 0x0e, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, + 0x22, 0x4d, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, + 0xca, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, + 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x40, + 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, + 0x12, 0x28, 0x0a, 0x0d, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x74, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x4e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x22, 0x4d, 0x0a, 0x14, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03, + 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x40, 0x0a, 0x14, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x09, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, + 0xb0, 0x01, 0x01, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x22, 0x4e, 0x0a, + 0x15, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, + 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x91, 0x08, + 0x0a, 0x0d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0xb5, 0x01, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x92, 0x41, 0x38, 0x12, 0x09, 0x47, 0x65, 0x74, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x12, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, + 0x20, 0x61, 0x20, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x2a, 0x17, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd1, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x26, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x72, 0x92, 0x41, 0x57, 0x12, 0x0c, 0x4c, 0x69, + 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x1a, 0x2b, 0x52, 0x65, 0x74, 0x72, + 0x69, 0x65, 0x76, 0x65, 0x20, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x20, 0x75, 0x73, + 0x69, 0x6e, 0x67, 0x20, 0x61, 0x6e, 0x20, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x20, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x2a, 0x1a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x69, 0x65, 0x73, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xbd, 0x01, 0x0a, 0x0c, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x73, + 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5e, 0x92, 0x41, 0x40, + 0x12, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x14, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x6e, 0x65, 0x77, 0x20, 0x70, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x2e, 0x2a, 0x1a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x3a, 0x01, 0x2a, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xb9, 0x01, 0x0a, 0x0c, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x73, + 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, 0x92, 0x41, 0x3c, + 0x12, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x10, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, + 0x2a, 0x1a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x15, 0x3a, 0x01, 0x2a, 0x32, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xd0, 0x01, 0x0a, 0x0d, 0x41, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x26, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6e, 0x92, 0x41, 0x3f, 0x12, + 0x0d, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x11, + 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x20, 0x61, 0x20, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x2e, 0x2a, 0x1b, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x26, 0x22, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, + 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x69, + 0x64, 0x7d, 0x2f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x1a, 0x25, 0x92, 0x41, 0x22, 0x12, + 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x20, 0x41, 0x42, 0x41, 0x43, 0x20, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, + 0x2e, 0x42, 0xdb, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x70, + 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x69, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x66, 0x74, 0x2d, 0x73, 0x74, 0x61, + 0x63, 0x6b, 0x2f, 0x73, 0x69, 0x66, 0x74, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, + 0x69, 0x66, 0x74, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, + 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x58, + 0xaa, 0x02, 0x10, 0x53, 0x69, 0x66, 0x74, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, + 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x53, 0x69, 0x66, 0x74, 0x5c, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x69, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x53, 0x69, 0x66, 0x74, 0x5c, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x53, 0x69, 0x66, 0x74, 0x3a, 0x3a, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x92, 0x41, 0x12, 0x12, 0x10, 0x0a, + 0x0e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_sift_policies_v1_policies_proto_rawDescOnce sync.Once + file_sift_policies_v1_policies_proto_rawDescData = file_sift_policies_v1_policies_proto_rawDesc +) + +func file_sift_policies_v1_policies_proto_rawDescGZIP() []byte { + file_sift_policies_v1_policies_proto_rawDescOnce.Do(func() { + file_sift_policies_v1_policies_proto_rawDescData = protoimpl.X.CompressGZIP(file_sift_policies_v1_policies_proto_rawDescData) + }) + return file_sift_policies_v1_policies_proto_rawDescData +} + +var file_sift_policies_v1_policies_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_sift_policies_v1_policies_proto_goTypes = []interface{}{ + (*Policy)(nil), // 0: sift.policies.v1.Policy + (*PolicyConfiguration)(nil), // 1: sift.policies.v1.PolicyConfiguration + (*GetPolicyRequest)(nil), // 2: sift.policies.v1.GetPolicyRequest + (*GetPolicyResponse)(nil), // 3: sift.policies.v1.GetPolicyResponse + (*ListPoliciesRequest)(nil), // 4: sift.policies.v1.ListPoliciesRequest + (*ListPoliciesResponse)(nil), // 5: sift.policies.v1.ListPoliciesResponse + (*CreatePolicyRequest)(nil), // 6: sift.policies.v1.CreatePolicyRequest + (*CreatePolicyResponse)(nil), // 7: sift.policies.v1.CreatePolicyResponse + (*UpdatePolicyRequest)(nil), // 8: sift.policies.v1.UpdatePolicyRequest + (*UpdatePolicyResponse)(nil), // 9: sift.policies.v1.UpdatePolicyResponse + (*ArchivePolicyRequest)(nil), // 10: sift.policies.v1.ArchivePolicyRequest + (*ArchivePolicyResponse)(nil), // 11: sift.policies.v1.ArchivePolicyResponse + (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp + (*fieldmaskpb.FieldMask)(nil), // 13: google.protobuf.FieldMask +} +var file_sift_policies_v1_policies_proto_depIdxs = []int32{ + 12, // 0: sift.policies.v1.Policy.created_date:type_name -> google.protobuf.Timestamp + 12, // 1: sift.policies.v1.Policy.modified_date:type_name -> google.protobuf.Timestamp + 1, // 2: sift.policies.v1.Policy.configuration:type_name -> sift.policies.v1.PolicyConfiguration + 12, // 3: sift.policies.v1.Policy.archived_date:type_name -> google.protobuf.Timestamp + 0, // 4: sift.policies.v1.GetPolicyResponse.policy:type_name -> sift.policies.v1.Policy + 0, // 5: sift.policies.v1.ListPoliciesResponse.policies:type_name -> sift.policies.v1.Policy + 1, // 6: sift.policies.v1.CreatePolicyRequest.configuration:type_name -> sift.policies.v1.PolicyConfiguration + 0, // 7: sift.policies.v1.CreatePolicyResponse.policy:type_name -> sift.policies.v1.Policy + 0, // 8: sift.policies.v1.UpdatePolicyRequest.policy:type_name -> sift.policies.v1.Policy + 13, // 9: sift.policies.v1.UpdatePolicyRequest.update_mask:type_name -> google.protobuf.FieldMask + 0, // 10: sift.policies.v1.UpdatePolicyResponse.policy:type_name -> sift.policies.v1.Policy + 0, // 11: sift.policies.v1.ArchivePolicyResponse.policy:type_name -> sift.policies.v1.Policy + 2, // 12: sift.policies.v1.PolicyService.GetPolicy:input_type -> sift.policies.v1.GetPolicyRequest + 4, // 13: sift.policies.v1.PolicyService.ListPolicies:input_type -> sift.policies.v1.ListPoliciesRequest + 6, // 14: sift.policies.v1.PolicyService.CreatePolicy:input_type -> sift.policies.v1.CreatePolicyRequest + 8, // 15: sift.policies.v1.PolicyService.UpdatePolicy:input_type -> sift.policies.v1.UpdatePolicyRequest + 10, // 16: sift.policies.v1.PolicyService.ArchivePolicy:input_type -> sift.policies.v1.ArchivePolicyRequest + 3, // 17: sift.policies.v1.PolicyService.GetPolicy:output_type -> sift.policies.v1.GetPolicyResponse + 5, // 18: sift.policies.v1.PolicyService.ListPolicies:output_type -> sift.policies.v1.ListPoliciesResponse + 7, // 19: sift.policies.v1.PolicyService.CreatePolicy:output_type -> sift.policies.v1.CreatePolicyResponse + 9, // 20: sift.policies.v1.PolicyService.UpdatePolicy:output_type -> sift.policies.v1.UpdatePolicyResponse + 11, // 21: sift.policies.v1.PolicyService.ArchivePolicy:output_type -> sift.policies.v1.ArchivePolicyResponse + 17, // [17:22] is the sub-list for method output_type + 12, // [12:17] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_sift_policies_v1_policies_proto_init() } +func file_sift_policies_v1_policies_proto_init() { + if File_sift_policies_v1_policies_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_sift_policies_v1_policies_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Policy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_policies_v1_policies_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PolicyConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_policies_v1_policies_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPolicyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_policies_v1_policies_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPolicyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_policies_v1_policies_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPoliciesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_policies_v1_policies_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPoliciesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_policies_v1_policies_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreatePolicyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_policies_v1_policies_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreatePolicyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_policies_v1_policies_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdatePolicyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_policies_v1_policies_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdatePolicyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_policies_v1_policies_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchivePolicyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_policies_v1_policies_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchivePolicyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_sift_policies_v1_policies_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_sift_policies_v1_policies_proto_msgTypes[6].OneofWrappers = []interface{}{} + file_sift_policies_v1_policies_proto_msgTypes[8].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_sift_policies_v1_policies_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_sift_policies_v1_policies_proto_goTypes, + DependencyIndexes: file_sift_policies_v1_policies_proto_depIdxs, + MessageInfos: file_sift_policies_v1_policies_proto_msgTypes, + }.Build() + File_sift_policies_v1_policies_proto = out.File + file_sift_policies_v1_policies_proto_rawDesc = nil + file_sift_policies_v1_policies_proto_goTypes = nil + file_sift_policies_v1_policies_proto_depIdxs = nil +} diff --git a/go/gen/sift/policies/v1/policies.pb.gw.go b/go/gen/sift/policies/v1/policies.pb.gw.go new file mode 100644 index 000000000..cf8ac98bc --- /dev/null +++ b/go/gen/sift/policies/v1/policies.pb.gw.go @@ -0,0 +1,549 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: sift/policies/v1/policies.proto + +/* +Package policiesv1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package policiesv1 + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_PolicyService_GetPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client PolicyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetPolicyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["policy_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "policy_id") + } + + protoReq.PolicyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "policy_id", err) + } + + msg, err := client.GetPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_PolicyService_GetPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server PolicyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetPolicyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["policy_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "policy_id") + } + + protoReq.PolicyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "policy_id", err) + } + + msg, err := server.GetPolicy(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_PolicyService_ListPolicies_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_PolicyService_ListPolicies_0(ctx context.Context, marshaler runtime.Marshaler, client PolicyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListPoliciesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PolicyService_ListPolicies_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListPolicies(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_PolicyService_ListPolicies_0(ctx context.Context, marshaler runtime.Marshaler, server PolicyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListPoliciesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PolicyService_ListPolicies_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListPolicies(ctx, &protoReq) + return msg, metadata, err + +} + +func request_PolicyService_CreatePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client PolicyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreatePolicyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreatePolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_PolicyService_CreatePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server PolicyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreatePolicyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreatePolicy(ctx, &protoReq) + return msg, metadata, err + +} + +func request_PolicyService_UpdatePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client PolicyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdatePolicyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UpdatePolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_PolicyService_UpdatePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server PolicyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdatePolicyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UpdatePolicy(ctx, &protoReq) + return msg, metadata, err + +} + +func request_PolicyService_ArchivePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client PolicyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchivePolicyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["policy_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "policy_id") + } + + protoReq.PolicyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "policy_id", err) + } + + msg, err := client.ArchivePolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_PolicyService_ArchivePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server PolicyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchivePolicyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["policy_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "policy_id") + } + + protoReq.PolicyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "policy_id", err) + } + + msg, err := server.ArchivePolicy(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterPolicyServiceHandlerServer registers the http handlers for service PolicyService to "mux". +// UnaryRPC :call PolicyServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPolicyServiceHandlerFromEndpoint instead. +func RegisterPolicyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PolicyServiceServer) error { + + mux.Handle("GET", pattern_PolicyService_GetPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.policies.v1.PolicyService/GetPolicy", runtime.WithHTTPPathPattern("/api/v1/policies/{policy_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PolicyService_GetPolicy_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_PolicyService_GetPolicy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_PolicyService_ListPolicies_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.policies.v1.PolicyService/ListPolicies", runtime.WithHTTPPathPattern("/api/v1/policies")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PolicyService_ListPolicies_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_PolicyService_ListPolicies_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PolicyService_CreatePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.policies.v1.PolicyService/CreatePolicy", runtime.WithHTTPPathPattern("/api/v1/policies")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PolicyService_CreatePolicy_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_PolicyService_CreatePolicy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_PolicyService_UpdatePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.policies.v1.PolicyService/UpdatePolicy", runtime.WithHTTPPathPattern("/api/v1/policies")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PolicyService_UpdatePolicy_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_PolicyService_UpdatePolicy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PolicyService_ArchivePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.policies.v1.PolicyService/ArchivePolicy", runtime.WithHTTPPathPattern("/api/v1/policies/{policy_id}/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PolicyService_ArchivePolicy_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_PolicyService_ArchivePolicy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterPolicyServiceHandlerFromEndpoint is same as RegisterPolicyServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterPolicyServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterPolicyServiceHandler(ctx, mux, conn) +} + +// RegisterPolicyServiceHandler registers the http handlers for service PolicyService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterPolicyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterPolicyServiceHandlerClient(ctx, mux, NewPolicyServiceClient(conn)) +} + +// RegisterPolicyServiceHandlerClient registers the http handlers for service PolicyService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PolicyServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PolicyServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "PolicyServiceClient" to call the correct interceptors. +func RegisterPolicyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PolicyServiceClient) error { + + mux.Handle("GET", pattern_PolicyService_GetPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.policies.v1.PolicyService/GetPolicy", runtime.WithHTTPPathPattern("/api/v1/policies/{policy_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PolicyService_GetPolicy_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_PolicyService_GetPolicy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_PolicyService_ListPolicies_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.policies.v1.PolicyService/ListPolicies", runtime.WithHTTPPathPattern("/api/v1/policies")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PolicyService_ListPolicies_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_PolicyService_ListPolicies_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PolicyService_CreatePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.policies.v1.PolicyService/CreatePolicy", runtime.WithHTTPPathPattern("/api/v1/policies")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PolicyService_CreatePolicy_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_PolicyService_CreatePolicy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_PolicyService_UpdatePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.policies.v1.PolicyService/UpdatePolicy", runtime.WithHTTPPathPattern("/api/v1/policies")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PolicyService_UpdatePolicy_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_PolicyService_UpdatePolicy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PolicyService_ArchivePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.policies.v1.PolicyService/ArchivePolicy", runtime.WithHTTPPathPattern("/api/v1/policies/{policy_id}/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PolicyService_ArchivePolicy_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_PolicyService_ArchivePolicy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_PolicyService_GetPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "policies", "policy_id"}, "")) + + pattern_PolicyService_ListPolicies_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "policies"}, "")) + + pattern_PolicyService_CreatePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "policies"}, "")) + + pattern_PolicyService_UpdatePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "policies"}, "")) + + pattern_PolicyService_ArchivePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "policies", "policy_id", "archive"}, "")) +) + +var ( + forward_PolicyService_GetPolicy_0 = runtime.ForwardResponseMessage + + forward_PolicyService_ListPolicies_0 = runtime.ForwardResponseMessage + + forward_PolicyService_CreatePolicy_0 = runtime.ForwardResponseMessage + + forward_PolicyService_UpdatePolicy_0 = runtime.ForwardResponseMessage + + forward_PolicyService_ArchivePolicy_0 = runtime.ForwardResponseMessage +) diff --git a/go/gen/sift/policies/v1/policies_vtproto.pb.go b/go/gen/sift/policies/v1/policies_vtproto.pb.go new file mode 100644 index 000000000..d8c04ca0d --- /dev/null +++ b/go/gen/sift/policies/v1/policies_vtproto.pb.go @@ -0,0 +1,6097 @@ +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: sift/policies/v1/policies.proto + +package policiesv1 + +import ( + context "context" + fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" + fieldmaskpb1 "github.com/planetscale/vtprotobuf/types/known/fieldmaskpb" + timestamppb1 "github.com/planetscale/vtprotobuf/types/known/timestamppb" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + proto "google.golang.org/protobuf/proto" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +func (m *Policy) CloneVT() *Policy { + if m == nil { + return (*Policy)(nil) + } + r := new(Policy) + r.PolicyId = m.PolicyId + r.Name = m.Name + r.OrganizationId = m.OrganizationId + r.CreatedByUserId = m.CreatedByUserId + r.ModifiedByUserId = m.ModifiedByUserId + r.CreatedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.CreatedDate).CloneVT()) + r.ModifiedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.ModifiedDate).CloneVT()) + r.Configuration = m.Configuration.CloneVT() + r.PolicyVersionId = m.PolicyVersionId + r.ArchivedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.ArchivedDate).CloneVT()) + r.IsArchived = m.IsArchived + if rhs := m.Description; rhs != nil { + tmpVal := *rhs + r.Description = &tmpVal + } + if rhs := m.Version; rhs != nil { + tmpVal := *rhs + r.Version = &tmpVal + } + if rhs := m.VersionNotes; rhs != nil { + tmpVal := *rhs + r.VersionNotes = &tmpVal + } + if rhs := m.GeneratedChangeMessage; rhs != nil { + tmpVal := *rhs + r.GeneratedChangeMessage = &tmpVal + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Policy) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *PolicyConfiguration) CloneVT() *PolicyConfiguration { + if m == nil { + return (*PolicyConfiguration)(nil) + } + r := new(PolicyConfiguration) + r.CedarPolicy = m.CedarPolicy + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *PolicyConfiguration) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetPolicyRequest) CloneVT() *GetPolicyRequest { + if m == nil { + return (*GetPolicyRequest)(nil) + } + r := new(GetPolicyRequest) + r.PolicyId = m.PolicyId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetPolicyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetPolicyResponse) CloneVT() *GetPolicyResponse { + if m == nil { + return (*GetPolicyResponse)(nil) + } + r := new(GetPolicyResponse) + r.Policy = m.Policy.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetPolicyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListPoliciesRequest) CloneVT() *ListPoliciesRequest { + if m == nil { + return (*ListPoliciesRequest)(nil) + } + r := new(ListPoliciesRequest) + r.PageSize = m.PageSize + r.PageToken = m.PageToken + r.Filter = m.Filter + r.OrderBy = m.OrderBy + r.IncludeArchived = m.IncludeArchived + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListPoliciesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListPoliciesResponse) CloneVT() *ListPoliciesResponse { + if m == nil { + return (*ListPoliciesResponse)(nil) + } + r := new(ListPoliciesResponse) + r.NextPageToken = m.NextPageToken + if rhs := m.Policies; rhs != nil { + tmpContainer := make([]*Policy, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Policies = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListPoliciesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreatePolicyRequest) CloneVT() *CreatePolicyRequest { + if m == nil { + return (*CreatePolicyRequest)(nil) + } + r := new(CreatePolicyRequest) + r.Name = m.Name + r.Configuration = m.Configuration.CloneVT() + if rhs := m.Description; rhs != nil { + tmpVal := *rhs + r.Description = &tmpVal + } + if rhs := m.VersionNotes; rhs != nil { + tmpVal := *rhs + r.VersionNotes = &tmpVal + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreatePolicyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreatePolicyResponse) CloneVT() *CreatePolicyResponse { + if m == nil { + return (*CreatePolicyResponse)(nil) + } + r := new(CreatePolicyResponse) + r.Policy = m.Policy.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreatePolicyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UpdatePolicyRequest) CloneVT() *UpdatePolicyRequest { + if m == nil { + return (*UpdatePolicyRequest)(nil) + } + r := new(UpdatePolicyRequest) + r.Policy = m.Policy.CloneVT() + r.UpdateMask = (*fieldmaskpb.FieldMask)((*fieldmaskpb1.FieldMask)(m.UpdateMask).CloneVT()) + if rhs := m.VersionNotes; rhs != nil { + tmpVal := *rhs + r.VersionNotes = &tmpVal + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UpdatePolicyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UpdatePolicyResponse) CloneVT() *UpdatePolicyResponse { + if m == nil { + return (*UpdatePolicyResponse)(nil) + } + r := new(UpdatePolicyResponse) + r.Policy = m.Policy.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UpdatePolicyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchivePolicyRequest) CloneVT() *ArchivePolicyRequest { + if m == nil { + return (*ArchivePolicyRequest)(nil) + } + r := new(ArchivePolicyRequest) + r.PolicyId = m.PolicyId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchivePolicyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchivePolicyResponse) CloneVT() *ArchivePolicyResponse { + if m == nil { + return (*ArchivePolicyResponse)(nil) + } + r := new(ArchivePolicyResponse) + r.Policy = m.Policy.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchivePolicyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (this *Policy) EqualVT(that *Policy) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PolicyId != that.PolicyId { + return false + } + if this.Name != that.Name { + return false + } + if p, q := this.Description, that.Description; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) { + return false + } + if this.OrganizationId != that.OrganizationId { + return false + } + if this.CreatedByUserId != that.CreatedByUserId { + return false + } + if this.ModifiedByUserId != that.ModifiedByUserId { + return false + } + if !(*timestamppb1.Timestamp)(this.CreatedDate).EqualVT((*timestamppb1.Timestamp)(that.CreatedDate)) { + return false + } + if !(*timestamppb1.Timestamp)(this.ModifiedDate).EqualVT((*timestamppb1.Timestamp)(that.ModifiedDate)) { + return false + } + if !this.Configuration.EqualVT(that.Configuration) { + return false + } + if this.PolicyVersionId != that.PolicyVersionId { + return false + } + if !(*timestamppb1.Timestamp)(this.ArchivedDate).EqualVT((*timestamppb1.Timestamp)(that.ArchivedDate)) { + return false + } + if this.IsArchived != that.IsArchived { + return false + } + if p, q := this.Version, that.Version; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) { + return false + } + if p, q := this.VersionNotes, that.VersionNotes; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) { + return false + } + if p, q := this.GeneratedChangeMessage, that.GeneratedChangeMessage; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Policy) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Policy) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PolicyConfiguration) EqualVT(that *PolicyConfiguration) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.CedarPolicy != that.CedarPolicy { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PolicyConfiguration) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PolicyConfiguration) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetPolicyRequest) EqualVT(that *GetPolicyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PolicyId != that.PolicyId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetPolicyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetPolicyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetPolicyResponse) EqualVT(that *GetPolicyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Policy.EqualVT(that.Policy) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetPolicyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetPolicyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListPoliciesRequest) EqualVT(that *ListPoliciesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PageSize != that.PageSize { + return false + } + if this.PageToken != that.PageToken { + return false + } + if this.Filter != that.Filter { + return false + } + if this.OrderBy != that.OrderBy { + return false + } + if this.IncludeArchived != that.IncludeArchived { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListPoliciesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListPoliciesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListPoliciesResponse) EqualVT(that *ListPoliciesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Policies) != len(that.Policies) { + return false + } + for i, vx := range this.Policies { + vy := that.Policies[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Policy{} + } + if q == nil { + q = &Policy{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.NextPageToken != that.NextPageToken { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListPoliciesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListPoliciesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreatePolicyRequest) EqualVT(that *CreatePolicyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Name != that.Name { + return false + } + if p, q := this.Description, that.Description; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) { + return false + } + if !this.Configuration.EqualVT(that.Configuration) { + return false + } + if p, q := this.VersionNotes, that.VersionNotes; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreatePolicyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreatePolicyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreatePolicyResponse) EqualVT(that *CreatePolicyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Policy.EqualVT(that.Policy) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreatePolicyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreatePolicyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UpdatePolicyRequest) EqualVT(that *UpdatePolicyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Policy.EqualVT(that.Policy) { + return false + } + if !(*fieldmaskpb1.FieldMask)(this.UpdateMask).EqualVT((*fieldmaskpb1.FieldMask)(that.UpdateMask)) { + return false + } + if p, q := this.VersionNotes, that.VersionNotes; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UpdatePolicyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UpdatePolicyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UpdatePolicyResponse) EqualVT(that *UpdatePolicyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Policy.EqualVT(that.Policy) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UpdatePolicyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UpdatePolicyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchivePolicyRequest) EqualVT(that *ArchivePolicyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PolicyId != that.PolicyId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchivePolicyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchivePolicyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchivePolicyResponse) EqualVT(that *ArchivePolicyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Policy.EqualVT(that.Policy) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchivePolicyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchivePolicyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// PolicyServiceClient is the client API for PolicyService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type PolicyServiceClient interface { + // Retrieve a policy + GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error) + // Retrieve policies using an optional filter. + ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error) + // Create a policy + CreatePolicy(ctx context.Context, in *CreatePolicyRequest, opts ...grpc.CallOption) (*CreatePolicyResponse, error) + // Update a policy + UpdatePolicy(ctx context.Context, in *UpdatePolicyRequest, opts ...grpc.CallOption) (*UpdatePolicyResponse, error) + // Archive a policy + ArchivePolicy(ctx context.Context, in *ArchivePolicyRequest, opts ...grpc.CallOption) (*ArchivePolicyResponse, error) +} + +type policyServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPolicyServiceClient(cc grpc.ClientConnInterface) PolicyServiceClient { + return &policyServiceClient{cc} +} + +func (c *policyServiceClient) GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error) { + out := new(GetPolicyResponse) + err := c.cc.Invoke(ctx, "/sift.policies.v1.PolicyService/GetPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *policyServiceClient) ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error) { + out := new(ListPoliciesResponse) + err := c.cc.Invoke(ctx, "/sift.policies.v1.PolicyService/ListPolicies", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *policyServiceClient) CreatePolicy(ctx context.Context, in *CreatePolicyRequest, opts ...grpc.CallOption) (*CreatePolicyResponse, error) { + out := new(CreatePolicyResponse) + err := c.cc.Invoke(ctx, "/sift.policies.v1.PolicyService/CreatePolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *policyServiceClient) UpdatePolicy(ctx context.Context, in *UpdatePolicyRequest, opts ...grpc.CallOption) (*UpdatePolicyResponse, error) { + out := new(UpdatePolicyResponse) + err := c.cc.Invoke(ctx, "/sift.policies.v1.PolicyService/UpdatePolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *policyServiceClient) ArchivePolicy(ctx context.Context, in *ArchivePolicyRequest, opts ...grpc.CallOption) (*ArchivePolicyResponse, error) { + out := new(ArchivePolicyResponse) + err := c.cc.Invoke(ctx, "/sift.policies.v1.PolicyService/ArchivePolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PolicyServiceServer is the server API for PolicyService service. +// All implementations must embed UnimplementedPolicyServiceServer +// for forward compatibility +type PolicyServiceServer interface { + // Retrieve a policy + GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error) + // Retrieve policies using an optional filter. + ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) + // Create a policy + CreatePolicy(context.Context, *CreatePolicyRequest) (*CreatePolicyResponse, error) + // Update a policy + UpdatePolicy(context.Context, *UpdatePolicyRequest) (*UpdatePolicyResponse, error) + // Archive a policy + ArchivePolicy(context.Context, *ArchivePolicyRequest) (*ArchivePolicyResponse, error) + mustEmbedUnimplementedPolicyServiceServer() +} + +// UnimplementedPolicyServiceServer must be embedded to have forward compatible implementations. +type UnimplementedPolicyServiceServer struct { +} + +func (UnimplementedPolicyServiceServer) GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPolicy not implemented") +} +func (UnimplementedPolicyServiceServer) ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPolicies not implemented") +} +func (UnimplementedPolicyServiceServer) CreatePolicy(context.Context, *CreatePolicyRequest) (*CreatePolicyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreatePolicy not implemented") +} +func (UnimplementedPolicyServiceServer) UpdatePolicy(context.Context, *UpdatePolicyRequest) (*UpdatePolicyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdatePolicy not implemented") +} +func (UnimplementedPolicyServiceServer) ArchivePolicy(context.Context, *ArchivePolicyRequest) (*ArchivePolicyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ArchivePolicy not implemented") +} +func (UnimplementedPolicyServiceServer) mustEmbedUnimplementedPolicyServiceServer() {} + +// UnsafePolicyServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PolicyServiceServer will +// result in compilation errors. +type UnsafePolicyServiceServer interface { + mustEmbedUnimplementedPolicyServiceServer() +} + +func RegisterPolicyServiceServer(s grpc.ServiceRegistrar, srv PolicyServiceServer) { + s.RegisterService(&PolicyService_ServiceDesc, srv) +} + +func _PolicyService_GetPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PolicyServiceServer).GetPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.policies.v1.PolicyService/GetPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PolicyServiceServer).GetPolicy(ctx, req.(*GetPolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PolicyService_ListPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPoliciesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PolicyServiceServer).ListPolicies(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.policies.v1.PolicyService/ListPolicies", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PolicyServiceServer).ListPolicies(ctx, req.(*ListPoliciesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PolicyService_CreatePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreatePolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PolicyServiceServer).CreatePolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.policies.v1.PolicyService/CreatePolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PolicyServiceServer).CreatePolicy(ctx, req.(*CreatePolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PolicyService_UpdatePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdatePolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PolicyServiceServer).UpdatePolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.policies.v1.PolicyService/UpdatePolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PolicyServiceServer).UpdatePolicy(ctx, req.(*UpdatePolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PolicyService_ArchivePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ArchivePolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PolicyServiceServer).ArchivePolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.policies.v1.PolicyService/ArchivePolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PolicyServiceServer).ArchivePolicy(ctx, req.(*ArchivePolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// PolicyService_ServiceDesc is the grpc.ServiceDesc for PolicyService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PolicyService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "sift.policies.v1.PolicyService", + HandlerType: (*PolicyServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetPolicy", + Handler: _PolicyService_GetPolicy_Handler, + }, + { + MethodName: "ListPolicies", + Handler: _PolicyService_ListPolicies_Handler, + }, + { + MethodName: "CreatePolicy", + Handler: _PolicyService_CreatePolicy_Handler, + }, + { + MethodName: "UpdatePolicy", + Handler: _PolicyService_UpdatePolicy_Handler, + }, + { + MethodName: "ArchivePolicy", + Handler: _PolicyService_ArchivePolicy_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "sift/policies/v1/policies.proto", +} + +func (m *Policy) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Policy) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Policy) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.GeneratedChangeMessage != nil { + i -= len(*m.GeneratedChangeMessage) + copy(dAtA[i:], *m.GeneratedChangeMessage) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.GeneratedChangeMessage))) + i-- + dAtA[i] = 0x7a + } + if m.VersionNotes != nil { + i -= len(*m.VersionNotes) + copy(dAtA[i:], *m.VersionNotes) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.VersionNotes))) + i-- + dAtA[i] = 0x72 + } + if m.Version != nil { + i = protohelpers.EncodeVarint(dAtA, i, uint64(*m.Version)) + i-- + dAtA[i] = 0x68 + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x5a + } + if len(m.PolicyVersionId) > 0 { + i -= len(m.PolicyVersionId) + copy(dAtA[i:], m.PolicyVersionId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PolicyVersionId))) + i-- + dAtA[i] = 0x52 + } + if m.Configuration != nil { + size, err := m.Configuration.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + if m.ModifiedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + if len(m.ModifiedByUserId) > 0 { + i -= len(m.ModifiedByUserId) + copy(dAtA[i:], m.ModifiedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + i-- + dAtA[i] = 0x32 + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x2a + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x22 + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.PolicyId) > 0 { + i -= len(m.PolicyId) + copy(dAtA[i:], m.PolicyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PolicyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PolicyConfiguration) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PolicyConfiguration) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PolicyConfiguration) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.CedarPolicy) > 0 { + i -= len(m.CedarPolicy) + copy(dAtA[i:], m.CedarPolicy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CedarPolicy))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetPolicyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetPolicyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetPolicyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.PolicyId) > 0 { + i -= len(m.PolicyId) + copy(dAtA[i:], m.PolicyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PolicyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetPolicyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetPolicyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetPolicyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Policy != nil { + size, err := m.Policy.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListPoliciesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListPoliciesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListPoliciesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListPoliciesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListPoliciesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListPoliciesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.Policies) > 0 { + for iNdEx := len(m.Policies) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Policies[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *CreatePolicyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreatePolicyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreatePolicyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.VersionNotes != nil { + i -= len(*m.VersionNotes) + copy(dAtA[i:], *m.VersionNotes) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.VersionNotes))) + i-- + dAtA[i] = 0x22 + } + if m.Configuration != nil { + size, err := m.Configuration.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreatePolicyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreatePolicyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreatePolicyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Policy != nil { + size, err := m.Policy.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdatePolicyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdatePolicyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UpdatePolicyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.VersionNotes != nil { + i -= len(*m.VersionNotes) + copy(dAtA[i:], *m.VersionNotes) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.VersionNotes))) + i-- + dAtA[i] = 0x1a + } + if m.UpdateMask != nil { + size, err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Policy != nil { + size, err := m.Policy.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdatePolicyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdatePolicyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UpdatePolicyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Policy != nil { + size, err := m.Policy.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchivePolicyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchivePolicyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchivePolicyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.PolicyId) > 0 { + i -= len(m.PolicyId) + copy(dAtA[i:], m.PolicyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PolicyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchivePolicyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchivePolicyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchivePolicyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Policy != nil { + size, err := m.Policy.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Policy) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Policy) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *Policy) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.GeneratedChangeMessage != nil { + i -= len(*m.GeneratedChangeMessage) + copy(dAtA[i:], *m.GeneratedChangeMessage) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.GeneratedChangeMessage))) + i-- + dAtA[i] = 0x7a + } + if m.VersionNotes != nil { + i -= len(*m.VersionNotes) + copy(dAtA[i:], *m.VersionNotes) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.VersionNotes))) + i-- + dAtA[i] = 0x72 + } + if m.Version != nil { + i = protohelpers.EncodeVarint(dAtA, i, uint64(*m.Version)) + i-- + dAtA[i] = 0x68 + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x5a + } + if len(m.PolicyVersionId) > 0 { + i -= len(m.PolicyVersionId) + copy(dAtA[i:], m.PolicyVersionId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PolicyVersionId))) + i-- + dAtA[i] = 0x52 + } + if m.Configuration != nil { + size, err := m.Configuration.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + if m.ModifiedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + if len(m.ModifiedByUserId) > 0 { + i -= len(m.ModifiedByUserId) + copy(dAtA[i:], m.ModifiedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + i-- + dAtA[i] = 0x32 + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x2a + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x22 + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.PolicyId) > 0 { + i -= len(m.PolicyId) + copy(dAtA[i:], m.PolicyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PolicyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PolicyConfiguration) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PolicyConfiguration) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *PolicyConfiguration) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.CedarPolicy) > 0 { + i -= len(m.CedarPolicy) + copy(dAtA[i:], m.CedarPolicy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CedarPolicy))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetPolicyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetPolicyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetPolicyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.PolicyId) > 0 { + i -= len(m.PolicyId) + copy(dAtA[i:], m.PolicyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PolicyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetPolicyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetPolicyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetPolicyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Policy != nil { + size, err := m.Policy.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListPoliciesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListPoliciesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListPoliciesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListPoliciesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListPoliciesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListPoliciesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.Policies) > 0 { + for iNdEx := len(m.Policies) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Policies[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *CreatePolicyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreatePolicyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreatePolicyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.VersionNotes != nil { + i -= len(*m.VersionNotes) + copy(dAtA[i:], *m.VersionNotes) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.VersionNotes))) + i-- + dAtA[i] = 0x22 + } + if m.Configuration != nil { + size, err := m.Configuration.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreatePolicyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreatePolicyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreatePolicyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Policy != nil { + size, err := m.Policy.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdatePolicyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdatePolicyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UpdatePolicyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.VersionNotes != nil { + i -= len(*m.VersionNotes) + copy(dAtA[i:], *m.VersionNotes) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.VersionNotes))) + i-- + dAtA[i] = 0x1a + } + if m.UpdateMask != nil { + size, err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Policy != nil { + size, err := m.Policy.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdatePolicyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdatePolicyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UpdatePolicyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Policy != nil { + size, err := m.Policy.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchivePolicyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchivePolicyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchivePolicyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.PolicyId) > 0 { + i -= len(m.PolicyId) + copy(dAtA[i:], m.PolicyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PolicyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchivePolicyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchivePolicyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchivePolicyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Policy != nil { + size, err := m.Policy.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Policy) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PolicyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Description != nil { + l = len(*m.Description) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrganizationId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CreatedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ModifiedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.CreatedDate != nil { + l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ModifiedDate != nil { + l = (*timestamppb1.Timestamp)(m.ModifiedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Configuration != nil { + l = m.Configuration.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.PolicyVersionId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ArchivedDate != nil { + l = (*timestamppb1.Timestamp)(m.ArchivedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IsArchived { + n += 2 + } + if m.Version != nil { + n += 1 + protohelpers.SizeOfVarint(uint64(*m.Version)) + } + if m.VersionNotes != nil { + l = len(*m.VersionNotes) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.GeneratedChangeMessage != nil { + l = len(*m.GeneratedChangeMessage) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *PolicyConfiguration) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CedarPolicy) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *GetPolicyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PolicyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *GetPolicyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Policy != nil { + l = m.Policy.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ListPoliciesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Filter) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrderBy) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IncludeArchived { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *ListPoliciesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Policies) > 0 { + for _, e := range m.Policies { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *CreatePolicyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Description != nil { + l = len(*m.Description) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Configuration != nil { + l = m.Configuration.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.VersionNotes != nil { + l = len(*m.VersionNotes) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *CreatePolicyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Policy != nil { + l = m.Policy.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdatePolicyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Policy != nil { + l = m.Policy.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.UpdateMask != nil { + l = (*fieldmaskpb1.FieldMask)(m.UpdateMask).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.VersionNotes != nil { + l = len(*m.VersionNotes) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdatePolicyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Policy != nil { + l = m.Policy.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ArchivePolicyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PolicyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ArchivePolicyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Policy != nil { + l = m.Policy.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Policy) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Policy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Policy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PolicyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrganizationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ModifiedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Configuration == nil { + m.Configuration = &PolicyConfiguration{} + } + if err := m.Configuration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyVersionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PolicyVersionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Version = &v + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionNotes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VersionNotes = &s + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GeneratedChangeMessage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.GeneratedChangeMessage = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PolicyConfiguration) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PolicyConfiguration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PolicyConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CedarPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CedarPolicy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetPolicyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetPolicyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetPolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PolicyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetPolicyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetPolicyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Policy == nil { + m.Policy = &Policy{} + } + if err := m.Policy.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListPoliciesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListPoliciesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListPoliciesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Filter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrderBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListPoliciesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListPoliciesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListPoliciesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Policies = append(m.Policies, &Policy{}) + if err := m.Policies[len(m.Policies)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreatePolicyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreatePolicyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreatePolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Configuration == nil { + m.Configuration = &PolicyConfiguration{} + } + if err := m.Configuration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionNotes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VersionNotes = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreatePolicyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreatePolicyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreatePolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Policy == nil { + m.Policy = &Policy{} + } + if err := m.Policy.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdatePolicyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdatePolicyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdatePolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Policy == nil { + m.Policy = &Policy{} + } + if err := m.Policy.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateMask == nil { + m.UpdateMask = &fieldmaskpb.FieldMask{} + } + if err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionNotes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VersionNotes = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdatePolicyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdatePolicyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdatePolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Policy == nil { + m.Policy = &Policy{} + } + if err := m.Policy.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchivePolicyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchivePolicyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchivePolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PolicyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchivePolicyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchivePolicyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchivePolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Policy == nil { + m.Policy = &Policy{} + } + if err := m.Policy.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Policy) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Policy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Policy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PolicyId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Name = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + s := stringValue + m.Description = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrganizationId = stringValue + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.CreatedByUserId = stringValue + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ModifiedByUserId = stringValue + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Configuration == nil { + m.Configuration = &PolicyConfiguration{} + } + if err := m.Configuration.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyVersionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PolicyVersionId = stringValue + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Version = &v + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionNotes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + s := stringValue + m.VersionNotes = &s + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GeneratedChangeMessage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + s := stringValue + m.GeneratedChangeMessage = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PolicyConfiguration) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PolicyConfiguration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PolicyConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CedarPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.CedarPolicy = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetPolicyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetPolicyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetPolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PolicyId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetPolicyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetPolicyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Policy == nil { + m.Policy = &Policy{} + } + if err := m.Policy.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListPoliciesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListPoliciesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListPoliciesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PageToken = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Filter = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrderBy = stringValue + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListPoliciesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListPoliciesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListPoliciesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Policies = append(m.Policies, &Policy{}) + if err := m.Policies[len(m.Policies)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.NextPageToken = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreatePolicyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreatePolicyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreatePolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Name = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + s := stringValue + m.Description = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Configuration == nil { + m.Configuration = &PolicyConfiguration{} + } + if err := m.Configuration.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionNotes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + s := stringValue + m.VersionNotes = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreatePolicyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreatePolicyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreatePolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Policy == nil { + m.Policy = &Policy{} + } + if err := m.Policy.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdatePolicyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdatePolicyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdatePolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Policy == nil { + m.Policy = &Policy{} + } + if err := m.Policy.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateMask == nil { + m.UpdateMask = &fieldmaskpb.FieldMask{} + } + if err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionNotes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + s := stringValue + m.VersionNotes = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdatePolicyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdatePolicyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdatePolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Policy == nil { + m.Policy = &Policy{} + } + if err := m.Policy.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchivePolicyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchivePolicyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchivePolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PolicyId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchivePolicyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchivePolicyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchivePolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Policy == nil { + m.Policy = &Policy{} + } + if err := m.Policy.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} diff --git a/go/gen/sift/resource_attribute/v1/resource_attribute.pb.go b/go/gen/sift/resource_attribute/v1/resource_attribute.pb.go new file mode 100644 index 000000000..44bd70f66 --- /dev/null +++ b/go/gen/sift/resource_attribute/v1/resource_attribute.pb.go @@ -0,0 +1,5381 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc (unknown) +// source: sift/resource_attribute/v1/resource_attribute.proto + +package resource_attributev1 + +import ( + _ "github.com/sift-stack/sift/go/gen/buf/validate" + _ "github.com/sift-stack/sift/go/gen/google/api" + _ "github.com/sift-stack/sift/go/gen/protoc-gen-openapiv2/options" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Values become selectable enumerable options. +type ResourceAttributeKeyType int32 + +const ( + ResourceAttributeKeyType_RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED ResourceAttributeKeyType = 0 + ResourceAttributeKeyType_RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM ResourceAttributeKeyType = 1 + ResourceAttributeKeyType_RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN ResourceAttributeKeyType = 2 + ResourceAttributeKeyType_RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER ResourceAttributeKeyType = 3 + ResourceAttributeKeyType_RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM ResourceAttributeKeyType = 4 +) + +// Enum value maps for ResourceAttributeKeyType. +var ( + ResourceAttributeKeyType_name = map[int32]string{ + 0: "RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED", + 1: "RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM", + 2: "RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN", + 3: "RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER", + 4: "RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM", + } + ResourceAttributeKeyType_value = map[string]int32{ + "RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED": 0, + "RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM": 1, + "RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN": 2, + "RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER": 3, + "RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM": 4, + } +) + +func (x ResourceAttributeKeyType) Enum() *ResourceAttributeKeyType { + p := new(ResourceAttributeKeyType) + *p = x + return p +} + +func (x ResourceAttributeKeyType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResourceAttributeKeyType) Descriptor() protoreflect.EnumDescriptor { + return file_sift_resource_attribute_v1_resource_attribute_proto_enumTypes[0].Descriptor() +} + +func (ResourceAttributeKeyType) Type() protoreflect.EnumType { + return &file_sift_resource_attribute_v1_resource_attribute_proto_enumTypes[0] +} + +func (x ResourceAttributeKeyType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResourceAttributeKeyType.Descriptor instead. +func (ResourceAttributeKeyType) EnumDescriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{0} +} + +type ResourceAttributeEntityType int32 + +const ( + ResourceAttributeEntityType_RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED ResourceAttributeEntityType = 0 + ResourceAttributeEntityType_RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET ResourceAttributeEntityType = 1 + ResourceAttributeEntityType_RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL ResourceAttributeEntityType = 2 +) + +// Enum value maps for ResourceAttributeEntityType. +var ( + ResourceAttributeEntityType_name = map[int32]string{ + 0: "RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED", + 1: "RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET", + 2: "RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL", + } + ResourceAttributeEntityType_value = map[string]int32{ + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED": 0, + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET": 1, + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL": 2, + } +) + +func (x ResourceAttributeEntityType) Enum() *ResourceAttributeEntityType { + p := new(ResourceAttributeEntityType) + *p = x + return p +} + +func (x ResourceAttributeEntityType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResourceAttributeEntityType) Descriptor() protoreflect.EnumDescriptor { + return file_sift_resource_attribute_v1_resource_attribute_proto_enumTypes[1].Descriptor() +} + +func (ResourceAttributeEntityType) Type() protoreflect.EnumType { + return &file_sift_resource_attribute_v1_resource_attribute_proto_enumTypes[1] +} + +func (x ResourceAttributeEntityType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResourceAttributeEntityType.Descriptor instead. +func (ResourceAttributeEntityType) EnumDescriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{1} +} + +// A ResourceAttribute Key defines an attribute that can be assigned to Entities for the purpose of attribute based access control (ABAC). +type ResourceAttributeKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKeyId string `protobuf:"bytes,1,opt,name=resource_attribute_key_id,json=resourceAttributeKeyId,proto3" json:"resource_attribute_key_id,omitempty"` + OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Type ResourceAttributeKeyType `protobuf:"varint,5,opt,name=type,proto3,enum=sift.resource_attribute.v1.ResourceAttributeKeyType" json:"type,omitempty"` + CreatedDate *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_date,json=createdDate,proto3" json:"created_date,omitempty"` + CreatedByUserId string `protobuf:"bytes,7,opt,name=created_by_user_id,json=createdByUserId,proto3" json:"created_by_user_id,omitempty"` + ModifiedDate *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=modified_date,json=modifiedDate,proto3" json:"modified_date,omitempty"` + ModifiedByUserId string `protobuf:"bytes,9,opt,name=modified_by_user_id,json=modifiedByUserId,proto3" json:"modified_by_user_id,omitempty"` + ArchivedDate *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=archived_date,json=archivedDate,proto3" json:"archived_date,omitempty"` +} + +func (x *ResourceAttributeKey) Reset() { + *x = ResourceAttributeKey{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceAttributeKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceAttributeKey) ProtoMessage() {} + +func (x *ResourceAttributeKey) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceAttributeKey.ProtoReflect.Descriptor instead. +func (*ResourceAttributeKey) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{0} +} + +func (x *ResourceAttributeKey) GetResourceAttributeKeyId() string { + if x != nil { + return x.ResourceAttributeKeyId + } + return "" +} + +func (x *ResourceAttributeKey) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +func (x *ResourceAttributeKey) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *ResourceAttributeKey) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *ResourceAttributeKey) GetType() ResourceAttributeKeyType { + if x != nil { + return x.Type + } + return ResourceAttributeKeyType_RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED +} + +func (x *ResourceAttributeKey) GetCreatedDate() *timestamppb.Timestamp { + if x != nil { + return x.CreatedDate + } + return nil +} + +func (x *ResourceAttributeKey) GetCreatedByUserId() string { + if x != nil { + return x.CreatedByUserId + } + return "" +} + +func (x *ResourceAttributeKey) GetModifiedDate() *timestamppb.Timestamp { + if x != nil { + return x.ModifiedDate + } + return nil +} + +func (x *ResourceAttributeKey) GetModifiedByUserId() string { + if x != nil { + return x.ModifiedByUserId + } + return "" +} + +func (x *ResourceAttributeKey) GetArchivedDate() *timestamppb.Timestamp { + if x != nil { + return x.ArchivedDate + } + return nil +} + +// Represents a possible enumerable value for ENUM type resource_attribute keys. +// Users can add new enum values as needed. +type ResourceAttributeEnumValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeEnumValueId string `protobuf:"bytes,1,opt,name=resource_attribute_enum_value_id,json=resourceAttributeEnumValueId,proto3" json:"resource_attribute_enum_value_id,omitempty"` + ResourceAttributeKeyId string `protobuf:"bytes,2,opt,name=resource_attribute_key_id,json=resourceAttributeKeyId,proto3" json:"resource_attribute_key_id,omitempty"` + DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + CreatedDate *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_date,json=createdDate,proto3" json:"created_date,omitempty"` + CreatedByUserId string `protobuf:"bytes,6,opt,name=created_by_user_id,json=createdByUserId,proto3" json:"created_by_user_id,omitempty"` + ModifiedDate *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=modified_date,json=modifiedDate,proto3" json:"modified_date,omitempty"` + ModifiedByUserId string `protobuf:"bytes,8,opt,name=modified_by_user_id,json=modifiedByUserId,proto3" json:"modified_by_user_id,omitempty"` + ArchivedDate *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=archived_date,json=archivedDate,proto3" json:"archived_date,omitempty"` +} + +func (x *ResourceAttributeEnumValue) Reset() { + *x = ResourceAttributeEnumValue{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceAttributeEnumValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceAttributeEnumValue) ProtoMessage() {} + +func (x *ResourceAttributeEnumValue) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceAttributeEnumValue.ProtoReflect.Descriptor instead. +func (*ResourceAttributeEnumValue) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{1} +} + +func (x *ResourceAttributeEnumValue) GetResourceAttributeEnumValueId() string { + if x != nil { + return x.ResourceAttributeEnumValueId + } + return "" +} + +func (x *ResourceAttributeEnumValue) GetResourceAttributeKeyId() string { + if x != nil { + return x.ResourceAttributeKeyId + } + return "" +} + +func (x *ResourceAttributeEnumValue) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *ResourceAttributeEnumValue) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *ResourceAttributeEnumValue) GetCreatedDate() *timestamppb.Timestamp { + if x != nil { + return x.CreatedDate + } + return nil +} + +func (x *ResourceAttributeEnumValue) GetCreatedByUserId() string { + if x != nil { + return x.CreatedByUserId + } + return "" +} + +func (x *ResourceAttributeEnumValue) GetModifiedDate() *timestamppb.Timestamp { + if x != nil { + return x.ModifiedDate + } + return nil +} + +func (x *ResourceAttributeEnumValue) GetModifiedByUserId() string { + if x != nil { + return x.ModifiedByUserId + } + return "" +} + +func (x *ResourceAttributeEnumValue) GetArchivedDate() *timestamppb.Timestamp { + if x != nil { + return x.ArchivedDate + } + return nil +} + +// Represents the assignment of a resource_attribute key-value pair to an entity (asset or channel). +type ResourceAttribute struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeId string `protobuf:"bytes,1,opt,name=resource_attribute_id,json=resourceAttributeId,proto3" json:"resource_attribute_id,omitempty"` + OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + Entity *ResourceAttributeEntityIdentifier `protobuf:"bytes,3,opt,name=entity,proto3" json:"entity,omitempty"` + ResourceAttributeKeyId string `protobuf:"bytes,4,opt,name=resource_attribute_key_id,json=resourceAttributeKeyId,proto3" json:"resource_attribute_key_id,omitempty"` + // Populated in responses with full key details. + Key *ResourceAttributeKey `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"` + // Types that are assignable to Value: + // + // *ResourceAttribute_ResourceAttributeEnumValueId + // *ResourceAttribute_BooleanValue + // *ResourceAttribute_NumberValue + Value isResourceAttribute_Value `protobuf_oneof:"value"` + // Populated in responses with full enum value details. + EnumValueDetails *ResourceAttributeEnumValue `protobuf:"bytes,9,opt,name=enum_value_details,json=enumValueDetails,proto3" json:"enum_value_details,omitempty"` + // The timestamp when the relation between the Entity and ResourceAttribute Key and Value was created. + CreatedDate *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_date,json=createdDate,proto3" json:"created_date,omitempty"` + CreatedByUserId string `protobuf:"bytes,11,opt,name=created_by_user_id,json=createdByUserId,proto3" json:"created_by_user_id,omitempty"` + ArchivedDate *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=archived_date,json=archivedDate,proto3" json:"archived_date,omitempty"` +} + +func (x *ResourceAttribute) Reset() { + *x = ResourceAttribute{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceAttribute) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceAttribute) ProtoMessage() {} + +func (x *ResourceAttribute) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceAttribute.ProtoReflect.Descriptor instead. +func (*ResourceAttribute) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{2} +} + +func (x *ResourceAttribute) GetResourceAttributeId() string { + if x != nil { + return x.ResourceAttributeId + } + return "" +} + +func (x *ResourceAttribute) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +func (x *ResourceAttribute) GetEntity() *ResourceAttributeEntityIdentifier { + if x != nil { + return x.Entity + } + return nil +} + +func (x *ResourceAttribute) GetResourceAttributeKeyId() string { + if x != nil { + return x.ResourceAttributeKeyId + } + return "" +} + +func (x *ResourceAttribute) GetKey() *ResourceAttributeKey { + if x != nil { + return x.Key + } + return nil +} + +func (m *ResourceAttribute) GetValue() isResourceAttribute_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *ResourceAttribute) GetResourceAttributeEnumValueId() string { + if x, ok := x.GetValue().(*ResourceAttribute_ResourceAttributeEnumValueId); ok { + return x.ResourceAttributeEnumValueId + } + return "" +} + +func (x *ResourceAttribute) GetBooleanValue() bool { + if x, ok := x.GetValue().(*ResourceAttribute_BooleanValue); ok { + return x.BooleanValue + } + return false +} + +func (x *ResourceAttribute) GetNumberValue() float64 { + if x, ok := x.GetValue().(*ResourceAttribute_NumberValue); ok { + return x.NumberValue + } + return 0 +} + +func (x *ResourceAttribute) GetEnumValueDetails() *ResourceAttributeEnumValue { + if x != nil { + return x.EnumValueDetails + } + return nil +} + +func (x *ResourceAttribute) GetCreatedDate() *timestamppb.Timestamp { + if x != nil { + return x.CreatedDate + } + return nil +} + +func (x *ResourceAttribute) GetCreatedByUserId() string { + if x != nil { + return x.CreatedByUserId + } + return "" +} + +func (x *ResourceAttribute) GetArchivedDate() *timestamppb.Timestamp { + if x != nil { + return x.ArchivedDate + } + return nil +} + +type isResourceAttribute_Value interface { + isResourceAttribute_Value() +} + +type ResourceAttribute_ResourceAttributeEnumValueId struct { + ResourceAttributeEnumValueId string `protobuf:"bytes,6,opt,name=resource_attribute_enum_value_id,json=resourceAttributeEnumValueId,proto3,oneof"` +} + +type ResourceAttribute_BooleanValue struct { + BooleanValue bool `protobuf:"varint,7,opt,name=boolean_value,json=booleanValue,proto3,oneof"` +} + +type ResourceAttribute_NumberValue struct { + NumberValue float64 `protobuf:"fixed64,8,opt,name=number_value,json=numberValue,proto3,oneof"` +} + +func (*ResourceAttribute_ResourceAttributeEnumValueId) isResourceAttribute_Value() {} + +func (*ResourceAttribute_BooleanValue) isResourceAttribute_Value() {} + +func (*ResourceAttribute_NumberValue) isResourceAttribute_Value() {} + +// Represents an entity to which a resource_attribute will be assigned. +type ResourceAttributeEntityIdentifier struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` + EntityType ResourceAttributeEntityType `protobuf:"varint,2,opt,name=entity_type,json=entityType,proto3,enum=sift.resource_attribute.v1.ResourceAttributeEntityType" json:"entity_type,omitempty"` +} + +func (x *ResourceAttributeEntityIdentifier) Reset() { + *x = ResourceAttributeEntityIdentifier{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceAttributeEntityIdentifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceAttributeEntityIdentifier) ProtoMessage() {} + +func (x *ResourceAttributeEntityIdentifier) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceAttributeEntityIdentifier.ProtoReflect.Descriptor instead. +func (*ResourceAttributeEntityIdentifier) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{3} +} + +func (x *ResourceAttributeEntityIdentifier) GetEntityId() string { + if x != nil { + return x.EntityId + } + return "" +} + +func (x *ResourceAttributeEntityIdentifier) GetEntityType() ResourceAttributeEntityType { + if x != nil { + return x.EntityType + } + return ResourceAttributeEntityType_RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED +} + +// ResourceAttribute Key RPC messages +type CreateResourceAttributeKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Type ResourceAttributeKeyType `protobuf:"varint,3,opt,name=type,proto3,enum=sift.resource_attribute.v1.ResourceAttributeKeyType" json:"type,omitempty"` + // Optional initial enum values to create alongside the key. Only applicable for ENUM type keys. + InitialEnumValues []*CreateResourceAttributeKeyRequest_InitialEnumValue `protobuf:"bytes,4,rep,name=initial_enum_values,json=initialEnumValues,proto3" json:"initial_enum_values,omitempty"` +} + +func (x *CreateResourceAttributeKeyRequest) Reset() { + *x = CreateResourceAttributeKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateResourceAttributeKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateResourceAttributeKeyRequest) ProtoMessage() {} + +func (x *CreateResourceAttributeKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateResourceAttributeKeyRequest.ProtoReflect.Descriptor instead. +func (*CreateResourceAttributeKeyRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{4} +} + +func (x *CreateResourceAttributeKeyRequest) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *CreateResourceAttributeKeyRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *CreateResourceAttributeKeyRequest) GetType() ResourceAttributeKeyType { + if x != nil { + return x.Type + } + return ResourceAttributeKeyType_RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED +} + +func (x *CreateResourceAttributeKeyRequest) GetInitialEnumValues() []*CreateResourceAttributeKeyRequest_InitialEnumValue { + if x != nil { + return x.InitialEnumValues + } + return nil +} + +type CreateResourceAttributeKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKey *ResourceAttributeKey `protobuf:"bytes,1,opt,name=resource_attribute_key,json=resourceAttributeKey,proto3" json:"resource_attribute_key,omitempty"` + // The enum values created alongside the key, if any were provided in the request. + EnumValues []*ResourceAttributeEnumValue `protobuf:"bytes,2,rep,name=enum_values,json=enumValues,proto3" json:"enum_values,omitempty"` +} + +func (x *CreateResourceAttributeKeyResponse) Reset() { + *x = CreateResourceAttributeKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateResourceAttributeKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateResourceAttributeKeyResponse) ProtoMessage() {} + +func (x *CreateResourceAttributeKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateResourceAttributeKeyResponse.ProtoReflect.Descriptor instead. +func (*CreateResourceAttributeKeyResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{5} +} + +func (x *CreateResourceAttributeKeyResponse) GetResourceAttributeKey() *ResourceAttributeKey { + if x != nil { + return x.ResourceAttributeKey + } + return nil +} + +func (x *CreateResourceAttributeKeyResponse) GetEnumValues() []*ResourceAttributeEnumValue { + if x != nil { + return x.EnumValues + } + return nil +} + +type GetResourceAttributeKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKeyId string `protobuf:"bytes,1,opt,name=resource_attribute_key_id,json=resourceAttributeKeyId,proto3" json:"resource_attribute_key_id,omitempty"` +} + +func (x *GetResourceAttributeKeyRequest) Reset() { + *x = GetResourceAttributeKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetResourceAttributeKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetResourceAttributeKeyRequest) ProtoMessage() {} + +func (x *GetResourceAttributeKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetResourceAttributeKeyRequest.ProtoReflect.Descriptor instead. +func (*GetResourceAttributeKeyRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{6} +} + +func (x *GetResourceAttributeKeyRequest) GetResourceAttributeKeyId() string { + if x != nil { + return x.ResourceAttributeKeyId + } + return "" +} + +type GetResourceAttributeKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKey *ResourceAttributeKey `protobuf:"bytes,1,opt,name=resource_attribute_key,json=resourceAttributeKey,proto3" json:"resource_attribute_key,omitempty"` +} + +func (x *GetResourceAttributeKeyResponse) Reset() { + *x = GetResourceAttributeKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetResourceAttributeKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetResourceAttributeKeyResponse) ProtoMessage() {} + +func (x *GetResourceAttributeKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetResourceAttributeKeyResponse.ProtoReflect.Descriptor instead. +func (*GetResourceAttributeKeyResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{7} +} + +func (x *GetResourceAttributeKeyResponse) GetResourceAttributeKey() *ResourceAttributeKey { + if x != nil { + return x.ResourceAttributeKey + } + return nil +} + +type ListResourceAttributeKeysRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The maximum number of resource_attribute keys to return. The service may return fewer than this value. + // If unspecified, at most 50 resource_attribute keys will be returned. The maximum value is 100; values above + // 100 will be coerced to 100. + PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token, received from a previous `ListResourceAttributeKeys` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListResourceAttributeKeys` must match + // the call that provided the page token. + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are `resource_attribute_key_id`, `name`, `description`, `type`, + // `created_by_user_id`, `modified_by_user_id`, `created_date`, `modified_date`, and `archived_date`. + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` + // How to order the retrieved resource_attribute keys. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date`, `modified_date`, and `name`. + // If left empty, items are ordered by `created_date` in descending order (newest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "created_date desc,name" + OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + // Whether to include archived resource_attribute keys. Defaults to false. + IncludeArchived bool `protobuf:"varint,5,opt,name=include_archived,json=includeArchived,proto3" json:"include_archived,omitempty"` +} + +func (x *ListResourceAttributeKeysRequest) Reset() { + *x = ListResourceAttributeKeysRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListResourceAttributeKeysRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListResourceAttributeKeysRequest) ProtoMessage() {} + +func (x *ListResourceAttributeKeysRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListResourceAttributeKeysRequest.ProtoReflect.Descriptor instead. +func (*ListResourceAttributeKeysRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{8} +} + +func (x *ListResourceAttributeKeysRequest) GetPageSize() uint32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListResourceAttributeKeysRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListResourceAttributeKeysRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ListResourceAttributeKeysRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +func (x *ListResourceAttributeKeysRequest) GetIncludeArchived() bool { + if x != nil { + return x.IncludeArchived + } + return false +} + +type ListResourceAttributeKeysResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKeys []*ResourceAttributeKey `protobuf:"bytes,1,rep,name=resource_attribute_keys,json=resourceAttributeKeys,proto3" json:"resource_attribute_keys,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListResourceAttributeKeysResponse) Reset() { + *x = ListResourceAttributeKeysResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListResourceAttributeKeysResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListResourceAttributeKeysResponse) ProtoMessage() {} + +func (x *ListResourceAttributeKeysResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListResourceAttributeKeysResponse.ProtoReflect.Descriptor instead. +func (*ListResourceAttributeKeysResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{9} +} + +func (x *ListResourceAttributeKeysResponse) GetResourceAttributeKeys() []*ResourceAttributeKey { + if x != nil { + return x.ResourceAttributeKeys + } + return nil +} + +func (x *ListResourceAttributeKeysResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +type UpdateResourceAttributeKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKeyId string `protobuf:"bytes,1,opt,name=resource_attribute_key_id,json=resourceAttributeKeyId,proto3" json:"resource_attribute_key_id,omitempty"` + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // The list of fields to be updated. The fields available to be updated are `display_name`, `description`, and `archived_date`. + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` +} + +func (x *UpdateResourceAttributeKeyRequest) Reset() { + *x = UpdateResourceAttributeKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateResourceAttributeKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateResourceAttributeKeyRequest) ProtoMessage() {} + +func (x *UpdateResourceAttributeKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateResourceAttributeKeyRequest.ProtoReflect.Descriptor instead. +func (*UpdateResourceAttributeKeyRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{10} +} + +func (x *UpdateResourceAttributeKeyRequest) GetResourceAttributeKeyId() string { + if x != nil { + return x.ResourceAttributeKeyId + } + return "" +} + +func (x *UpdateResourceAttributeKeyRequest) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *UpdateResourceAttributeKeyRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *UpdateResourceAttributeKeyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.UpdateMask + } + return nil +} + +type UpdateResourceAttributeKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKey *ResourceAttributeKey `protobuf:"bytes,1,opt,name=resource_attribute_key,json=resourceAttributeKey,proto3" json:"resource_attribute_key,omitempty"` +} + +func (x *UpdateResourceAttributeKeyResponse) Reset() { + *x = UpdateResourceAttributeKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateResourceAttributeKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateResourceAttributeKeyResponse) ProtoMessage() {} + +func (x *UpdateResourceAttributeKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateResourceAttributeKeyResponse.ProtoReflect.Descriptor instead. +func (*UpdateResourceAttributeKeyResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{11} +} + +func (x *UpdateResourceAttributeKeyResponse) GetResourceAttributeKey() *ResourceAttributeKey { + if x != nil { + return x.ResourceAttributeKey + } + return nil +} + +type ArchiveResourceAttributeKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKeyId string `protobuf:"bytes,1,opt,name=resource_attribute_key_id,json=resourceAttributeKeyId,proto3" json:"resource_attribute_key_id,omitempty"` +} + +func (x *ArchiveResourceAttributeKeyRequest) Reset() { + *x = ArchiveResourceAttributeKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveResourceAttributeKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveResourceAttributeKeyRequest) ProtoMessage() {} + +func (x *ArchiveResourceAttributeKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveResourceAttributeKeyRequest.ProtoReflect.Descriptor instead. +func (*ArchiveResourceAttributeKeyRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{12} +} + +func (x *ArchiveResourceAttributeKeyRequest) GetResourceAttributeKeyId() string { + if x != nil { + return x.ResourceAttributeKeyId + } + return "" +} + +type ArchiveResourceAttributeKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ArchiveResourceAttributeKeyResponse) Reset() { + *x = ArchiveResourceAttributeKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveResourceAttributeKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveResourceAttributeKeyResponse) ProtoMessage() {} + +func (x *ArchiveResourceAttributeKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveResourceAttributeKeyResponse.ProtoReflect.Descriptor instead. +func (*ArchiveResourceAttributeKeyResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{13} +} + +type UnarchiveResourceAttributeKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKeyId string `protobuf:"bytes,1,opt,name=resource_attribute_key_id,json=resourceAttributeKeyId,proto3" json:"resource_attribute_key_id,omitempty"` +} + +func (x *UnarchiveResourceAttributeKeyRequest) Reset() { + *x = UnarchiveResourceAttributeKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnarchiveResourceAttributeKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnarchiveResourceAttributeKeyRequest) ProtoMessage() {} + +func (x *UnarchiveResourceAttributeKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnarchiveResourceAttributeKeyRequest.ProtoReflect.Descriptor instead. +func (*UnarchiveResourceAttributeKeyRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{14} +} + +func (x *UnarchiveResourceAttributeKeyRequest) GetResourceAttributeKeyId() string { + if x != nil { + return x.ResourceAttributeKeyId + } + return "" +} + +type UnarchiveResourceAttributeKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UnarchiveResourceAttributeKeyResponse) Reset() { + *x = UnarchiveResourceAttributeKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnarchiveResourceAttributeKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnarchiveResourceAttributeKeyResponse) ProtoMessage() {} + +func (x *UnarchiveResourceAttributeKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnarchiveResourceAttributeKeyResponse.ProtoReflect.Descriptor instead. +func (*UnarchiveResourceAttributeKeyResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{15} +} + +type BatchArchiveResourceAttributeKeysRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKeyIds []string `protobuf:"bytes,1,rep,name=resource_attribute_key_ids,json=resourceAttributeKeyIds,proto3" json:"resource_attribute_key_ids,omitempty"` +} + +func (x *BatchArchiveResourceAttributeKeysRequest) Reset() { + *x = BatchArchiveResourceAttributeKeysRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchArchiveResourceAttributeKeysRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchArchiveResourceAttributeKeysRequest) ProtoMessage() {} + +func (x *BatchArchiveResourceAttributeKeysRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchArchiveResourceAttributeKeysRequest.ProtoReflect.Descriptor instead. +func (*BatchArchiveResourceAttributeKeysRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{16} +} + +func (x *BatchArchiveResourceAttributeKeysRequest) GetResourceAttributeKeyIds() []string { + if x != nil { + return x.ResourceAttributeKeyIds + } + return nil +} + +type BatchArchiveResourceAttributeKeysResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BatchArchiveResourceAttributeKeysResponse) Reset() { + *x = BatchArchiveResourceAttributeKeysResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchArchiveResourceAttributeKeysResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchArchiveResourceAttributeKeysResponse) ProtoMessage() {} + +func (x *BatchArchiveResourceAttributeKeysResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchArchiveResourceAttributeKeysResponse.ProtoReflect.Descriptor instead. +func (*BatchArchiveResourceAttributeKeysResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{17} +} + +type BatchUnarchiveResourceAttributeKeysRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKeyIds []string `protobuf:"bytes,1,rep,name=resource_attribute_key_ids,json=resourceAttributeKeyIds,proto3" json:"resource_attribute_key_ids,omitempty"` +} + +func (x *BatchUnarchiveResourceAttributeKeysRequest) Reset() { + *x = BatchUnarchiveResourceAttributeKeysRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchUnarchiveResourceAttributeKeysRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchUnarchiveResourceAttributeKeysRequest) ProtoMessage() {} + +func (x *BatchUnarchiveResourceAttributeKeysRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchUnarchiveResourceAttributeKeysRequest.ProtoReflect.Descriptor instead. +func (*BatchUnarchiveResourceAttributeKeysRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{18} +} + +func (x *BatchUnarchiveResourceAttributeKeysRequest) GetResourceAttributeKeyIds() []string { + if x != nil { + return x.ResourceAttributeKeyIds + } + return nil +} + +type BatchUnarchiveResourceAttributeKeysResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BatchUnarchiveResourceAttributeKeysResponse) Reset() { + *x = BatchUnarchiveResourceAttributeKeysResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchUnarchiveResourceAttributeKeysResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchUnarchiveResourceAttributeKeysResponse) ProtoMessage() {} + +func (x *BatchUnarchiveResourceAttributeKeysResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchUnarchiveResourceAttributeKeysResponse.ProtoReflect.Descriptor instead. +func (*BatchUnarchiveResourceAttributeKeysResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{19} +} + +// ResourceAttribute Enum Value RPC messages +type CreateResourceAttributeEnumValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKeyId string `protobuf:"bytes,1,opt,name=resource_attribute_key_id,json=resourceAttributeKeyId,proto3" json:"resource_attribute_key_id,omitempty"` + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *CreateResourceAttributeEnumValueRequest) Reset() { + *x = CreateResourceAttributeEnumValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateResourceAttributeEnumValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateResourceAttributeEnumValueRequest) ProtoMessage() {} + +func (x *CreateResourceAttributeEnumValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateResourceAttributeEnumValueRequest.ProtoReflect.Descriptor instead. +func (*CreateResourceAttributeEnumValueRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{20} +} + +func (x *CreateResourceAttributeEnumValueRequest) GetResourceAttributeKeyId() string { + if x != nil { + return x.ResourceAttributeKeyId + } + return "" +} + +func (x *CreateResourceAttributeEnumValueRequest) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *CreateResourceAttributeEnumValueRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +type CreateResourceAttributeEnumValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeEnumValue *ResourceAttributeEnumValue `protobuf:"bytes,1,opt,name=resource_attribute_enum_value,json=resourceAttributeEnumValue,proto3" json:"resource_attribute_enum_value,omitempty"` +} + +func (x *CreateResourceAttributeEnumValueResponse) Reset() { + *x = CreateResourceAttributeEnumValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateResourceAttributeEnumValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateResourceAttributeEnumValueResponse) ProtoMessage() {} + +func (x *CreateResourceAttributeEnumValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateResourceAttributeEnumValueResponse.ProtoReflect.Descriptor instead. +func (*CreateResourceAttributeEnumValueResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{21} +} + +func (x *CreateResourceAttributeEnumValueResponse) GetResourceAttributeEnumValue() *ResourceAttributeEnumValue { + if x != nil { + return x.ResourceAttributeEnumValue + } + return nil +} + +type GetResourceAttributeEnumValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeEnumValueId string `protobuf:"bytes,1,opt,name=resource_attribute_enum_value_id,json=resourceAttributeEnumValueId,proto3" json:"resource_attribute_enum_value_id,omitempty"` +} + +func (x *GetResourceAttributeEnumValueRequest) Reset() { + *x = GetResourceAttributeEnumValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetResourceAttributeEnumValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetResourceAttributeEnumValueRequest) ProtoMessage() {} + +func (x *GetResourceAttributeEnumValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetResourceAttributeEnumValueRequest.ProtoReflect.Descriptor instead. +func (*GetResourceAttributeEnumValueRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{22} +} + +func (x *GetResourceAttributeEnumValueRequest) GetResourceAttributeEnumValueId() string { + if x != nil { + return x.ResourceAttributeEnumValueId + } + return "" +} + +type GetResourceAttributeEnumValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeEnumValue *ResourceAttributeEnumValue `protobuf:"bytes,1,opt,name=resource_attribute_enum_value,json=resourceAttributeEnumValue,proto3" json:"resource_attribute_enum_value,omitempty"` +} + +func (x *GetResourceAttributeEnumValueResponse) Reset() { + *x = GetResourceAttributeEnumValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetResourceAttributeEnumValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetResourceAttributeEnumValueResponse) ProtoMessage() {} + +func (x *GetResourceAttributeEnumValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetResourceAttributeEnumValueResponse.ProtoReflect.Descriptor instead. +func (*GetResourceAttributeEnumValueResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{23} +} + +func (x *GetResourceAttributeEnumValueResponse) GetResourceAttributeEnumValue() *ResourceAttributeEnumValue { + if x != nil { + return x.ResourceAttributeEnumValue + } + return nil +} + +type ListResourceAttributeEnumValuesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKeyId string `protobuf:"bytes,1,opt,name=resource_attribute_key_id,json=resourceAttributeKeyId,proto3" json:"resource_attribute_key_id,omitempty"` + // The maximum number of enum values to return. The service may return fewer than this value. + // If unspecified, at most 50 enum values will be returned. The maximum value is 100; values above + // 100 will be coerced to 100. + PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token, received from a previous `ListResourceAttributeEnumValues` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListResourceAttributeEnumValues` 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"` + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are `resource_attribute_enum_value_id`, `name`, `description`, + // `created_by_user_id`, `modified_by_user_id`, `created_date`, `modified_date`, and `archived_date`. + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + // How to order the retrieved enum values. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date`, `modified_date`, and `name`. + // If left empty, items are ordered by `created_date` in descending order (newest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "name,created_date desc" + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + // Whether to include archived enum values. Defaults to false. + IncludeArchived bool `protobuf:"varint,6,opt,name=include_archived,json=includeArchived,proto3" json:"include_archived,omitempty"` +} + +func (x *ListResourceAttributeEnumValuesRequest) Reset() { + *x = ListResourceAttributeEnumValuesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListResourceAttributeEnumValuesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListResourceAttributeEnumValuesRequest) ProtoMessage() {} + +func (x *ListResourceAttributeEnumValuesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListResourceAttributeEnumValuesRequest.ProtoReflect.Descriptor instead. +func (*ListResourceAttributeEnumValuesRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{24} +} + +func (x *ListResourceAttributeEnumValuesRequest) GetResourceAttributeKeyId() string { + if x != nil { + return x.ResourceAttributeKeyId + } + return "" +} + +func (x *ListResourceAttributeEnumValuesRequest) GetPageSize() uint32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListResourceAttributeEnumValuesRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListResourceAttributeEnumValuesRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ListResourceAttributeEnumValuesRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +func (x *ListResourceAttributeEnumValuesRequest) GetIncludeArchived() bool { + if x != nil { + return x.IncludeArchived + } + return false +} + +type ListResourceAttributeEnumValuesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeEnumValues []*ResourceAttributeEnumValue `protobuf:"bytes,1,rep,name=resource_attribute_enum_values,json=resourceAttributeEnumValues,proto3" json:"resource_attribute_enum_values,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListResourceAttributeEnumValuesResponse) Reset() { + *x = ListResourceAttributeEnumValuesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListResourceAttributeEnumValuesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListResourceAttributeEnumValuesResponse) ProtoMessage() {} + +func (x *ListResourceAttributeEnumValuesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListResourceAttributeEnumValuesResponse.ProtoReflect.Descriptor instead. +func (*ListResourceAttributeEnumValuesResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{25} +} + +func (x *ListResourceAttributeEnumValuesResponse) GetResourceAttributeEnumValues() []*ResourceAttributeEnumValue { + if x != nil { + return x.ResourceAttributeEnumValues + } + return nil +} + +func (x *ListResourceAttributeEnumValuesResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +type UpdateResourceAttributeEnumValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeEnumValueId string `protobuf:"bytes,1,opt,name=resource_attribute_enum_value_id,json=resourceAttributeEnumValueId,proto3" json:"resource_attribute_enum_value_id,omitempty"` + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // The list of fields to be updated. The fields available to be updated are `display_name`, `description`, and `archived_date`. + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` +} + +func (x *UpdateResourceAttributeEnumValueRequest) Reset() { + *x = UpdateResourceAttributeEnumValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateResourceAttributeEnumValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateResourceAttributeEnumValueRequest) ProtoMessage() {} + +func (x *UpdateResourceAttributeEnumValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateResourceAttributeEnumValueRequest.ProtoReflect.Descriptor instead. +func (*UpdateResourceAttributeEnumValueRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{26} +} + +func (x *UpdateResourceAttributeEnumValueRequest) GetResourceAttributeEnumValueId() string { + if x != nil { + return x.ResourceAttributeEnumValueId + } + return "" +} + +func (x *UpdateResourceAttributeEnumValueRequest) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *UpdateResourceAttributeEnumValueRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *UpdateResourceAttributeEnumValueRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.UpdateMask + } + return nil +} + +type UpdateResourceAttributeEnumValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeEnumValue *ResourceAttributeEnumValue `protobuf:"bytes,1,opt,name=resource_attribute_enum_value,json=resourceAttributeEnumValue,proto3" json:"resource_attribute_enum_value,omitempty"` +} + +func (x *UpdateResourceAttributeEnumValueResponse) Reset() { + *x = UpdateResourceAttributeEnumValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateResourceAttributeEnumValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateResourceAttributeEnumValueResponse) ProtoMessage() {} + +func (x *UpdateResourceAttributeEnumValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateResourceAttributeEnumValueResponse.ProtoReflect.Descriptor instead. +func (*UpdateResourceAttributeEnumValueResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{27} +} + +func (x *UpdateResourceAttributeEnumValueResponse) GetResourceAttributeEnumValue() *ResourceAttributeEnumValue { + if x != nil { + return x.ResourceAttributeEnumValue + } + return nil +} + +type ArchiveResourceAttributeEnumValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ArchivedEnumValueId string `protobuf:"bytes,1,opt,name=archived_enum_value_id,json=archivedEnumValueId,proto3" json:"archived_enum_value_id,omitempty"` + // When the archived_enum_value_id is archived all resource-attributes that reference it will be migrated to the replacement_enum_value_id. + ReplacementEnumValueId string `protobuf:"bytes,2,opt,name=replacement_enum_value_id,json=replacementEnumValueId,proto3" json:"replacement_enum_value_id,omitempty"` +} + +func (x *ArchiveResourceAttributeEnumValueRequest) Reset() { + *x = ArchiveResourceAttributeEnumValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveResourceAttributeEnumValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveResourceAttributeEnumValueRequest) ProtoMessage() {} + +func (x *ArchiveResourceAttributeEnumValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveResourceAttributeEnumValueRequest.ProtoReflect.Descriptor instead. +func (*ArchiveResourceAttributeEnumValueRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{28} +} + +func (x *ArchiveResourceAttributeEnumValueRequest) GetArchivedEnumValueId() string { + if x != nil { + return x.ArchivedEnumValueId + } + return "" +} + +func (x *ArchiveResourceAttributeEnumValueRequest) GetReplacementEnumValueId() string { + if x != nil { + return x.ReplacementEnumValueId + } + return "" +} + +type ArchiveResourceAttributeEnumValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Total number of resource-attributes migrated to the replacement enum value. + ResourceAttributesMigrated int32 `protobuf:"varint,1,opt,name=resource_attributes_migrated,json=resourceAttributesMigrated,proto3" json:"resource_attributes_migrated,omitempty"` +} + +func (x *ArchiveResourceAttributeEnumValueResponse) Reset() { + *x = ArchiveResourceAttributeEnumValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveResourceAttributeEnumValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveResourceAttributeEnumValueResponse) ProtoMessage() {} + +func (x *ArchiveResourceAttributeEnumValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveResourceAttributeEnumValueResponse.ProtoReflect.Descriptor instead. +func (*ArchiveResourceAttributeEnumValueResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{29} +} + +func (x *ArchiveResourceAttributeEnumValueResponse) GetResourceAttributesMigrated() int32 { + if x != nil { + return x.ResourceAttributesMigrated + } + return 0 +} + +type UnarchiveResourceAttributeEnumValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeEnumValueId string `protobuf:"bytes,1,opt,name=resource_attribute_enum_value_id,json=resourceAttributeEnumValueId,proto3" json:"resource_attribute_enum_value_id,omitempty"` +} + +func (x *UnarchiveResourceAttributeEnumValueRequest) Reset() { + *x = UnarchiveResourceAttributeEnumValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnarchiveResourceAttributeEnumValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnarchiveResourceAttributeEnumValueRequest) ProtoMessage() {} + +func (x *UnarchiveResourceAttributeEnumValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnarchiveResourceAttributeEnumValueRequest.ProtoReflect.Descriptor instead. +func (*UnarchiveResourceAttributeEnumValueRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{30} +} + +func (x *UnarchiveResourceAttributeEnumValueRequest) GetResourceAttributeEnumValueId() string { + if x != nil { + return x.ResourceAttributeEnumValueId + } + return "" +} + +type UnarchiveResourceAttributeEnumValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UnarchiveResourceAttributeEnumValueResponse) Reset() { + *x = UnarchiveResourceAttributeEnumValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnarchiveResourceAttributeEnumValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnarchiveResourceAttributeEnumValueResponse) ProtoMessage() {} + +func (x *UnarchiveResourceAttributeEnumValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnarchiveResourceAttributeEnumValueResponse.ProtoReflect.Descriptor instead. +func (*UnarchiveResourceAttributeEnumValueResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{31} +} + +type BatchArchiveResourceAttributeEnumValuesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ArchivalRequests []*BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival `protobuf:"bytes,1,rep,name=archival_requests,json=archivalRequests,proto3" json:"archival_requests,omitempty"` +} + +func (x *BatchArchiveResourceAttributeEnumValuesRequest) Reset() { + *x = BatchArchiveResourceAttributeEnumValuesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchArchiveResourceAttributeEnumValuesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchArchiveResourceAttributeEnumValuesRequest) ProtoMessage() {} + +func (x *BatchArchiveResourceAttributeEnumValuesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchArchiveResourceAttributeEnumValuesRequest.ProtoReflect.Descriptor instead. +func (*BatchArchiveResourceAttributeEnumValuesRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{32} +} + +func (x *BatchArchiveResourceAttributeEnumValuesRequest) GetArchivalRequests() []*BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival { + if x != nil { + return x.ArchivalRequests + } + return nil +} + +type BatchArchiveResourceAttributeEnumValuesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Total number of resource-attributes migrated across all archived enum values. + TotalResourceAttributesMigrated int32 `protobuf:"varint,1,opt,name=total_resource_attributes_migrated,json=totalResourceAttributesMigrated,proto3" json:"total_resource_attributes_migrated,omitempty"` +} + +func (x *BatchArchiveResourceAttributeEnumValuesResponse) Reset() { + *x = BatchArchiveResourceAttributeEnumValuesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchArchiveResourceAttributeEnumValuesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchArchiveResourceAttributeEnumValuesResponse) ProtoMessage() {} + +func (x *BatchArchiveResourceAttributeEnumValuesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchArchiveResourceAttributeEnumValuesResponse.ProtoReflect.Descriptor instead. +func (*BatchArchiveResourceAttributeEnumValuesResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{33} +} + +func (x *BatchArchiveResourceAttributeEnumValuesResponse) GetTotalResourceAttributesMigrated() int32 { + if x != nil { + return x.TotalResourceAttributesMigrated + } + return 0 +} + +type BatchUnarchiveResourceAttributeEnumValuesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeEnumValueIds []string `protobuf:"bytes,1,rep,name=resource_attribute_enum_value_ids,json=resourceAttributeEnumValueIds,proto3" json:"resource_attribute_enum_value_ids,omitempty"` +} + +func (x *BatchUnarchiveResourceAttributeEnumValuesRequest) Reset() { + *x = BatchUnarchiveResourceAttributeEnumValuesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchUnarchiveResourceAttributeEnumValuesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchUnarchiveResourceAttributeEnumValuesRequest) ProtoMessage() {} + +func (x *BatchUnarchiveResourceAttributeEnumValuesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchUnarchiveResourceAttributeEnumValuesRequest.ProtoReflect.Descriptor instead. +func (*BatchUnarchiveResourceAttributeEnumValuesRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{34} +} + +func (x *BatchUnarchiveResourceAttributeEnumValuesRequest) GetResourceAttributeEnumValueIds() []string { + if x != nil { + return x.ResourceAttributeEnumValueIds + } + return nil +} + +type BatchUnarchiveResourceAttributeEnumValuesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BatchUnarchiveResourceAttributeEnumValuesResponse) Reset() { + *x = BatchUnarchiveResourceAttributeEnumValuesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchUnarchiveResourceAttributeEnumValuesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchUnarchiveResourceAttributeEnumValuesResponse) ProtoMessage() {} + +func (x *BatchUnarchiveResourceAttributeEnumValuesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchUnarchiveResourceAttributeEnumValuesResponse.ProtoReflect.Descriptor instead. +func (*BatchUnarchiveResourceAttributeEnumValuesResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{35} +} + +// ResourceAttribute RPC messages +type CreateResourceAttributeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Entity *ResourceAttributeEntityIdentifier `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` + ResourceAttributeKeyId string `protobuf:"bytes,2,opt,name=resource_attribute_key_id,json=resourceAttributeKeyId,proto3" json:"resource_attribute_key_id,omitempty"` + // Types that are assignable to Value: + // + // *CreateResourceAttributeRequest_ResourceAttributeEnumValueId + // *CreateResourceAttributeRequest_BooleanValue + // *CreateResourceAttributeRequest_NumberValue + Value isCreateResourceAttributeRequest_Value `protobuf_oneof:"value"` +} + +func (x *CreateResourceAttributeRequest) Reset() { + *x = CreateResourceAttributeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateResourceAttributeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateResourceAttributeRequest) ProtoMessage() {} + +func (x *CreateResourceAttributeRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateResourceAttributeRequest.ProtoReflect.Descriptor instead. +func (*CreateResourceAttributeRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{36} +} + +func (x *CreateResourceAttributeRequest) GetEntity() *ResourceAttributeEntityIdentifier { + if x != nil { + return x.Entity + } + return nil +} + +func (x *CreateResourceAttributeRequest) GetResourceAttributeKeyId() string { + if x != nil { + return x.ResourceAttributeKeyId + } + return "" +} + +func (m *CreateResourceAttributeRequest) GetValue() isCreateResourceAttributeRequest_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *CreateResourceAttributeRequest) GetResourceAttributeEnumValueId() string { + if x, ok := x.GetValue().(*CreateResourceAttributeRequest_ResourceAttributeEnumValueId); ok { + return x.ResourceAttributeEnumValueId + } + return "" +} + +func (x *CreateResourceAttributeRequest) GetBooleanValue() bool { + if x, ok := x.GetValue().(*CreateResourceAttributeRequest_BooleanValue); ok { + return x.BooleanValue + } + return false +} + +func (x *CreateResourceAttributeRequest) GetNumberValue() float64 { + if x, ok := x.GetValue().(*CreateResourceAttributeRequest_NumberValue); ok { + return x.NumberValue + } + return 0 +} + +type isCreateResourceAttributeRequest_Value interface { + isCreateResourceAttributeRequest_Value() +} + +type CreateResourceAttributeRequest_ResourceAttributeEnumValueId struct { + ResourceAttributeEnumValueId string `protobuf:"bytes,3,opt,name=resource_attribute_enum_value_id,json=resourceAttributeEnumValueId,proto3,oneof"` +} + +type CreateResourceAttributeRequest_BooleanValue struct { + BooleanValue bool `protobuf:"varint,4,opt,name=boolean_value,json=booleanValue,proto3,oneof"` +} + +type CreateResourceAttributeRequest_NumberValue struct { + NumberValue float64 `protobuf:"fixed64,5,opt,name=number_value,json=numberValue,proto3,oneof"` +} + +func (*CreateResourceAttributeRequest_ResourceAttributeEnumValueId) isCreateResourceAttributeRequest_Value() { +} + +func (*CreateResourceAttributeRequest_BooleanValue) isCreateResourceAttributeRequest_Value() {} + +func (*CreateResourceAttributeRequest_NumberValue) isCreateResourceAttributeRequest_Value() {} + +type CreateResourceAttributeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttribute *ResourceAttribute `protobuf:"bytes,1,opt,name=resource_attribute,json=resourceAttribute,proto3" json:"resource_attribute,omitempty"` +} + +func (x *CreateResourceAttributeResponse) Reset() { + *x = CreateResourceAttributeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateResourceAttributeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateResourceAttributeResponse) ProtoMessage() {} + +func (x *CreateResourceAttributeResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateResourceAttributeResponse.ProtoReflect.Descriptor instead. +func (*CreateResourceAttributeResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{37} +} + +func (x *CreateResourceAttributeResponse) GetResourceAttribute() *ResourceAttribute { + if x != nil { + return x.ResourceAttribute + } + return nil +} + +type BatchCreateResourceAttributesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeKeyId string `protobuf:"bytes,1,opt,name=resource_attribute_key_id,json=resourceAttributeKeyId,proto3" json:"resource_attribute_key_id,omitempty"` + // Types that are assignable to Value: + // + // *BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId + // *BatchCreateResourceAttributesRequest_BooleanValue + // *BatchCreateResourceAttributesRequest_NumberValue + Value isBatchCreateResourceAttributesRequest_Value `protobuf_oneof:"value"` + Entities []*ResourceAttributeEntityIdentifier `protobuf:"bytes,5,rep,name=entities,proto3" json:"entities,omitempty"` +} + +func (x *BatchCreateResourceAttributesRequest) Reset() { + *x = BatchCreateResourceAttributesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchCreateResourceAttributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchCreateResourceAttributesRequest) ProtoMessage() {} + +func (x *BatchCreateResourceAttributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchCreateResourceAttributesRequest.ProtoReflect.Descriptor instead. +func (*BatchCreateResourceAttributesRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{38} +} + +func (x *BatchCreateResourceAttributesRequest) GetResourceAttributeKeyId() string { + if x != nil { + return x.ResourceAttributeKeyId + } + return "" +} + +func (m *BatchCreateResourceAttributesRequest) GetValue() isBatchCreateResourceAttributesRequest_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *BatchCreateResourceAttributesRequest) GetResourceAttributeEnumValueId() string { + if x, ok := x.GetValue().(*BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId); ok { + return x.ResourceAttributeEnumValueId + } + return "" +} + +func (x *BatchCreateResourceAttributesRequest) GetBooleanValue() bool { + if x, ok := x.GetValue().(*BatchCreateResourceAttributesRequest_BooleanValue); ok { + return x.BooleanValue + } + return false +} + +func (x *BatchCreateResourceAttributesRequest) GetNumberValue() float64 { + if x, ok := x.GetValue().(*BatchCreateResourceAttributesRequest_NumberValue); ok { + return x.NumberValue + } + return 0 +} + +func (x *BatchCreateResourceAttributesRequest) GetEntities() []*ResourceAttributeEntityIdentifier { + if x != nil { + return x.Entities + } + return nil +} + +type isBatchCreateResourceAttributesRequest_Value interface { + isBatchCreateResourceAttributesRequest_Value() +} + +type BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId struct { + ResourceAttributeEnumValueId string `protobuf:"bytes,2,opt,name=resource_attribute_enum_value_id,json=resourceAttributeEnumValueId,proto3,oneof"` +} + +type BatchCreateResourceAttributesRequest_BooleanValue struct { + BooleanValue bool `protobuf:"varint,3,opt,name=boolean_value,json=booleanValue,proto3,oneof"` +} + +type BatchCreateResourceAttributesRequest_NumberValue struct { + NumberValue float64 `protobuf:"fixed64,4,opt,name=number_value,json=numberValue,proto3,oneof"` +} + +func (*BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId) isBatchCreateResourceAttributesRequest_Value() { +} + +func (*BatchCreateResourceAttributesRequest_BooleanValue) isBatchCreateResourceAttributesRequest_Value() { +} + +func (*BatchCreateResourceAttributesRequest_NumberValue) isBatchCreateResourceAttributesRequest_Value() { +} + +type BatchCreateResourceAttributesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributes []*ResourceAttribute `protobuf:"bytes,1,rep,name=resource_attributes,json=resourceAttributes,proto3" json:"resource_attributes,omitempty"` +} + +func (x *BatchCreateResourceAttributesResponse) Reset() { + *x = BatchCreateResourceAttributesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchCreateResourceAttributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchCreateResourceAttributesResponse) ProtoMessage() {} + +func (x *BatchCreateResourceAttributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchCreateResourceAttributesResponse.ProtoReflect.Descriptor instead. +func (*BatchCreateResourceAttributesResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{39} +} + +func (x *BatchCreateResourceAttributesResponse) GetResourceAttributes() []*ResourceAttribute { + if x != nil { + return x.ResourceAttributes + } + return nil +} + +type GetResourceAttributeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeId string `protobuf:"bytes,1,opt,name=resource_attribute_id,json=resourceAttributeId,proto3" json:"resource_attribute_id,omitempty"` +} + +func (x *GetResourceAttributeRequest) Reset() { + *x = GetResourceAttributeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetResourceAttributeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetResourceAttributeRequest) ProtoMessage() {} + +func (x *GetResourceAttributeRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetResourceAttributeRequest.ProtoReflect.Descriptor instead. +func (*GetResourceAttributeRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{40} +} + +func (x *GetResourceAttributeRequest) GetResourceAttributeId() string { + if x != nil { + return x.ResourceAttributeId + } + return "" +} + +type GetResourceAttributeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttribute *ResourceAttribute `protobuf:"bytes,1,opt,name=resource_attribute,json=resourceAttribute,proto3" json:"resource_attribute,omitempty"` +} + +func (x *GetResourceAttributeResponse) Reset() { + *x = GetResourceAttributeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetResourceAttributeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetResourceAttributeResponse) ProtoMessage() {} + +func (x *GetResourceAttributeResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetResourceAttributeResponse.ProtoReflect.Descriptor instead. +func (*GetResourceAttributeResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{41} +} + +func (x *GetResourceAttributeResponse) GetResourceAttribute() *ResourceAttribute { + if x != nil { + return x.ResourceAttribute + } + return nil +} + +type ListResourceAttributesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The maximum number of resource-attributes to return. The service may return fewer than this value. + // If unspecified, at most 50 resource-attributes will be returned. The maximum value is 100; values above + // 100 will be coerced to 100. + PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token, received from a previous `ListResourceAttributes` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListResourceAttributes` must match + // the call that provided the page token. + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are `resource_attribute_id`, `entity_id`, `entity_type`, `resource_attribute_key_id`, `created_by_user_id`, + // `resource_attribute_enum_value_id`, `boolean_value`, `number_value`, `created_by_user_id`, `created_date`, and `archived_date`. + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` + // How to order the retrieved resource-attributes. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date` and `entity.entity_id`. + // If left empty, items are ordered by `created_date` in descending order (newest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "entity.entity_id,created_date desc" + OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + // Whether to include archived resource-attributes. Defaults to false. + IncludeArchived bool `protobuf:"varint,5,opt,name=include_archived,json=includeArchived,proto3" json:"include_archived,omitempty"` +} + +func (x *ListResourceAttributesRequest) Reset() { + *x = ListResourceAttributesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListResourceAttributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListResourceAttributesRequest) ProtoMessage() {} + +func (x *ListResourceAttributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListResourceAttributesRequest.ProtoReflect.Descriptor instead. +func (*ListResourceAttributesRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{42} +} + +func (x *ListResourceAttributesRequest) GetPageSize() uint32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListResourceAttributesRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListResourceAttributesRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ListResourceAttributesRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +func (x *ListResourceAttributesRequest) GetIncludeArchived() bool { + if x != nil { + return x.IncludeArchived + } + return false +} + +type ListResourceAttributesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributes []*ResourceAttribute `protobuf:"bytes,1,rep,name=resource_attributes,json=resourceAttributes,proto3" json:"resource_attributes,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListResourceAttributesResponse) Reset() { + *x = ListResourceAttributesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListResourceAttributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListResourceAttributesResponse) ProtoMessage() {} + +func (x *ListResourceAttributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListResourceAttributesResponse.ProtoReflect.Descriptor instead. +func (*ListResourceAttributesResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{43} +} + +func (x *ListResourceAttributesResponse) GetResourceAttributes() []*ResourceAttribute { + if x != nil { + return x.ResourceAttributes + } + return nil +} + +func (x *ListResourceAttributesResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +type ListResourceAttributesByEntityRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Entity *ResourceAttributeEntityIdentifier `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` + // Whether to include archived resource-attributes. Defaults to false. + IncludeArchived bool `protobuf:"varint,2,opt,name=include_archived,json=includeArchived,proto3" json:"include_archived,omitempty"` + // The maximum number of resource-attributes to return. The service may return fewer than this value. + // If unspecified, at most 50 resource-attributes will be returned. The maximum value is 100; values above + // 100 will be coerced to 100. + PageSize uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token, received from a previous `ListResourceAttributesByEntity` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListResourceAttributesByEntity` must match + // the call that provided the page token. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` +} + +func (x *ListResourceAttributesByEntityRequest) Reset() { + *x = ListResourceAttributesByEntityRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListResourceAttributesByEntityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListResourceAttributesByEntityRequest) ProtoMessage() {} + +func (x *ListResourceAttributesByEntityRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListResourceAttributesByEntityRequest.ProtoReflect.Descriptor instead. +func (*ListResourceAttributesByEntityRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{44} +} + +func (x *ListResourceAttributesByEntityRequest) GetEntity() *ResourceAttributeEntityIdentifier { + if x != nil { + return x.Entity + } + return nil +} + +func (x *ListResourceAttributesByEntityRequest) GetIncludeArchived() bool { + if x != nil { + return x.IncludeArchived + } + return false +} + +func (x *ListResourceAttributesByEntityRequest) GetPageSize() uint32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListResourceAttributesByEntityRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +type ListResourceAttributesByEntityResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributes []*ResourceAttribute `protobuf:"bytes,1,rep,name=resource_attributes,json=resourceAttributes,proto3" json:"resource_attributes,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListResourceAttributesByEntityResponse) Reset() { + *x = ListResourceAttributesByEntityResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListResourceAttributesByEntityResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListResourceAttributesByEntityResponse) ProtoMessage() {} + +func (x *ListResourceAttributesByEntityResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListResourceAttributesByEntityResponse.ProtoReflect.Descriptor instead. +func (*ListResourceAttributesByEntityResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{45} +} + +func (x *ListResourceAttributesByEntityResponse) GetResourceAttributes() []*ResourceAttribute { + if x != nil { + return x.ResourceAttributes + } + return nil +} + +func (x *ListResourceAttributesByEntityResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +type ArchiveResourceAttributeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeId string `protobuf:"bytes,1,opt,name=resource_attribute_id,json=resourceAttributeId,proto3" json:"resource_attribute_id,omitempty"` +} + +func (x *ArchiveResourceAttributeRequest) Reset() { + *x = ArchiveResourceAttributeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveResourceAttributeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveResourceAttributeRequest) ProtoMessage() {} + +func (x *ArchiveResourceAttributeRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[46] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveResourceAttributeRequest.ProtoReflect.Descriptor instead. +func (*ArchiveResourceAttributeRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{46} +} + +func (x *ArchiveResourceAttributeRequest) GetResourceAttributeId() string { + if x != nil { + return x.ResourceAttributeId + } + return "" +} + +type ArchiveResourceAttributeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ArchiveResourceAttributeResponse) Reset() { + *x = ArchiveResourceAttributeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveResourceAttributeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveResourceAttributeResponse) ProtoMessage() {} + +func (x *ArchiveResourceAttributeResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveResourceAttributeResponse.ProtoReflect.Descriptor instead. +func (*ArchiveResourceAttributeResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{47} +} + +type UnarchiveResourceAttributeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeId string `protobuf:"bytes,1,opt,name=resource_attribute_id,json=resourceAttributeId,proto3" json:"resource_attribute_id,omitempty"` +} + +func (x *UnarchiveResourceAttributeRequest) Reset() { + *x = UnarchiveResourceAttributeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnarchiveResourceAttributeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnarchiveResourceAttributeRequest) ProtoMessage() {} + +func (x *UnarchiveResourceAttributeRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[48] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnarchiveResourceAttributeRequest.ProtoReflect.Descriptor instead. +func (*UnarchiveResourceAttributeRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{48} +} + +func (x *UnarchiveResourceAttributeRequest) GetResourceAttributeId() string { + if x != nil { + return x.ResourceAttributeId + } + return "" +} + +type UnarchiveResourceAttributeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UnarchiveResourceAttributeResponse) Reset() { + *x = UnarchiveResourceAttributeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnarchiveResourceAttributeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnarchiveResourceAttributeResponse) ProtoMessage() {} + +func (x *UnarchiveResourceAttributeResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[49] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnarchiveResourceAttributeResponse.ProtoReflect.Descriptor instead. +func (*UnarchiveResourceAttributeResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{49} +} + +type BatchArchiveResourceAttributesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeIds []string `protobuf:"bytes,1,rep,name=resource_attribute_ids,json=resourceAttributeIds,proto3" json:"resource_attribute_ids,omitempty"` +} + +func (x *BatchArchiveResourceAttributesRequest) Reset() { + *x = BatchArchiveResourceAttributesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchArchiveResourceAttributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchArchiveResourceAttributesRequest) ProtoMessage() {} + +func (x *BatchArchiveResourceAttributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[50] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchArchiveResourceAttributesRequest.ProtoReflect.Descriptor instead. +func (*BatchArchiveResourceAttributesRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{50} +} + +func (x *BatchArchiveResourceAttributesRequest) GetResourceAttributeIds() []string { + if x != nil { + return x.ResourceAttributeIds + } + return nil +} + +type BatchArchiveResourceAttributesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BatchArchiveResourceAttributesResponse) Reset() { + *x = BatchArchiveResourceAttributesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchArchiveResourceAttributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchArchiveResourceAttributesResponse) ProtoMessage() {} + +func (x *BatchArchiveResourceAttributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[51] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchArchiveResourceAttributesResponse.ProtoReflect.Descriptor instead. +func (*BatchArchiveResourceAttributesResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{51} +} + +type BatchUnarchiveResourceAttributesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceAttributeIds []string `protobuf:"bytes,1,rep,name=resource_attribute_ids,json=resourceAttributeIds,proto3" json:"resource_attribute_ids,omitempty"` +} + +func (x *BatchUnarchiveResourceAttributesRequest) Reset() { + *x = BatchUnarchiveResourceAttributesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchUnarchiveResourceAttributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchUnarchiveResourceAttributesRequest) ProtoMessage() {} + +func (x *BatchUnarchiveResourceAttributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[52] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchUnarchiveResourceAttributesRequest.ProtoReflect.Descriptor instead. +func (*BatchUnarchiveResourceAttributesRequest) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{52} +} + +func (x *BatchUnarchiveResourceAttributesRequest) GetResourceAttributeIds() []string { + if x != nil { + return x.ResourceAttributeIds + } + return nil +} + +type BatchUnarchiveResourceAttributesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BatchUnarchiveResourceAttributesResponse) Reset() { + *x = BatchUnarchiveResourceAttributesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchUnarchiveResourceAttributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchUnarchiveResourceAttributesResponse) ProtoMessage() {} + +func (x *BatchUnarchiveResourceAttributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[53] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchUnarchiveResourceAttributesResponse.ProtoReflect.Descriptor instead. +func (*BatchUnarchiveResourceAttributesResponse) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{53} +} + +// Nested message for initial enum values in create requests. +type CreateResourceAttributeKeyRequest_InitialEnumValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *CreateResourceAttributeKeyRequest_InitialEnumValue) Reset() { + *x = CreateResourceAttributeKeyRequest_InitialEnumValue{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateResourceAttributeKeyRequest_InitialEnumValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateResourceAttributeKeyRequest_InitialEnumValue) ProtoMessage() {} + +func (x *CreateResourceAttributeKeyRequest_InitialEnumValue) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[54] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateResourceAttributeKeyRequest_InitialEnumValue.ProtoReflect.Descriptor instead. +func (*CreateResourceAttributeKeyRequest_InitialEnumValue) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *CreateResourceAttributeKeyRequest_InitialEnumValue) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *CreateResourceAttributeKeyRequest_InitialEnumValue) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +type BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The enum value ID to archive. + ArchivedEnumValueId string `protobuf:"bytes,1,opt,name=archived_enum_value_id,json=archivedEnumValueId,proto3" json:"archived_enum_value_id,omitempty"` + // The enum value ID to migrate resource-attributes to. + ReplacementEnumValueId string `protobuf:"bytes,2,opt,name=replacement_enum_value_id,json=replacementEnumValueId,proto3" json:"replacement_enum_value_id,omitempty"` +} + +func (x *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) Reset() { + *x = BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) ProtoMessage() {} + +func (x *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) ProtoReflect() protoreflect.Message { + mi := &file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[55] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival.ProtoReflect.Descriptor instead. +func (*BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) Descriptor() ([]byte, []int) { + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP(), []int{32, 0} +} + +func (x *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) GetArchivedEnumValueId() string { + if x != nil { + return x.ArchivedEnumValueId + } + return "" +} + +func (x *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) GetReplacementEnumValueId() string { + if x != nil { + return x.ReplacementEnumValueId + } + return "" +} + +var File_sift_resource_attribute_v1_resource_attribute_proto protoreflect.FileDescriptor + +var file_sift_resource_attribute_v1_resource_attribute_proto_rawDesc = []byte{ + 0x0a, 0x33, 0x73, 0x69, 0x66, 0x74, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, + 0x31, 0x1a, 0x1b, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, + 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, + 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xf8, 0x04, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x46, 0x0a, 0x19, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, + 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, + 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, + 0x64, 0x12, 0x34, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, + 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, + 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x12, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x55, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0d, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, + 0x64, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6d, 0x6f, 0x64, + 0x69, 0x66, 0x69, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3a, 0x0a, 0x13, 0x6d, 0x6f, 0x64, + 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, + 0xb0, 0x01, 0x01, 0x52, 0x10, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x42, 0x79, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0d, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x61, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x22, 0xce, 0x04, 0x0a, 0x1a, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x53, 0x0a, 0x20, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, + 0x01, 0x52, 0x1c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x12, + 0x46, 0x0a, 0x19, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, + 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, + 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x12, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, + 0xb0, 0x01, 0x01, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x55, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0d, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, + 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6d, 0x6f, + 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3a, 0x0a, 0x13, 0x6d, 0x6f, + 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, + 0x03, 0xb0, 0x01, 0x01, 0x52, 0x10, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x42, 0x79, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0d, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x22, 0xcf, 0x06, 0x0a, + 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x15, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x13, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, + 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x06, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x46, 0x0a, 0x19, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, + 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x47, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x42, 0x03, 0xe0, 0x41, + 0x01, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x52, 0x0a, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x75, + 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x08, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x48, 0x00, 0x52, 0x1c, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, + 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, + 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x08, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x69, 0x0a, 0x12, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, + 0x10, 0x65, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x12, 0x42, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, + 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x62, 0x79, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x0f, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x44, 0x0a, 0x0d, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x64, 0x44, 0x61, 0x74, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xac, + 0x01, 0x0a, 0x21, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, + 0x03, 0xb0, 0x01, 0x01, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x5d, + 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x22, 0xb2, 0x03, + 0x0a, 0x21, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, + 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x34, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x13, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x65, 0x6e, + 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x4e, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, + 0x0b, 0xe0, 0x41, 0x01, 0xba, 0x48, 0x05, 0x92, 0x01, 0x02, 0x10, 0x64, 0x52, 0x11, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x6c, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, + 0x61, 0x0a, 0x10, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, + 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0xea, 0x01, 0x0a, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x16, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x57, 0x0a, 0x0b, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x73, 0x69, + 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, + 0x68, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x46, 0x0a, 0x19, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, + 0x01, 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x8e, 0x01, 0x0a, 0x1f, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, + 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0xd5, 0x01, 0x0a, 0x20, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0d, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, + 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x42, 0x79, 0x12, 0x2e, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x61, 0x72, + 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, + 0x01, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x64, 0x22, 0xb5, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x17, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, + 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x15, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, + 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xfc, 0x01, 0x0a, 0x21, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x46, 0x0a, 0x19, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, + 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, + 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, + 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x91, 0x01, 0x0a, 0x22, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x6b, 0x0a, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x30, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x6c, 0x0a, + 0x22, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x19, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, + 0xb0, 0x01, 0x01, 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x25, 0x0a, 0x23, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x6e, 0x0a, 0x24, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x19, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, + 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, + 0x49, 0x64, 0x22, 0x27, 0x0a, 0x25, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7e, 0x0a, 0x28, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x1a, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, + 0x79, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x15, 0xe0, 0x41, 0x02, + 0xba, 0x48, 0x0f, 0x92, 0x01, 0x0c, 0x08, 0x01, 0x10, 0x88, 0x27, 0x22, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x52, 0x17, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x73, 0x22, 0x2b, 0x0a, 0x29, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x2a, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x1a, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, + 0x79, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x15, 0xe0, 0x41, 0x02, + 0xba, 0x48, 0x0f, 0x92, 0x01, 0x0c, 0x08, 0x01, 0x10, 0x88, 0x27, 0x22, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x52, 0x17, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x73, 0x22, 0x2d, 0x0a, 0x2b, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc0, 0x01, 0x0a, 0x27, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x19, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, + 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x26, + 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, + 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, + 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xaa, 0x01, + 0x0a, 0x28, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x1d, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x36, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x1a, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x7b, 0x0a, 0x24, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x53, 0x0a, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, + 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x1c, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x22, 0xa7, 0x01, 0x0a, 0x25, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x7e, 0x0a, 0x1d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x1a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x22, 0xa3, 0x02, 0x0a, 0x26, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x19, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x16, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, + 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, + 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x2e, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6c, 0x75, + 0x64, 0x65, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x22, 0xce, 0x01, 0x0a, 0x27, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x1e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x73, 0x69, + 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x1b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, + 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8f, 0x02, 0x0a, 0x27, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x53, 0x0a, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, + 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x1c, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, + 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, + 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xaa, 0x01, 0x0a, 0x28, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x1d, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, + 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, + 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, + 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x1a, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, + 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x28, 0x41, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x16, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, + 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, + 0x01, 0x52, 0x13, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, + 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x16, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x22, 0x6d, + 0x0a, 0x29, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x1c, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x5f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x1a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x22, 0x81, 0x01, + 0x0a, 0x2a, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x53, 0x0a, 0x20, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, + 0xb0, 0x01, 0x01, 0x52, 0x1c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, + 0x64, 0x22, 0x2d, 0x0a, 0x2b, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, + 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xec, 0x02, 0x0a, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x99, 0x01, 0x0a, 0x11, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, + 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x5c, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x6e, 0x75, 0x6d, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x42, 0x0e, 0xe0, + 0x41, 0x02, 0xba, 0x48, 0x08, 0x92, 0x01, 0x05, 0x08, 0x01, 0x10, 0x88, 0x27, 0x52, 0x10, 0x61, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x1a, + 0x9d, 0x01, 0x0a, 0x11, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x61, 0x6c, 0x12, 0x40, 0x0a, 0x16, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x52, 0x13, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x6c, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, + 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x16, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x22, + 0x7e, 0x0a, 0x2f, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x22, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x5f, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1f, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x22, + 0x93, 0x01, 0x0a, 0x30, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x5f, 0x0a, 0x21, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, + 0x15, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x0f, 0x92, 0x01, 0x0c, 0x08, 0x01, 0x10, 0x88, 0x27, 0x22, + 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x1d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x49, 0x64, 0x73, 0x22, 0x33, 0x0a, 0x31, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xed, 0x02, 0x0a, 0x1e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5a, 0x0a, + 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x46, 0x0a, 0x19, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, + 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, + 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, + 0x64, 0x12, 0x52, 0x0a, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xba, 0x48, 0x05, + 0x72, 0x03, 0xb0, 0x01, 0x01, 0x48, 0x00, 0x52, 0x1c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0c, + 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x1f, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, + 0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x22, 0x82, 0x03, 0x0a, 0x24, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x19, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, + 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, + 0x49, 0x64, 0x12, 0x52, 0x0a, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xba, 0x48, + 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x48, 0x00, 0x52, 0x1c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, + 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, + 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, + 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x69, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x42, 0x0e, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x08, 0x92, 0x01, 0x05, 0x08, 0x01, + 0x10, 0x88, 0x27, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x42, 0x07, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x87, 0x01, 0x0a, 0x25, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x5e, 0x0a, 0x13, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x12, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x22, 0x5e, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x3f, 0x0a, 0x15, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, + 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x13, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x49, 0x64, + 0x22, 0x81, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x61, 0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, + 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x2e, 0x0a, 0x10, 0x69, 0x6e, 0x63, + 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x22, 0xa8, 0x01, 0x0a, 0x1e, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, + 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xf9, 0x01, 0x0a, 0x25, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x42, + 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5a, + 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, + 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x2e, 0x0a, 0x10, 0x69, 0x6e, + 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, + 0x64, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x03, 0xe0, + 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x22, 0xb0, 0x01, 0x0a, 0x26, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x42, 0x79, 0x45, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, + 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x62, 0x0a, 0x1f, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x15, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x52, 0x13, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x49, 0x64, 0x22, 0x22, 0x0a, 0x20, 0x41, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x64, 0x0a, 0x21, 0x55, + 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x3f, 0x0a, 0x15, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x13, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x49, + 0x64, 0x22, 0x24, 0x0a, 0x22, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x74, 0x0a, 0x25, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x4b, 0x0a, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x42, 0x15, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x0f, 0x92, 0x01, 0x0c, 0x08, 0x01, 0x10, 0x88, 0x27, + 0x22, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x22, 0x28, 0x0a, + 0x26, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x76, 0x0a, 0x27, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x09, 0x42, 0x15, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x0f, 0x92, 0x01, 0x0c, 0x08, 0x01, 0x10, + 0x88, 0x27, 0x22, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x22, + 0x2a, 0x0a, 0x28, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0xeb, 0x01, 0x0a, 0x18, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x27, 0x52, 0x45, 0x53, 0x4f, + 0x55, 0x52, 0x43, 0x45, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, + 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x24, 0x0a, 0x20, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, + 0x45, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x10, 0x01, 0x12, 0x27, 0x0a, 0x23, 0x52, + 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, + 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x45, + 0x41, 0x4e, 0x10, 0x02, 0x12, 0x26, 0x0a, 0x22, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, + 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x03, 0x12, 0x2b, 0x0a, 0x27, + 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, + 0x54, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x5f, + 0x4f, 0x46, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x10, 0x04, 0x2a, 0xa3, 0x01, 0x0a, 0x1b, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x2a, 0x52, 0x45, 0x53, + 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, + 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x28, 0x0a, 0x24, 0x52, 0x45, 0x53, + 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, + 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x53, 0x53, 0x45, + 0x54, 0x10, 0x01, 0x12, 0x2a, 0x0a, 0x26, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, + 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x10, 0x02, 0x32, + 0x8d, 0x2e, 0x0a, 0x18, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xc7, 0x01, 0x0a, + 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x3d, 0x2e, 0x73, 0x69, + 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x73, 0x12, 0xd7, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x12, 0x3a, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, + 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, + 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x7d, + 0x12, 0xc1, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x3c, + 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x73, + 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, + 0x6b, 0x65, 0x79, 0x73, 0x12, 0xe3, 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x12, 0x3d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x3a, 0x01, 0x2a, 0x32, 0x3b, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x7b, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xeb, 0x01, 0x0a, 0x1b, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x3e, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x45, 0x22, 0x43, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, + 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x7d, + 0x2f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0xf3, 0x01, 0x0a, 0x1d, 0x55, 0x6e, 0x61, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x40, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x73, + 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x22, 0x45, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0xea, + 0x01, 0x0a, 0x21, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x73, 0x12, 0x44, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x45, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x3a, 0x01, 0x2a, 0x22, 0x2d, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x62, 0x61, + 0x74, 0x63, 0x68, 0x2d, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0xf2, 0x01, 0x0a, 0x23, + 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x73, 0x12, 0x46, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x47, 0x2e, 0x73, 0x69, + 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x3a, 0x01, 0x2a, 0x22, + 0x2f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x73, + 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2d, 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x12, 0xe0, 0x01, 0x0a, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x43, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x44, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, + 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x65, 0x6e, 0x75, 0x6d, 0x2d, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x12, 0xf7, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x40, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x65, + 0x6e, 0x75, 0x6d, 0x2d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x65, + 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xfb, 0x01, + 0x0a, 0x1f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x12, 0x42, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x49, 0x12, 0x47, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x6b, + 0x65, 0x79, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x2f, + 0x65, 0x6e, 0x75, 0x6d, 0x2d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x83, 0x02, 0x0a, 0x20, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x43, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x44, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x4e, 0x3a, 0x01, 0x2a, 0x32, 0x49, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x2d, 0x65, 0x6e, 0x75, 0x6d, 0x2d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x7b, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, + 0x7d, 0x12, 0x84, 0x02, 0x0a, 0x21, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, + 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, + 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x45, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x3a, 0x01, 0x2a, 0x22, + 0x47, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x65, 0x6e, 0x75, 0x6d, + 0x2d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x7d, + 0x2f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0x93, 0x02, 0x0a, 0x23, 0x55, 0x6e, 0x61, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x46, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x47, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x5b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x55, 0x22, 0x53, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x65, 0x6e, 0x75, 0x6d, 0x2d, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0x83, + 0x02, 0x0a, 0x27, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x4a, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4b, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x3a, 0x01, 0x2a, 0x22, 0x34, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x65, 0x6e, 0x75, 0x6d, 0x2d, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2d, 0x61, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x12, 0x8b, 0x02, 0x0a, 0x29, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x12, 0x4c, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, + 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x4d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x75, + 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x65, 0x6e, 0x75, 0x6d, 0x2d, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2d, 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x12, 0xba, 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x3a, + 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, + 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, + 0xd2, 0x01, 0x0a, 0x1d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x12, 0x40, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x3a, 0x01, + 0x2a, 0x22, 0x21, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x12, 0xc6, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x37, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb4, 0x01, + 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x39, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x12, 0xe8, 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x42, + 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x41, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x42, 0x79, 0x45, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x42, 0x79, + 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x12, 0x37, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x2e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, + 0xda, 0x01, 0x0a, 0x18, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x3b, 0x2e, 0x73, + 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x22, + 0x3b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0xe2, 0x01, 0x0a, + 0x1a, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x3d, 0x2e, 0x73, 0x69, + 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x3f, 0x22, 0x3d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, + 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x12, 0xdd, 0x01, 0x0a, 0x1e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x12, 0x41, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x2e, 0x3a, 0x01, 0x2a, 0x22, 0x29, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2d, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x12, 0xe5, 0x01, 0x0a, 0x20, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, 0x61, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x43, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x44, 0x2e, 0x73, 0x69, + 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x6e, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2d, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2d, + 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x1a, 0x44, 0x92, 0x41, 0x41, 0x12, 0x3f, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x20, 0x41, 0x42, 0x41, 0x43, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x28, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x29, 0x2e, 0x42, + 0xb2, 0x02, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, + 0x76, 0x31, 0x42, 0x16, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x66, 0x74, 0x2d, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x2f, 0x73, 0x69, 0x66, 0x74, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, + 0x73, 0x69, 0x66, 0x74, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x76, 0x31, 0xa2, + 0x02, 0x03, 0x53, 0x52, 0x58, 0xaa, 0x02, 0x19, 0x53, 0x69, 0x66, 0x74, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x19, 0x53, 0x69, 0x66, 0x74, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x25, + 0x53, 0x69, 0x66, 0x74, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x53, 0x69, 0x66, 0x74, 0x3a, 0x3a, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x3a, + 0x3a, 0x56, 0x31, 0x92, 0x41, 0x1e, 0x12, 0x1c, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x20, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_sift_resource_attribute_v1_resource_attribute_proto_rawDescOnce sync.Once + file_sift_resource_attribute_v1_resource_attribute_proto_rawDescData = file_sift_resource_attribute_v1_resource_attribute_proto_rawDesc +) + +func file_sift_resource_attribute_v1_resource_attribute_proto_rawDescGZIP() []byte { + file_sift_resource_attribute_v1_resource_attribute_proto_rawDescOnce.Do(func() { + file_sift_resource_attribute_v1_resource_attribute_proto_rawDescData = protoimpl.X.CompressGZIP(file_sift_resource_attribute_v1_resource_attribute_proto_rawDescData) + }) + return file_sift_resource_attribute_v1_resource_attribute_proto_rawDescData +} + +var file_sift_resource_attribute_v1_resource_attribute_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes = make([]protoimpl.MessageInfo, 56) +var file_sift_resource_attribute_v1_resource_attribute_proto_goTypes = []interface{}{ + (ResourceAttributeKeyType)(0), // 0: sift.resource_attribute.v1.ResourceAttributeKeyType + (ResourceAttributeEntityType)(0), // 1: sift.resource_attribute.v1.ResourceAttributeEntityType + (*ResourceAttributeKey)(nil), // 2: sift.resource_attribute.v1.ResourceAttributeKey + (*ResourceAttributeEnumValue)(nil), // 3: sift.resource_attribute.v1.ResourceAttributeEnumValue + (*ResourceAttribute)(nil), // 4: sift.resource_attribute.v1.ResourceAttribute + (*ResourceAttributeEntityIdentifier)(nil), // 5: sift.resource_attribute.v1.ResourceAttributeEntityIdentifier + (*CreateResourceAttributeKeyRequest)(nil), // 6: sift.resource_attribute.v1.CreateResourceAttributeKeyRequest + (*CreateResourceAttributeKeyResponse)(nil), // 7: sift.resource_attribute.v1.CreateResourceAttributeKeyResponse + (*GetResourceAttributeKeyRequest)(nil), // 8: sift.resource_attribute.v1.GetResourceAttributeKeyRequest + (*GetResourceAttributeKeyResponse)(nil), // 9: sift.resource_attribute.v1.GetResourceAttributeKeyResponse + (*ListResourceAttributeKeysRequest)(nil), // 10: sift.resource_attribute.v1.ListResourceAttributeKeysRequest + (*ListResourceAttributeKeysResponse)(nil), // 11: sift.resource_attribute.v1.ListResourceAttributeKeysResponse + (*UpdateResourceAttributeKeyRequest)(nil), // 12: sift.resource_attribute.v1.UpdateResourceAttributeKeyRequest + (*UpdateResourceAttributeKeyResponse)(nil), // 13: sift.resource_attribute.v1.UpdateResourceAttributeKeyResponse + (*ArchiveResourceAttributeKeyRequest)(nil), // 14: sift.resource_attribute.v1.ArchiveResourceAttributeKeyRequest + (*ArchiveResourceAttributeKeyResponse)(nil), // 15: sift.resource_attribute.v1.ArchiveResourceAttributeKeyResponse + (*UnarchiveResourceAttributeKeyRequest)(nil), // 16: sift.resource_attribute.v1.UnarchiveResourceAttributeKeyRequest + (*UnarchiveResourceAttributeKeyResponse)(nil), // 17: sift.resource_attribute.v1.UnarchiveResourceAttributeKeyResponse + (*BatchArchiveResourceAttributeKeysRequest)(nil), // 18: sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysRequest + (*BatchArchiveResourceAttributeKeysResponse)(nil), // 19: sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysResponse + (*BatchUnarchiveResourceAttributeKeysRequest)(nil), // 20: sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysRequest + (*BatchUnarchiveResourceAttributeKeysResponse)(nil), // 21: sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysResponse + (*CreateResourceAttributeEnumValueRequest)(nil), // 22: sift.resource_attribute.v1.CreateResourceAttributeEnumValueRequest + (*CreateResourceAttributeEnumValueResponse)(nil), // 23: sift.resource_attribute.v1.CreateResourceAttributeEnumValueResponse + (*GetResourceAttributeEnumValueRequest)(nil), // 24: sift.resource_attribute.v1.GetResourceAttributeEnumValueRequest + (*GetResourceAttributeEnumValueResponse)(nil), // 25: sift.resource_attribute.v1.GetResourceAttributeEnumValueResponse + (*ListResourceAttributeEnumValuesRequest)(nil), // 26: sift.resource_attribute.v1.ListResourceAttributeEnumValuesRequest + (*ListResourceAttributeEnumValuesResponse)(nil), // 27: sift.resource_attribute.v1.ListResourceAttributeEnumValuesResponse + (*UpdateResourceAttributeEnumValueRequest)(nil), // 28: sift.resource_attribute.v1.UpdateResourceAttributeEnumValueRequest + (*UpdateResourceAttributeEnumValueResponse)(nil), // 29: sift.resource_attribute.v1.UpdateResourceAttributeEnumValueResponse + (*ArchiveResourceAttributeEnumValueRequest)(nil), // 30: sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueRequest + (*ArchiveResourceAttributeEnumValueResponse)(nil), // 31: sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueResponse + (*UnarchiveResourceAttributeEnumValueRequest)(nil), // 32: sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueRequest + (*UnarchiveResourceAttributeEnumValueResponse)(nil), // 33: sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueResponse + (*BatchArchiveResourceAttributeEnumValuesRequest)(nil), // 34: sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest + (*BatchArchiveResourceAttributeEnumValuesResponse)(nil), // 35: sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesResponse + (*BatchUnarchiveResourceAttributeEnumValuesRequest)(nil), // 36: sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesRequest + (*BatchUnarchiveResourceAttributeEnumValuesResponse)(nil), // 37: sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesResponse + (*CreateResourceAttributeRequest)(nil), // 38: sift.resource_attribute.v1.CreateResourceAttributeRequest + (*CreateResourceAttributeResponse)(nil), // 39: sift.resource_attribute.v1.CreateResourceAttributeResponse + (*BatchCreateResourceAttributesRequest)(nil), // 40: sift.resource_attribute.v1.BatchCreateResourceAttributesRequest + (*BatchCreateResourceAttributesResponse)(nil), // 41: sift.resource_attribute.v1.BatchCreateResourceAttributesResponse + (*GetResourceAttributeRequest)(nil), // 42: sift.resource_attribute.v1.GetResourceAttributeRequest + (*GetResourceAttributeResponse)(nil), // 43: sift.resource_attribute.v1.GetResourceAttributeResponse + (*ListResourceAttributesRequest)(nil), // 44: sift.resource_attribute.v1.ListResourceAttributesRequest + (*ListResourceAttributesResponse)(nil), // 45: sift.resource_attribute.v1.ListResourceAttributesResponse + (*ListResourceAttributesByEntityRequest)(nil), // 46: sift.resource_attribute.v1.ListResourceAttributesByEntityRequest + (*ListResourceAttributesByEntityResponse)(nil), // 47: sift.resource_attribute.v1.ListResourceAttributesByEntityResponse + (*ArchiveResourceAttributeRequest)(nil), // 48: sift.resource_attribute.v1.ArchiveResourceAttributeRequest + (*ArchiveResourceAttributeResponse)(nil), // 49: sift.resource_attribute.v1.ArchiveResourceAttributeResponse + (*UnarchiveResourceAttributeRequest)(nil), // 50: sift.resource_attribute.v1.UnarchiveResourceAttributeRequest + (*UnarchiveResourceAttributeResponse)(nil), // 51: sift.resource_attribute.v1.UnarchiveResourceAttributeResponse + (*BatchArchiveResourceAttributesRequest)(nil), // 52: sift.resource_attribute.v1.BatchArchiveResourceAttributesRequest + (*BatchArchiveResourceAttributesResponse)(nil), // 53: sift.resource_attribute.v1.BatchArchiveResourceAttributesResponse + (*BatchUnarchiveResourceAttributesRequest)(nil), // 54: sift.resource_attribute.v1.BatchUnarchiveResourceAttributesRequest + (*BatchUnarchiveResourceAttributesResponse)(nil), // 55: sift.resource_attribute.v1.BatchUnarchiveResourceAttributesResponse + (*CreateResourceAttributeKeyRequest_InitialEnumValue)(nil), // 56: sift.resource_attribute.v1.CreateResourceAttributeKeyRequest.InitialEnumValue + (*BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival)(nil), // 57: sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest.EnumValueArchival + (*timestamppb.Timestamp)(nil), // 58: google.protobuf.Timestamp + (*fieldmaskpb.FieldMask)(nil), // 59: google.protobuf.FieldMask +} +var file_sift_resource_attribute_v1_resource_attribute_proto_depIdxs = []int32{ + 0, // 0: sift.resource_attribute.v1.ResourceAttributeKey.type:type_name -> sift.resource_attribute.v1.ResourceAttributeKeyType + 58, // 1: sift.resource_attribute.v1.ResourceAttributeKey.created_date:type_name -> google.protobuf.Timestamp + 58, // 2: sift.resource_attribute.v1.ResourceAttributeKey.modified_date:type_name -> google.protobuf.Timestamp + 58, // 3: sift.resource_attribute.v1.ResourceAttributeKey.archived_date:type_name -> google.protobuf.Timestamp + 58, // 4: sift.resource_attribute.v1.ResourceAttributeEnumValue.created_date:type_name -> google.protobuf.Timestamp + 58, // 5: sift.resource_attribute.v1.ResourceAttributeEnumValue.modified_date:type_name -> google.protobuf.Timestamp + 58, // 6: sift.resource_attribute.v1.ResourceAttributeEnumValue.archived_date:type_name -> google.protobuf.Timestamp + 5, // 7: sift.resource_attribute.v1.ResourceAttribute.entity:type_name -> sift.resource_attribute.v1.ResourceAttributeEntityIdentifier + 2, // 8: sift.resource_attribute.v1.ResourceAttribute.key:type_name -> sift.resource_attribute.v1.ResourceAttributeKey + 3, // 9: sift.resource_attribute.v1.ResourceAttribute.enum_value_details:type_name -> sift.resource_attribute.v1.ResourceAttributeEnumValue + 58, // 10: sift.resource_attribute.v1.ResourceAttribute.created_date:type_name -> google.protobuf.Timestamp + 58, // 11: sift.resource_attribute.v1.ResourceAttribute.archived_date:type_name -> google.protobuf.Timestamp + 1, // 12: sift.resource_attribute.v1.ResourceAttributeEntityIdentifier.entity_type:type_name -> sift.resource_attribute.v1.ResourceAttributeEntityType + 0, // 13: sift.resource_attribute.v1.CreateResourceAttributeKeyRequest.type:type_name -> sift.resource_attribute.v1.ResourceAttributeKeyType + 56, // 14: sift.resource_attribute.v1.CreateResourceAttributeKeyRequest.initial_enum_values:type_name -> sift.resource_attribute.v1.CreateResourceAttributeKeyRequest.InitialEnumValue + 2, // 15: sift.resource_attribute.v1.CreateResourceAttributeKeyResponse.resource_attribute_key:type_name -> sift.resource_attribute.v1.ResourceAttributeKey + 3, // 16: sift.resource_attribute.v1.CreateResourceAttributeKeyResponse.enum_values:type_name -> sift.resource_attribute.v1.ResourceAttributeEnumValue + 2, // 17: sift.resource_attribute.v1.GetResourceAttributeKeyResponse.resource_attribute_key:type_name -> sift.resource_attribute.v1.ResourceAttributeKey + 2, // 18: sift.resource_attribute.v1.ListResourceAttributeKeysResponse.resource_attribute_keys:type_name -> sift.resource_attribute.v1.ResourceAttributeKey + 59, // 19: sift.resource_attribute.v1.UpdateResourceAttributeKeyRequest.update_mask:type_name -> google.protobuf.FieldMask + 2, // 20: sift.resource_attribute.v1.UpdateResourceAttributeKeyResponse.resource_attribute_key:type_name -> sift.resource_attribute.v1.ResourceAttributeKey + 3, // 21: sift.resource_attribute.v1.CreateResourceAttributeEnumValueResponse.resource_attribute_enum_value:type_name -> sift.resource_attribute.v1.ResourceAttributeEnumValue + 3, // 22: sift.resource_attribute.v1.GetResourceAttributeEnumValueResponse.resource_attribute_enum_value:type_name -> sift.resource_attribute.v1.ResourceAttributeEnumValue + 3, // 23: sift.resource_attribute.v1.ListResourceAttributeEnumValuesResponse.resource_attribute_enum_values:type_name -> sift.resource_attribute.v1.ResourceAttributeEnumValue + 59, // 24: sift.resource_attribute.v1.UpdateResourceAttributeEnumValueRequest.update_mask:type_name -> google.protobuf.FieldMask + 3, // 25: sift.resource_attribute.v1.UpdateResourceAttributeEnumValueResponse.resource_attribute_enum_value:type_name -> sift.resource_attribute.v1.ResourceAttributeEnumValue + 57, // 26: sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest.archival_requests:type_name -> sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest.EnumValueArchival + 5, // 27: sift.resource_attribute.v1.CreateResourceAttributeRequest.entity:type_name -> sift.resource_attribute.v1.ResourceAttributeEntityIdentifier + 4, // 28: sift.resource_attribute.v1.CreateResourceAttributeResponse.resource_attribute:type_name -> sift.resource_attribute.v1.ResourceAttribute + 5, // 29: sift.resource_attribute.v1.BatchCreateResourceAttributesRequest.entities:type_name -> sift.resource_attribute.v1.ResourceAttributeEntityIdentifier + 4, // 30: sift.resource_attribute.v1.BatchCreateResourceAttributesResponse.resource_attributes:type_name -> sift.resource_attribute.v1.ResourceAttribute + 4, // 31: sift.resource_attribute.v1.GetResourceAttributeResponse.resource_attribute:type_name -> sift.resource_attribute.v1.ResourceAttribute + 4, // 32: sift.resource_attribute.v1.ListResourceAttributesResponse.resource_attributes:type_name -> sift.resource_attribute.v1.ResourceAttribute + 5, // 33: sift.resource_attribute.v1.ListResourceAttributesByEntityRequest.entity:type_name -> sift.resource_attribute.v1.ResourceAttributeEntityIdentifier + 4, // 34: sift.resource_attribute.v1.ListResourceAttributesByEntityResponse.resource_attributes:type_name -> sift.resource_attribute.v1.ResourceAttribute + 6, // 35: sift.resource_attribute.v1.ResourceAttributeService.CreateResourceAttributeKey:input_type -> sift.resource_attribute.v1.CreateResourceAttributeKeyRequest + 8, // 36: sift.resource_attribute.v1.ResourceAttributeService.GetResourceAttributeKey:input_type -> sift.resource_attribute.v1.GetResourceAttributeKeyRequest + 10, // 37: sift.resource_attribute.v1.ResourceAttributeService.ListResourceAttributeKeys:input_type -> sift.resource_attribute.v1.ListResourceAttributeKeysRequest + 12, // 38: sift.resource_attribute.v1.ResourceAttributeService.UpdateResourceAttributeKey:input_type -> sift.resource_attribute.v1.UpdateResourceAttributeKeyRequest + 14, // 39: sift.resource_attribute.v1.ResourceAttributeService.ArchiveResourceAttributeKey:input_type -> sift.resource_attribute.v1.ArchiveResourceAttributeKeyRequest + 16, // 40: sift.resource_attribute.v1.ResourceAttributeService.UnarchiveResourceAttributeKey:input_type -> sift.resource_attribute.v1.UnarchiveResourceAttributeKeyRequest + 18, // 41: sift.resource_attribute.v1.ResourceAttributeService.BatchArchiveResourceAttributeKeys:input_type -> sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysRequest + 20, // 42: sift.resource_attribute.v1.ResourceAttributeService.BatchUnarchiveResourceAttributeKeys:input_type -> sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysRequest + 22, // 43: sift.resource_attribute.v1.ResourceAttributeService.CreateResourceAttributeEnumValue:input_type -> sift.resource_attribute.v1.CreateResourceAttributeEnumValueRequest + 24, // 44: sift.resource_attribute.v1.ResourceAttributeService.GetResourceAttributeEnumValue:input_type -> sift.resource_attribute.v1.GetResourceAttributeEnumValueRequest + 26, // 45: sift.resource_attribute.v1.ResourceAttributeService.ListResourceAttributeEnumValues:input_type -> sift.resource_attribute.v1.ListResourceAttributeEnumValuesRequest + 28, // 46: sift.resource_attribute.v1.ResourceAttributeService.UpdateResourceAttributeEnumValue:input_type -> sift.resource_attribute.v1.UpdateResourceAttributeEnumValueRequest + 30, // 47: sift.resource_attribute.v1.ResourceAttributeService.ArchiveResourceAttributeEnumValue:input_type -> sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueRequest + 32, // 48: sift.resource_attribute.v1.ResourceAttributeService.UnarchiveResourceAttributeEnumValue:input_type -> sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueRequest + 34, // 49: sift.resource_attribute.v1.ResourceAttributeService.BatchArchiveResourceAttributeEnumValues:input_type -> sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest + 36, // 50: sift.resource_attribute.v1.ResourceAttributeService.BatchUnarchiveResourceAttributeEnumValues:input_type -> sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesRequest + 38, // 51: sift.resource_attribute.v1.ResourceAttributeService.CreateResourceAttribute:input_type -> sift.resource_attribute.v1.CreateResourceAttributeRequest + 40, // 52: sift.resource_attribute.v1.ResourceAttributeService.BatchCreateResourceAttributes:input_type -> sift.resource_attribute.v1.BatchCreateResourceAttributesRequest + 42, // 53: sift.resource_attribute.v1.ResourceAttributeService.GetResourceAttribute:input_type -> sift.resource_attribute.v1.GetResourceAttributeRequest + 44, // 54: sift.resource_attribute.v1.ResourceAttributeService.ListResourceAttributes:input_type -> sift.resource_attribute.v1.ListResourceAttributesRequest + 46, // 55: sift.resource_attribute.v1.ResourceAttributeService.ListResourceAttributesByEntity:input_type -> sift.resource_attribute.v1.ListResourceAttributesByEntityRequest + 48, // 56: sift.resource_attribute.v1.ResourceAttributeService.ArchiveResourceAttribute:input_type -> sift.resource_attribute.v1.ArchiveResourceAttributeRequest + 50, // 57: sift.resource_attribute.v1.ResourceAttributeService.UnarchiveResourceAttribute:input_type -> sift.resource_attribute.v1.UnarchiveResourceAttributeRequest + 52, // 58: sift.resource_attribute.v1.ResourceAttributeService.BatchArchiveResourceAttributes:input_type -> sift.resource_attribute.v1.BatchArchiveResourceAttributesRequest + 54, // 59: sift.resource_attribute.v1.ResourceAttributeService.BatchUnarchiveResourceAttributes:input_type -> sift.resource_attribute.v1.BatchUnarchiveResourceAttributesRequest + 7, // 60: sift.resource_attribute.v1.ResourceAttributeService.CreateResourceAttributeKey:output_type -> sift.resource_attribute.v1.CreateResourceAttributeKeyResponse + 9, // 61: sift.resource_attribute.v1.ResourceAttributeService.GetResourceAttributeKey:output_type -> sift.resource_attribute.v1.GetResourceAttributeKeyResponse + 11, // 62: sift.resource_attribute.v1.ResourceAttributeService.ListResourceAttributeKeys:output_type -> sift.resource_attribute.v1.ListResourceAttributeKeysResponse + 13, // 63: sift.resource_attribute.v1.ResourceAttributeService.UpdateResourceAttributeKey:output_type -> sift.resource_attribute.v1.UpdateResourceAttributeKeyResponse + 15, // 64: sift.resource_attribute.v1.ResourceAttributeService.ArchiveResourceAttributeKey:output_type -> sift.resource_attribute.v1.ArchiveResourceAttributeKeyResponse + 17, // 65: sift.resource_attribute.v1.ResourceAttributeService.UnarchiveResourceAttributeKey:output_type -> sift.resource_attribute.v1.UnarchiveResourceAttributeKeyResponse + 19, // 66: sift.resource_attribute.v1.ResourceAttributeService.BatchArchiveResourceAttributeKeys:output_type -> sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysResponse + 21, // 67: sift.resource_attribute.v1.ResourceAttributeService.BatchUnarchiveResourceAttributeKeys:output_type -> sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysResponse + 23, // 68: sift.resource_attribute.v1.ResourceAttributeService.CreateResourceAttributeEnumValue:output_type -> sift.resource_attribute.v1.CreateResourceAttributeEnumValueResponse + 25, // 69: sift.resource_attribute.v1.ResourceAttributeService.GetResourceAttributeEnumValue:output_type -> sift.resource_attribute.v1.GetResourceAttributeEnumValueResponse + 27, // 70: sift.resource_attribute.v1.ResourceAttributeService.ListResourceAttributeEnumValues:output_type -> sift.resource_attribute.v1.ListResourceAttributeEnumValuesResponse + 29, // 71: sift.resource_attribute.v1.ResourceAttributeService.UpdateResourceAttributeEnumValue:output_type -> sift.resource_attribute.v1.UpdateResourceAttributeEnumValueResponse + 31, // 72: sift.resource_attribute.v1.ResourceAttributeService.ArchiveResourceAttributeEnumValue:output_type -> sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueResponse + 33, // 73: sift.resource_attribute.v1.ResourceAttributeService.UnarchiveResourceAttributeEnumValue:output_type -> sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueResponse + 35, // 74: sift.resource_attribute.v1.ResourceAttributeService.BatchArchiveResourceAttributeEnumValues:output_type -> sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesResponse + 37, // 75: sift.resource_attribute.v1.ResourceAttributeService.BatchUnarchiveResourceAttributeEnumValues:output_type -> sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesResponse + 39, // 76: sift.resource_attribute.v1.ResourceAttributeService.CreateResourceAttribute:output_type -> sift.resource_attribute.v1.CreateResourceAttributeResponse + 41, // 77: sift.resource_attribute.v1.ResourceAttributeService.BatchCreateResourceAttributes:output_type -> sift.resource_attribute.v1.BatchCreateResourceAttributesResponse + 43, // 78: sift.resource_attribute.v1.ResourceAttributeService.GetResourceAttribute:output_type -> sift.resource_attribute.v1.GetResourceAttributeResponse + 45, // 79: sift.resource_attribute.v1.ResourceAttributeService.ListResourceAttributes:output_type -> sift.resource_attribute.v1.ListResourceAttributesResponse + 47, // 80: sift.resource_attribute.v1.ResourceAttributeService.ListResourceAttributesByEntity:output_type -> sift.resource_attribute.v1.ListResourceAttributesByEntityResponse + 49, // 81: sift.resource_attribute.v1.ResourceAttributeService.ArchiveResourceAttribute:output_type -> sift.resource_attribute.v1.ArchiveResourceAttributeResponse + 51, // 82: sift.resource_attribute.v1.ResourceAttributeService.UnarchiveResourceAttribute:output_type -> sift.resource_attribute.v1.UnarchiveResourceAttributeResponse + 53, // 83: sift.resource_attribute.v1.ResourceAttributeService.BatchArchiveResourceAttributes:output_type -> sift.resource_attribute.v1.BatchArchiveResourceAttributesResponse + 55, // 84: sift.resource_attribute.v1.ResourceAttributeService.BatchUnarchiveResourceAttributes:output_type -> sift.resource_attribute.v1.BatchUnarchiveResourceAttributesResponse + 60, // [60:85] is the sub-list for method output_type + 35, // [35:60] is the sub-list for method input_type + 35, // [35:35] is the sub-list for extension type_name + 35, // [35:35] is the sub-list for extension extendee + 0, // [0:35] is the sub-list for field type_name +} + +func init() { file_sift_resource_attribute_v1_resource_attribute_proto_init() } +func file_sift_resource_attribute_v1_resource_attribute_proto_init() { + if File_sift_resource_attribute_v1_resource_attribute_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceAttributeKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceAttributeEnumValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceAttribute); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceAttributeEntityIdentifier); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateResourceAttributeKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateResourceAttributeKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetResourceAttributeKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetResourceAttributeKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListResourceAttributeKeysRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListResourceAttributeKeysResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateResourceAttributeKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateResourceAttributeKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveResourceAttributeKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveResourceAttributeKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnarchiveResourceAttributeKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnarchiveResourceAttributeKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchArchiveResourceAttributeKeysRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchArchiveResourceAttributeKeysResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchUnarchiveResourceAttributeKeysRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchUnarchiveResourceAttributeKeysResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateResourceAttributeEnumValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateResourceAttributeEnumValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetResourceAttributeEnumValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetResourceAttributeEnumValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListResourceAttributeEnumValuesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListResourceAttributeEnumValuesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateResourceAttributeEnumValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateResourceAttributeEnumValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveResourceAttributeEnumValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveResourceAttributeEnumValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnarchiveResourceAttributeEnumValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnarchiveResourceAttributeEnumValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchArchiveResourceAttributeEnumValuesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchArchiveResourceAttributeEnumValuesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchUnarchiveResourceAttributeEnumValuesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchUnarchiveResourceAttributeEnumValuesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateResourceAttributeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateResourceAttributeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateResourceAttributesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateResourceAttributesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetResourceAttributeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetResourceAttributeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListResourceAttributesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListResourceAttributesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListResourceAttributesByEntityRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListResourceAttributesByEntityResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveResourceAttributeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveResourceAttributeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnarchiveResourceAttributeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnarchiveResourceAttributeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchArchiveResourceAttributesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchArchiveResourceAttributesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchUnarchiveResourceAttributesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchUnarchiveResourceAttributesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateResourceAttributeKeyRequest_InitialEnumValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*ResourceAttribute_ResourceAttributeEnumValueId)(nil), + (*ResourceAttribute_BooleanValue)(nil), + (*ResourceAttribute_NumberValue)(nil), + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[36].OneofWrappers = []interface{}{ + (*CreateResourceAttributeRequest_ResourceAttributeEnumValueId)(nil), + (*CreateResourceAttributeRequest_BooleanValue)(nil), + (*CreateResourceAttributeRequest_NumberValue)(nil), + } + file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes[38].OneofWrappers = []interface{}{ + (*BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId)(nil), + (*BatchCreateResourceAttributesRequest_BooleanValue)(nil), + (*BatchCreateResourceAttributesRequest_NumberValue)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_sift_resource_attribute_v1_resource_attribute_proto_rawDesc, + NumEnums: 2, + NumMessages: 56, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_sift_resource_attribute_v1_resource_attribute_proto_goTypes, + DependencyIndexes: file_sift_resource_attribute_v1_resource_attribute_proto_depIdxs, + EnumInfos: file_sift_resource_attribute_v1_resource_attribute_proto_enumTypes, + MessageInfos: file_sift_resource_attribute_v1_resource_attribute_proto_msgTypes, + }.Build() + File_sift_resource_attribute_v1_resource_attribute_proto = out.File + file_sift_resource_attribute_v1_resource_attribute_proto_rawDesc = nil + file_sift_resource_attribute_v1_resource_attribute_proto_goTypes = nil + file_sift_resource_attribute_v1_resource_attribute_proto_depIdxs = nil +} diff --git a/go/gen/sift/resource_attribute/v1/resource_attribute.pb.gw.go b/go/gen/sift/resource_attribute/v1/resource_attribute.pb.gw.go new file mode 100644 index 000000000..570d3f5eb --- /dev/null +++ b/go/gen/sift/resource_attribute/v1/resource_attribute.pb.gw.go @@ -0,0 +1,2533 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: sift/resource_attribute/v1/resource_attribute.proto + +/* +Package resource_attributev1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package resource_attributev1 + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_ResourceAttributeService_CreateResourceAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateResourceAttributeKeyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateResourceAttributeKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_CreateResourceAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateResourceAttributeKeyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateResourceAttributeKey(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_GetResourceAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetResourceAttributeKeyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_key_id") + } + + protoReq.ResourceAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_key_id", err) + } + + msg, err := client.GetResourceAttributeKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_GetResourceAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetResourceAttributeKeyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_key_id") + } + + protoReq.ResourceAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_key_id", err) + } + + msg, err := server.GetResourceAttributeKey(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_ResourceAttributeService_ListResourceAttributeKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_ResourceAttributeService_ListResourceAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListResourceAttributeKeysRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ResourceAttributeService_ListResourceAttributeKeys_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListResourceAttributeKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_ListResourceAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListResourceAttributeKeysRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ResourceAttributeService_ListResourceAttributeKeys_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListResourceAttributeKeys(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_UpdateResourceAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateResourceAttributeKeyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_key_id") + } + + protoReq.ResourceAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_key_id", err) + } + + msg, err := client.UpdateResourceAttributeKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_UpdateResourceAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateResourceAttributeKeyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_key_id") + } + + protoReq.ResourceAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_key_id", err) + } + + msg, err := server.UpdateResourceAttributeKey(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_ArchiveResourceAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchiveResourceAttributeKeyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_key_id") + } + + protoReq.ResourceAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_key_id", err) + } + + msg, err := client.ArchiveResourceAttributeKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_ArchiveResourceAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchiveResourceAttributeKeyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_key_id") + } + + protoReq.ResourceAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_key_id", err) + } + + msg, err := server.ArchiveResourceAttributeKey(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_UnarchiveResourceAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UnarchiveResourceAttributeKeyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_key_id") + } + + protoReq.ResourceAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_key_id", err) + } + + msg, err := client.UnarchiveResourceAttributeKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_UnarchiveResourceAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UnarchiveResourceAttributeKeyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_key_id") + } + + protoReq.ResourceAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_key_id", err) + } + + msg, err := server.UnarchiveResourceAttributeKey(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_BatchArchiveResourceAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchArchiveResourceAttributeKeysRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.BatchArchiveResourceAttributeKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_BatchArchiveResourceAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchArchiveResourceAttributeKeysRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.BatchArchiveResourceAttributeKeys(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchUnarchiveResourceAttributeKeysRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.BatchUnarchiveResourceAttributeKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchUnarchiveResourceAttributeKeysRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.BatchUnarchiveResourceAttributeKeys(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_CreateResourceAttributeEnumValue_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateResourceAttributeEnumValueRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateResourceAttributeEnumValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_CreateResourceAttributeEnumValue_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateResourceAttributeEnumValueRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateResourceAttributeEnumValue(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_GetResourceAttributeEnumValue_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetResourceAttributeEnumValueRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_enum_value_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_enum_value_id") + } + + protoReq.ResourceAttributeEnumValueId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_enum_value_id", err) + } + + msg, err := client.GetResourceAttributeEnumValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_GetResourceAttributeEnumValue_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetResourceAttributeEnumValueRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_enum_value_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_enum_value_id") + } + + protoReq.ResourceAttributeEnumValueId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_enum_value_id", err) + } + + msg, err := server.GetResourceAttributeEnumValue(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_ResourceAttributeService_ListResourceAttributeEnumValues_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_attribute_key_id": 0, "resourceAttributeKeyId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_ResourceAttributeService_ListResourceAttributeEnumValues_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListResourceAttributeEnumValuesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_key_id") + } + + protoReq.ResourceAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_key_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ResourceAttributeService_ListResourceAttributeEnumValues_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListResourceAttributeEnumValues(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_ListResourceAttributeEnumValues_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListResourceAttributeEnumValuesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_key_id") + } + + protoReq.ResourceAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_key_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ResourceAttributeService_ListResourceAttributeEnumValues_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListResourceAttributeEnumValues(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_UpdateResourceAttributeEnumValue_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateResourceAttributeEnumValueRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_enum_value_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_enum_value_id") + } + + protoReq.ResourceAttributeEnumValueId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_enum_value_id", err) + } + + msg, err := client.UpdateResourceAttributeEnumValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_UpdateResourceAttributeEnumValue_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateResourceAttributeEnumValueRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_enum_value_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_enum_value_id") + } + + protoReq.ResourceAttributeEnumValueId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_enum_value_id", err) + } + + msg, err := server.UpdateResourceAttributeEnumValue(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_ArchiveResourceAttributeEnumValue_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchiveResourceAttributeEnumValueRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["archived_enum_value_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "archived_enum_value_id") + } + + protoReq.ArchivedEnumValueId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "archived_enum_value_id", err) + } + + msg, err := client.ArchiveResourceAttributeEnumValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_ArchiveResourceAttributeEnumValue_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchiveResourceAttributeEnumValueRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["archived_enum_value_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "archived_enum_value_id") + } + + protoReq.ArchivedEnumValueId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "archived_enum_value_id", err) + } + + msg, err := server.ArchiveResourceAttributeEnumValue(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_UnarchiveResourceAttributeEnumValue_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UnarchiveResourceAttributeEnumValueRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_enum_value_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_enum_value_id") + } + + protoReq.ResourceAttributeEnumValueId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_enum_value_id", err) + } + + msg, err := client.UnarchiveResourceAttributeEnumValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_UnarchiveResourceAttributeEnumValue_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UnarchiveResourceAttributeEnumValueRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_enum_value_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_enum_value_id") + } + + protoReq.ResourceAttributeEnumValueId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_enum_value_id", err) + } + + msg, err := server.UnarchiveResourceAttributeEnumValue(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchArchiveResourceAttributeEnumValuesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.BatchArchiveResourceAttributeEnumValues(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchArchiveResourceAttributeEnumValuesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.BatchArchiveResourceAttributeEnumValues(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchUnarchiveResourceAttributeEnumValuesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.BatchUnarchiveResourceAttributeEnumValues(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchUnarchiveResourceAttributeEnumValuesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.BatchUnarchiveResourceAttributeEnumValues(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_CreateResourceAttribute_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateResourceAttributeRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateResourceAttribute(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_CreateResourceAttribute_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateResourceAttributeRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateResourceAttribute(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_BatchCreateResourceAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchCreateResourceAttributesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.BatchCreateResourceAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_BatchCreateResourceAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchCreateResourceAttributesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.BatchCreateResourceAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_GetResourceAttribute_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetResourceAttributeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_id") + } + + protoReq.ResourceAttributeId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_id", err) + } + + msg, err := client.GetResourceAttribute(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_GetResourceAttribute_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetResourceAttributeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_id") + } + + protoReq.ResourceAttributeId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_id", err) + } + + msg, err := server.GetResourceAttribute(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_ResourceAttributeService_ListResourceAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_ResourceAttributeService_ListResourceAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListResourceAttributesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ResourceAttributeService_ListResourceAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListResourceAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_ListResourceAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListResourceAttributesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ResourceAttributeService_ListResourceAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListResourceAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_ResourceAttributeService_ListResourceAttributesByEntity_0 = &utilities.DoubleArray{Encoding: map[string]int{"entity": 0, "entity_id": 1, "entityId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} +) + +func request_ResourceAttributeService_ListResourceAttributesByEntity_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListResourceAttributesByEntityRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["entity.entity_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "entity.entity_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "entity.entity_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "entity.entity_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ResourceAttributeService_ListResourceAttributesByEntity_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListResourceAttributesByEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_ListResourceAttributesByEntity_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListResourceAttributesByEntityRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["entity.entity_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "entity.entity_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "entity.entity_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "entity.entity_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ResourceAttributeService_ListResourceAttributesByEntity_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListResourceAttributesByEntity(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_ArchiveResourceAttribute_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchiveResourceAttributeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_id") + } + + protoReq.ResourceAttributeId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_id", err) + } + + msg, err := client.ArchiveResourceAttribute(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_ArchiveResourceAttribute_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchiveResourceAttributeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_id") + } + + protoReq.ResourceAttributeId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_id", err) + } + + msg, err := server.ArchiveResourceAttribute(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_UnarchiveResourceAttribute_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UnarchiveResourceAttributeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_id") + } + + protoReq.ResourceAttributeId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_id", err) + } + + msg, err := client.UnarchiveResourceAttribute(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_UnarchiveResourceAttribute_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UnarchiveResourceAttributeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_attribute_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_attribute_id") + } + + protoReq.ResourceAttributeId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_attribute_id", err) + } + + msg, err := server.UnarchiveResourceAttribute(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_BatchArchiveResourceAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchArchiveResourceAttributesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.BatchArchiveResourceAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_BatchArchiveResourceAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchArchiveResourceAttributesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.BatchArchiveResourceAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ResourceAttributeService_BatchUnarchiveResourceAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client ResourceAttributeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchUnarchiveResourceAttributesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.BatchUnarchiveResourceAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ResourceAttributeService_BatchUnarchiveResourceAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server ResourceAttributeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchUnarchiveResourceAttributesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.BatchUnarchiveResourceAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterResourceAttributeServiceHandlerServer registers the http handlers for service ResourceAttributeService to "mux". +// UnaryRPC :call ResourceAttributeServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterResourceAttributeServiceHandlerFromEndpoint instead. +func RegisterResourceAttributeServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ResourceAttributeServiceServer) error { + + mux.Handle("POST", pattern_ResourceAttributeService_CreateResourceAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeKey", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_CreateResourceAttributeKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_CreateResourceAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_GetResourceAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeKey", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/{resource_attribute_key_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_GetResourceAttributeKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_GetResourceAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_ListResourceAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_ListResourceAttributeKeys_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ListResourceAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_ResourceAttributeService_UpdateResourceAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeKey", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/{resource_attribute_key_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_UpdateResourceAttributeKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_UpdateResourceAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_ArchiveResourceAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeKey", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/{resource_attribute_key_id}/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_ArchiveResourceAttributeKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ArchiveResourceAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_UnarchiveResourceAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeKey", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/{resource_attribute_key_id}/unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_UnarchiveResourceAttributeKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_UnarchiveResourceAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchArchiveResourceAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/batch-archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_BatchArchiveResourceAttributeKeys_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchArchiveResourceAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/batch-unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_CreateResourceAttributeEnumValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeEnumValue", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_CreateResourceAttributeEnumValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_CreateResourceAttributeEnumValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_GetResourceAttributeEnumValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeEnumValue", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_GetResourceAttributeEnumValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_GetResourceAttributeEnumValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_ListResourceAttributeEnumValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeEnumValues", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/{resource_attribute_key_id}/enum-values")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_ListResourceAttributeEnumValues_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ListResourceAttributeEnumValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_ResourceAttributeService_UpdateResourceAttributeEnumValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeEnumValue", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_UpdateResourceAttributeEnumValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_UpdateResourceAttributeEnumValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_ArchiveResourceAttributeEnumValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeEnumValue", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/{archived_enum_value_id}/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_ArchiveResourceAttributeEnumValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ArchiveResourceAttributeEnumValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_UnarchiveResourceAttributeEnumValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeEnumValue", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}/unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_UnarchiveResourceAttributeEnumValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_UnarchiveResourceAttributeEnumValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeEnumValues", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/batch-archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeEnumValues", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/batch-unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_CreateResourceAttribute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttribute", runtime.WithHTTPPathPattern("/api/v1/resource-attributes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_CreateResourceAttribute_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_CreateResourceAttribute_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchCreateResourceAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchCreateResourceAttributes", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/batch")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_BatchCreateResourceAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchCreateResourceAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_GetResourceAttribute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttribute", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/{resource_attribute_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_GetResourceAttribute_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_GetResourceAttribute_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_ListResourceAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributes", runtime.WithHTTPPathPattern("/api/v1/resource-attributes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_ListResourceAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ListResourceAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_ListResourceAttributesByEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributesByEntity", runtime.WithHTTPPathPattern("/api/v1/entities/{entity.entity_id}/resource-attributes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_ListResourceAttributesByEntity_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ListResourceAttributesByEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_ArchiveResourceAttribute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttribute", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/{resource_attribute_id}/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_ArchiveResourceAttribute_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ArchiveResourceAttribute_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_UnarchiveResourceAttribute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttribute", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/{resource_attribute_id}/unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_UnarchiveResourceAttribute_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_UnarchiveResourceAttribute_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchArchiveResourceAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributes", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/batch-archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_BatchArchiveResourceAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchArchiveResourceAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchUnarchiveResourceAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributes", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/batch-unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ResourceAttributeService_BatchUnarchiveResourceAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchUnarchiveResourceAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterResourceAttributeServiceHandlerFromEndpoint is same as RegisterResourceAttributeServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterResourceAttributeServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterResourceAttributeServiceHandler(ctx, mux, conn) +} + +// RegisterResourceAttributeServiceHandler registers the http handlers for service ResourceAttributeService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterResourceAttributeServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterResourceAttributeServiceHandlerClient(ctx, mux, NewResourceAttributeServiceClient(conn)) +} + +// RegisterResourceAttributeServiceHandlerClient registers the http handlers for service ResourceAttributeService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ResourceAttributeServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ResourceAttributeServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "ResourceAttributeServiceClient" to call the correct interceptors. +func RegisterResourceAttributeServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceAttributeServiceClient) error { + + mux.Handle("POST", pattern_ResourceAttributeService_CreateResourceAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeKey", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_CreateResourceAttributeKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_CreateResourceAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_GetResourceAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeKey", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/{resource_attribute_key_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_GetResourceAttributeKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_GetResourceAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_ListResourceAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_ListResourceAttributeKeys_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ListResourceAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_ResourceAttributeService_UpdateResourceAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeKey", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/{resource_attribute_key_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_UpdateResourceAttributeKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_UpdateResourceAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_ArchiveResourceAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeKey", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/{resource_attribute_key_id}/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_ArchiveResourceAttributeKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ArchiveResourceAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_UnarchiveResourceAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeKey", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/{resource_attribute_key_id}/unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_UnarchiveResourceAttributeKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_UnarchiveResourceAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchArchiveResourceAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/batch-archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_BatchArchiveResourceAttributeKeys_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchArchiveResourceAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/batch-unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_CreateResourceAttributeEnumValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeEnumValue", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_CreateResourceAttributeEnumValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_CreateResourceAttributeEnumValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_GetResourceAttributeEnumValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeEnumValue", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_GetResourceAttributeEnumValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_GetResourceAttributeEnumValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_ListResourceAttributeEnumValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeEnumValues", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-keys/{resource_attribute_key_id}/enum-values")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_ListResourceAttributeEnumValues_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ListResourceAttributeEnumValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_ResourceAttributeService_UpdateResourceAttributeEnumValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeEnumValue", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_UpdateResourceAttributeEnumValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_UpdateResourceAttributeEnumValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_ArchiveResourceAttributeEnumValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeEnumValue", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/{archived_enum_value_id}/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_ArchiveResourceAttributeEnumValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ArchiveResourceAttributeEnumValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_UnarchiveResourceAttributeEnumValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeEnumValue", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}/unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_UnarchiveResourceAttributeEnumValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_UnarchiveResourceAttributeEnumValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeEnumValues", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/batch-archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeEnumValues", runtime.WithHTTPPathPattern("/api/v1/resource-attribute-enum-values/batch-unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_CreateResourceAttribute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttribute", runtime.WithHTTPPathPattern("/api/v1/resource-attributes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_CreateResourceAttribute_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_CreateResourceAttribute_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchCreateResourceAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchCreateResourceAttributes", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/batch")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_BatchCreateResourceAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchCreateResourceAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_GetResourceAttribute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttribute", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/{resource_attribute_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_GetResourceAttribute_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_GetResourceAttribute_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_ListResourceAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributes", runtime.WithHTTPPathPattern("/api/v1/resource-attributes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_ListResourceAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ListResourceAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ResourceAttributeService_ListResourceAttributesByEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributesByEntity", runtime.WithHTTPPathPattern("/api/v1/entities/{entity.entity_id}/resource-attributes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_ListResourceAttributesByEntity_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ListResourceAttributesByEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_ArchiveResourceAttribute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttribute", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/{resource_attribute_id}/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_ArchiveResourceAttribute_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_ArchiveResourceAttribute_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_UnarchiveResourceAttribute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttribute", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/{resource_attribute_id}/unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_UnarchiveResourceAttribute_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_UnarchiveResourceAttribute_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchArchiveResourceAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributes", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/batch-archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_BatchArchiveResourceAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchArchiveResourceAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ResourceAttributeService_BatchUnarchiveResourceAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributes", runtime.WithHTTPPathPattern("/api/v1/resource-attributes/batch-unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ResourceAttributeService_BatchUnarchiveResourceAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ResourceAttributeService_BatchUnarchiveResourceAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_ResourceAttributeService_CreateResourceAttributeKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "resource-attribute-keys"}, "")) + + pattern_ResourceAttributeService_GetResourceAttributeKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "resource-attribute-keys", "resource_attribute_key_id"}, "")) + + pattern_ResourceAttributeService_ListResourceAttributeKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "resource-attribute-keys"}, "")) + + pattern_ResourceAttributeService_UpdateResourceAttributeKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "resource-attribute-keys", "resource_attribute_key_id"}, "")) + + pattern_ResourceAttributeService_ArchiveResourceAttributeKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "resource-attribute-keys", "resource_attribute_key_id", "archive"}, "")) + + pattern_ResourceAttributeService_UnarchiveResourceAttributeKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "resource-attribute-keys", "resource_attribute_key_id", "unarchive"}, "")) + + pattern_ResourceAttributeService_BatchArchiveResourceAttributeKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "resource-attribute-keys", "batch-archive"}, "")) + + pattern_ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "resource-attribute-keys", "batch-unarchive"}, "")) + + pattern_ResourceAttributeService_CreateResourceAttributeEnumValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "resource-attribute-enum-values"}, "")) + + pattern_ResourceAttributeService_GetResourceAttributeEnumValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "resource-attribute-enum-values", "resource_attribute_enum_value_id"}, "")) + + pattern_ResourceAttributeService_ListResourceAttributeEnumValues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "resource-attribute-keys", "resource_attribute_key_id", "enum-values"}, "")) + + pattern_ResourceAttributeService_UpdateResourceAttributeEnumValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "resource-attribute-enum-values", "resource_attribute_enum_value_id"}, "")) + + pattern_ResourceAttributeService_ArchiveResourceAttributeEnumValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "resource-attribute-enum-values", "archived_enum_value_id", "archive"}, "")) + + pattern_ResourceAttributeService_UnarchiveResourceAttributeEnumValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "resource-attribute-enum-values", "resource_attribute_enum_value_id", "unarchive"}, "")) + + pattern_ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "resource-attribute-enum-values", "batch-archive"}, "")) + + pattern_ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "resource-attribute-enum-values", "batch-unarchive"}, "")) + + pattern_ResourceAttributeService_CreateResourceAttribute_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "resource-attributes"}, "")) + + pattern_ResourceAttributeService_BatchCreateResourceAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "resource-attributes", "batch"}, "")) + + pattern_ResourceAttributeService_GetResourceAttribute_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "resource-attributes", "resource_attribute_id"}, "")) + + pattern_ResourceAttributeService_ListResourceAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "resource-attributes"}, "")) + + pattern_ResourceAttributeService_ListResourceAttributesByEntity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "entities", "entity.entity_id", "resource-attributes"}, "")) + + pattern_ResourceAttributeService_ArchiveResourceAttribute_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "resource-attributes", "resource_attribute_id", "archive"}, "")) + + pattern_ResourceAttributeService_UnarchiveResourceAttribute_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "resource-attributes", "resource_attribute_id", "unarchive"}, "")) + + pattern_ResourceAttributeService_BatchArchiveResourceAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "resource-attributes", "batch-archive"}, "")) + + pattern_ResourceAttributeService_BatchUnarchiveResourceAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "resource-attributes", "batch-unarchive"}, "")) +) + +var ( + forward_ResourceAttributeService_CreateResourceAttributeKey_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_GetResourceAttributeKey_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_ListResourceAttributeKeys_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_UpdateResourceAttributeKey_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_ArchiveResourceAttributeKey_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_UnarchiveResourceAttributeKey_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_BatchArchiveResourceAttributeKeys_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_CreateResourceAttributeEnumValue_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_GetResourceAttributeEnumValue_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_ListResourceAttributeEnumValues_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_UpdateResourceAttributeEnumValue_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_ArchiveResourceAttributeEnumValue_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_UnarchiveResourceAttributeEnumValue_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_CreateResourceAttribute_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_BatchCreateResourceAttributes_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_GetResourceAttribute_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_ListResourceAttributes_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_ListResourceAttributesByEntity_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_ArchiveResourceAttribute_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_UnarchiveResourceAttribute_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_BatchArchiveResourceAttributes_0 = runtime.ForwardResponseMessage + + forward_ResourceAttributeService_BatchUnarchiveResourceAttributes_0 = runtime.ForwardResponseMessage +) diff --git a/go/gen/sift/resource_attribute/v1/resource_attribute_vtproto.pb.go b/go/gen/sift/resource_attribute/v1/resource_attribute_vtproto.pb.go new file mode 100644 index 000000000..5b208d7a0 --- /dev/null +++ b/go/gen/sift/resource_attribute/v1/resource_attribute_vtproto.pb.go @@ -0,0 +1,23904 @@ +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: sift/resource_attribute/v1/resource_attribute.proto + +package resource_attributev1 + +import ( + context "context" + binary "encoding/binary" + fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" + fieldmaskpb1 "github.com/planetscale/vtprotobuf/types/known/fieldmaskpb" + timestamppb1 "github.com/planetscale/vtprotobuf/types/known/timestamppb" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + proto "google.golang.org/protobuf/proto" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +func (m *ResourceAttributeKey) CloneVT() *ResourceAttributeKey { + if m == nil { + return (*ResourceAttributeKey)(nil) + } + r := new(ResourceAttributeKey) + r.ResourceAttributeKeyId = m.ResourceAttributeKeyId + r.OrganizationId = m.OrganizationId + r.DisplayName = m.DisplayName + r.Description = m.Description + r.Type = m.Type + r.CreatedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.CreatedDate).CloneVT()) + r.CreatedByUserId = m.CreatedByUserId + r.ModifiedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.ModifiedDate).CloneVT()) + r.ModifiedByUserId = m.ModifiedByUserId + r.ArchivedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.ArchivedDate).CloneVT()) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ResourceAttributeKey) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ResourceAttributeEnumValue) CloneVT() *ResourceAttributeEnumValue { + if m == nil { + return (*ResourceAttributeEnumValue)(nil) + } + r := new(ResourceAttributeEnumValue) + r.ResourceAttributeEnumValueId = m.ResourceAttributeEnumValueId + r.ResourceAttributeKeyId = m.ResourceAttributeKeyId + r.DisplayName = m.DisplayName + r.Description = m.Description + r.CreatedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.CreatedDate).CloneVT()) + r.CreatedByUserId = m.CreatedByUserId + r.ModifiedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.ModifiedDate).CloneVT()) + r.ModifiedByUserId = m.ModifiedByUserId + r.ArchivedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.ArchivedDate).CloneVT()) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ResourceAttributeEnumValue) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ResourceAttribute) CloneVT() *ResourceAttribute { + if m == nil { + return (*ResourceAttribute)(nil) + } + r := new(ResourceAttribute) + r.ResourceAttributeId = m.ResourceAttributeId + r.OrganizationId = m.OrganizationId + r.Entity = m.Entity.CloneVT() + r.ResourceAttributeKeyId = m.ResourceAttributeKeyId + r.Key = m.Key.CloneVT() + r.EnumValueDetails = m.EnumValueDetails.CloneVT() + r.CreatedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.CreatedDate).CloneVT()) + r.CreatedByUserId = m.CreatedByUserId + r.ArchivedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.ArchivedDate).CloneVT()) + if m.Value != nil { + r.Value = m.Value.(interface { + CloneVT() isResourceAttribute_Value + }).CloneVT() + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ResourceAttribute) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ResourceAttribute_ResourceAttributeEnumValueId) CloneVT() isResourceAttribute_Value { + if m == nil { + return (*ResourceAttribute_ResourceAttributeEnumValueId)(nil) + } + r := new(ResourceAttribute_ResourceAttributeEnumValueId) + r.ResourceAttributeEnumValueId = m.ResourceAttributeEnumValueId + return r +} + +func (m *ResourceAttribute_BooleanValue) CloneVT() isResourceAttribute_Value { + if m == nil { + return (*ResourceAttribute_BooleanValue)(nil) + } + r := new(ResourceAttribute_BooleanValue) + r.BooleanValue = m.BooleanValue + return r +} + +func (m *ResourceAttribute_NumberValue) CloneVT() isResourceAttribute_Value { + if m == nil { + return (*ResourceAttribute_NumberValue)(nil) + } + r := new(ResourceAttribute_NumberValue) + r.NumberValue = m.NumberValue + return r +} + +func (m *ResourceAttributeEntityIdentifier) CloneVT() *ResourceAttributeEntityIdentifier { + if m == nil { + return (*ResourceAttributeEntityIdentifier)(nil) + } + r := new(ResourceAttributeEntityIdentifier) + r.EntityId = m.EntityId + r.EntityType = m.EntityType + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ResourceAttributeEntityIdentifier) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreateResourceAttributeKeyRequest_InitialEnumValue) CloneVT() *CreateResourceAttributeKeyRequest_InitialEnumValue { + if m == nil { + return (*CreateResourceAttributeKeyRequest_InitialEnumValue)(nil) + } + r := new(CreateResourceAttributeKeyRequest_InitialEnumValue) + r.DisplayName = m.DisplayName + r.Description = m.Description + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreateResourceAttributeKeyRequest_InitialEnumValue) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreateResourceAttributeKeyRequest) CloneVT() *CreateResourceAttributeKeyRequest { + if m == nil { + return (*CreateResourceAttributeKeyRequest)(nil) + } + r := new(CreateResourceAttributeKeyRequest) + r.DisplayName = m.DisplayName + r.Description = m.Description + r.Type = m.Type + if rhs := m.InitialEnumValues; rhs != nil { + tmpContainer := make([]*CreateResourceAttributeKeyRequest_InitialEnumValue, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.InitialEnumValues = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreateResourceAttributeKeyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreateResourceAttributeKeyResponse) CloneVT() *CreateResourceAttributeKeyResponse { + if m == nil { + return (*CreateResourceAttributeKeyResponse)(nil) + } + r := new(CreateResourceAttributeKeyResponse) + r.ResourceAttributeKey = m.ResourceAttributeKey.CloneVT() + if rhs := m.EnumValues; rhs != nil { + tmpContainer := make([]*ResourceAttributeEnumValue, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.EnumValues = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreateResourceAttributeKeyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetResourceAttributeKeyRequest) CloneVT() *GetResourceAttributeKeyRequest { + if m == nil { + return (*GetResourceAttributeKeyRequest)(nil) + } + r := new(GetResourceAttributeKeyRequest) + r.ResourceAttributeKeyId = m.ResourceAttributeKeyId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetResourceAttributeKeyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetResourceAttributeKeyResponse) CloneVT() *GetResourceAttributeKeyResponse { + if m == nil { + return (*GetResourceAttributeKeyResponse)(nil) + } + r := new(GetResourceAttributeKeyResponse) + r.ResourceAttributeKey = m.ResourceAttributeKey.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetResourceAttributeKeyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListResourceAttributeKeysRequest) CloneVT() *ListResourceAttributeKeysRequest { + if m == nil { + return (*ListResourceAttributeKeysRequest)(nil) + } + r := new(ListResourceAttributeKeysRequest) + r.PageSize = m.PageSize + r.PageToken = m.PageToken + r.Filter = m.Filter + r.OrderBy = m.OrderBy + r.IncludeArchived = m.IncludeArchived + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListResourceAttributeKeysRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListResourceAttributeKeysResponse) CloneVT() *ListResourceAttributeKeysResponse { + if m == nil { + return (*ListResourceAttributeKeysResponse)(nil) + } + r := new(ListResourceAttributeKeysResponse) + r.NextPageToken = m.NextPageToken + if rhs := m.ResourceAttributeKeys; rhs != nil { + tmpContainer := make([]*ResourceAttributeKey, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.ResourceAttributeKeys = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListResourceAttributeKeysResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UpdateResourceAttributeKeyRequest) CloneVT() *UpdateResourceAttributeKeyRequest { + if m == nil { + return (*UpdateResourceAttributeKeyRequest)(nil) + } + r := new(UpdateResourceAttributeKeyRequest) + r.ResourceAttributeKeyId = m.ResourceAttributeKeyId + r.DisplayName = m.DisplayName + r.Description = m.Description + r.UpdateMask = (*fieldmaskpb.FieldMask)((*fieldmaskpb1.FieldMask)(m.UpdateMask).CloneVT()) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UpdateResourceAttributeKeyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UpdateResourceAttributeKeyResponse) CloneVT() *UpdateResourceAttributeKeyResponse { + if m == nil { + return (*UpdateResourceAttributeKeyResponse)(nil) + } + r := new(UpdateResourceAttributeKeyResponse) + r.ResourceAttributeKey = m.ResourceAttributeKey.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UpdateResourceAttributeKeyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchiveResourceAttributeKeyRequest) CloneVT() *ArchiveResourceAttributeKeyRequest { + if m == nil { + return (*ArchiveResourceAttributeKeyRequest)(nil) + } + r := new(ArchiveResourceAttributeKeyRequest) + r.ResourceAttributeKeyId = m.ResourceAttributeKeyId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchiveResourceAttributeKeyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchiveResourceAttributeKeyResponse) CloneVT() *ArchiveResourceAttributeKeyResponse { + if m == nil { + return (*ArchiveResourceAttributeKeyResponse)(nil) + } + r := new(ArchiveResourceAttributeKeyResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchiveResourceAttributeKeyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UnarchiveResourceAttributeKeyRequest) CloneVT() *UnarchiveResourceAttributeKeyRequest { + if m == nil { + return (*UnarchiveResourceAttributeKeyRequest)(nil) + } + r := new(UnarchiveResourceAttributeKeyRequest) + r.ResourceAttributeKeyId = m.ResourceAttributeKeyId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UnarchiveResourceAttributeKeyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UnarchiveResourceAttributeKeyResponse) CloneVT() *UnarchiveResourceAttributeKeyResponse { + if m == nil { + return (*UnarchiveResourceAttributeKeyResponse)(nil) + } + r := new(UnarchiveResourceAttributeKeyResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UnarchiveResourceAttributeKeyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchArchiveResourceAttributeKeysRequest) CloneVT() *BatchArchiveResourceAttributeKeysRequest { + if m == nil { + return (*BatchArchiveResourceAttributeKeysRequest)(nil) + } + r := new(BatchArchiveResourceAttributeKeysRequest) + if rhs := m.ResourceAttributeKeyIds; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.ResourceAttributeKeyIds = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchArchiveResourceAttributeKeysRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchArchiveResourceAttributeKeysResponse) CloneVT() *BatchArchiveResourceAttributeKeysResponse { + if m == nil { + return (*BatchArchiveResourceAttributeKeysResponse)(nil) + } + r := new(BatchArchiveResourceAttributeKeysResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchArchiveResourceAttributeKeysResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchUnarchiveResourceAttributeKeysRequest) CloneVT() *BatchUnarchiveResourceAttributeKeysRequest { + if m == nil { + return (*BatchUnarchiveResourceAttributeKeysRequest)(nil) + } + r := new(BatchUnarchiveResourceAttributeKeysRequest) + if rhs := m.ResourceAttributeKeyIds; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.ResourceAttributeKeyIds = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchUnarchiveResourceAttributeKeysRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchUnarchiveResourceAttributeKeysResponse) CloneVT() *BatchUnarchiveResourceAttributeKeysResponse { + if m == nil { + return (*BatchUnarchiveResourceAttributeKeysResponse)(nil) + } + r := new(BatchUnarchiveResourceAttributeKeysResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchUnarchiveResourceAttributeKeysResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreateResourceAttributeEnumValueRequest) CloneVT() *CreateResourceAttributeEnumValueRequest { + if m == nil { + return (*CreateResourceAttributeEnumValueRequest)(nil) + } + r := new(CreateResourceAttributeEnumValueRequest) + r.ResourceAttributeKeyId = m.ResourceAttributeKeyId + r.DisplayName = m.DisplayName + r.Description = m.Description + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreateResourceAttributeEnumValueRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreateResourceAttributeEnumValueResponse) CloneVT() *CreateResourceAttributeEnumValueResponse { + if m == nil { + return (*CreateResourceAttributeEnumValueResponse)(nil) + } + r := new(CreateResourceAttributeEnumValueResponse) + r.ResourceAttributeEnumValue = m.ResourceAttributeEnumValue.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreateResourceAttributeEnumValueResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetResourceAttributeEnumValueRequest) CloneVT() *GetResourceAttributeEnumValueRequest { + if m == nil { + return (*GetResourceAttributeEnumValueRequest)(nil) + } + r := new(GetResourceAttributeEnumValueRequest) + r.ResourceAttributeEnumValueId = m.ResourceAttributeEnumValueId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetResourceAttributeEnumValueRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetResourceAttributeEnumValueResponse) CloneVT() *GetResourceAttributeEnumValueResponse { + if m == nil { + return (*GetResourceAttributeEnumValueResponse)(nil) + } + r := new(GetResourceAttributeEnumValueResponse) + r.ResourceAttributeEnumValue = m.ResourceAttributeEnumValue.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetResourceAttributeEnumValueResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListResourceAttributeEnumValuesRequest) CloneVT() *ListResourceAttributeEnumValuesRequest { + if m == nil { + return (*ListResourceAttributeEnumValuesRequest)(nil) + } + r := new(ListResourceAttributeEnumValuesRequest) + r.ResourceAttributeKeyId = m.ResourceAttributeKeyId + r.PageSize = m.PageSize + r.PageToken = m.PageToken + r.Filter = m.Filter + r.OrderBy = m.OrderBy + r.IncludeArchived = m.IncludeArchived + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListResourceAttributeEnumValuesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListResourceAttributeEnumValuesResponse) CloneVT() *ListResourceAttributeEnumValuesResponse { + if m == nil { + return (*ListResourceAttributeEnumValuesResponse)(nil) + } + r := new(ListResourceAttributeEnumValuesResponse) + r.NextPageToken = m.NextPageToken + if rhs := m.ResourceAttributeEnumValues; rhs != nil { + tmpContainer := make([]*ResourceAttributeEnumValue, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.ResourceAttributeEnumValues = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListResourceAttributeEnumValuesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UpdateResourceAttributeEnumValueRequest) CloneVT() *UpdateResourceAttributeEnumValueRequest { + if m == nil { + return (*UpdateResourceAttributeEnumValueRequest)(nil) + } + r := new(UpdateResourceAttributeEnumValueRequest) + r.ResourceAttributeEnumValueId = m.ResourceAttributeEnumValueId + r.DisplayName = m.DisplayName + r.Description = m.Description + r.UpdateMask = (*fieldmaskpb.FieldMask)((*fieldmaskpb1.FieldMask)(m.UpdateMask).CloneVT()) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UpdateResourceAttributeEnumValueRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UpdateResourceAttributeEnumValueResponse) CloneVT() *UpdateResourceAttributeEnumValueResponse { + if m == nil { + return (*UpdateResourceAttributeEnumValueResponse)(nil) + } + r := new(UpdateResourceAttributeEnumValueResponse) + r.ResourceAttributeEnumValue = m.ResourceAttributeEnumValue.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UpdateResourceAttributeEnumValueResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchiveResourceAttributeEnumValueRequest) CloneVT() *ArchiveResourceAttributeEnumValueRequest { + if m == nil { + return (*ArchiveResourceAttributeEnumValueRequest)(nil) + } + r := new(ArchiveResourceAttributeEnumValueRequest) + r.ArchivedEnumValueId = m.ArchivedEnumValueId + r.ReplacementEnumValueId = m.ReplacementEnumValueId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchiveResourceAttributeEnumValueRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchiveResourceAttributeEnumValueResponse) CloneVT() *ArchiveResourceAttributeEnumValueResponse { + if m == nil { + return (*ArchiveResourceAttributeEnumValueResponse)(nil) + } + r := new(ArchiveResourceAttributeEnumValueResponse) + r.ResourceAttributesMigrated = m.ResourceAttributesMigrated + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchiveResourceAttributeEnumValueResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UnarchiveResourceAttributeEnumValueRequest) CloneVT() *UnarchiveResourceAttributeEnumValueRequest { + if m == nil { + return (*UnarchiveResourceAttributeEnumValueRequest)(nil) + } + r := new(UnarchiveResourceAttributeEnumValueRequest) + r.ResourceAttributeEnumValueId = m.ResourceAttributeEnumValueId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UnarchiveResourceAttributeEnumValueRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UnarchiveResourceAttributeEnumValueResponse) CloneVT() *UnarchiveResourceAttributeEnumValueResponse { + if m == nil { + return (*UnarchiveResourceAttributeEnumValueResponse)(nil) + } + r := new(UnarchiveResourceAttributeEnumValueResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UnarchiveResourceAttributeEnumValueResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) CloneVT() *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival { + if m == nil { + return (*BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival)(nil) + } + r := new(BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) + r.ArchivedEnumValueId = m.ArchivedEnumValueId + r.ReplacementEnumValueId = m.ReplacementEnumValueId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest) CloneVT() *BatchArchiveResourceAttributeEnumValuesRequest { + if m == nil { + return (*BatchArchiveResourceAttributeEnumValuesRequest)(nil) + } + r := new(BatchArchiveResourceAttributeEnumValuesRequest) + if rhs := m.ArchivalRequests; rhs != nil { + tmpContainer := make([]*BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.ArchivalRequests = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchArchiveResourceAttributeEnumValuesResponse) CloneVT() *BatchArchiveResourceAttributeEnumValuesResponse { + if m == nil { + return (*BatchArchiveResourceAttributeEnumValuesResponse)(nil) + } + r := new(BatchArchiveResourceAttributeEnumValuesResponse) + r.TotalResourceAttributesMigrated = m.TotalResourceAttributesMigrated + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchArchiveResourceAttributeEnumValuesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesRequest) CloneVT() *BatchUnarchiveResourceAttributeEnumValuesRequest { + if m == nil { + return (*BatchUnarchiveResourceAttributeEnumValuesRequest)(nil) + } + r := new(BatchUnarchiveResourceAttributeEnumValuesRequest) + if rhs := m.ResourceAttributeEnumValueIds; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.ResourceAttributeEnumValueIds = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesResponse) CloneVT() *BatchUnarchiveResourceAttributeEnumValuesResponse { + if m == nil { + return (*BatchUnarchiveResourceAttributeEnumValuesResponse)(nil) + } + r := new(BatchUnarchiveResourceAttributeEnumValuesResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreateResourceAttributeRequest) CloneVT() *CreateResourceAttributeRequest { + if m == nil { + return (*CreateResourceAttributeRequest)(nil) + } + r := new(CreateResourceAttributeRequest) + r.Entity = m.Entity.CloneVT() + r.ResourceAttributeKeyId = m.ResourceAttributeKeyId + if m.Value != nil { + r.Value = m.Value.(interface { + CloneVT() isCreateResourceAttributeRequest_Value + }).CloneVT() + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreateResourceAttributeRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreateResourceAttributeRequest_ResourceAttributeEnumValueId) CloneVT() isCreateResourceAttributeRequest_Value { + if m == nil { + return (*CreateResourceAttributeRequest_ResourceAttributeEnumValueId)(nil) + } + r := new(CreateResourceAttributeRequest_ResourceAttributeEnumValueId) + r.ResourceAttributeEnumValueId = m.ResourceAttributeEnumValueId + return r +} + +func (m *CreateResourceAttributeRequest_BooleanValue) CloneVT() isCreateResourceAttributeRequest_Value { + if m == nil { + return (*CreateResourceAttributeRequest_BooleanValue)(nil) + } + r := new(CreateResourceAttributeRequest_BooleanValue) + r.BooleanValue = m.BooleanValue + return r +} + +func (m *CreateResourceAttributeRequest_NumberValue) CloneVT() isCreateResourceAttributeRequest_Value { + if m == nil { + return (*CreateResourceAttributeRequest_NumberValue)(nil) + } + r := new(CreateResourceAttributeRequest_NumberValue) + r.NumberValue = m.NumberValue + return r +} + +func (m *CreateResourceAttributeResponse) CloneVT() *CreateResourceAttributeResponse { + if m == nil { + return (*CreateResourceAttributeResponse)(nil) + } + r := new(CreateResourceAttributeResponse) + r.ResourceAttribute = m.ResourceAttribute.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreateResourceAttributeResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchCreateResourceAttributesRequest) CloneVT() *BatchCreateResourceAttributesRequest { + if m == nil { + return (*BatchCreateResourceAttributesRequest)(nil) + } + r := new(BatchCreateResourceAttributesRequest) + r.ResourceAttributeKeyId = m.ResourceAttributeKeyId + if m.Value != nil { + r.Value = m.Value.(interface { + CloneVT() isBatchCreateResourceAttributesRequest_Value + }).CloneVT() + } + if rhs := m.Entities; rhs != nil { + tmpContainer := make([]*ResourceAttributeEntityIdentifier, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Entities = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchCreateResourceAttributesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId) CloneVT() isBatchCreateResourceAttributesRequest_Value { + if m == nil { + return (*BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId)(nil) + } + r := new(BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId) + r.ResourceAttributeEnumValueId = m.ResourceAttributeEnumValueId + return r +} + +func (m *BatchCreateResourceAttributesRequest_BooleanValue) CloneVT() isBatchCreateResourceAttributesRequest_Value { + if m == nil { + return (*BatchCreateResourceAttributesRequest_BooleanValue)(nil) + } + r := new(BatchCreateResourceAttributesRequest_BooleanValue) + r.BooleanValue = m.BooleanValue + return r +} + +func (m *BatchCreateResourceAttributesRequest_NumberValue) CloneVT() isBatchCreateResourceAttributesRequest_Value { + if m == nil { + return (*BatchCreateResourceAttributesRequest_NumberValue)(nil) + } + r := new(BatchCreateResourceAttributesRequest_NumberValue) + r.NumberValue = m.NumberValue + return r +} + +func (m *BatchCreateResourceAttributesResponse) CloneVT() *BatchCreateResourceAttributesResponse { + if m == nil { + return (*BatchCreateResourceAttributesResponse)(nil) + } + r := new(BatchCreateResourceAttributesResponse) + if rhs := m.ResourceAttributes; rhs != nil { + tmpContainer := make([]*ResourceAttribute, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.ResourceAttributes = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchCreateResourceAttributesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetResourceAttributeRequest) CloneVT() *GetResourceAttributeRequest { + if m == nil { + return (*GetResourceAttributeRequest)(nil) + } + r := new(GetResourceAttributeRequest) + r.ResourceAttributeId = m.ResourceAttributeId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetResourceAttributeRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetResourceAttributeResponse) CloneVT() *GetResourceAttributeResponse { + if m == nil { + return (*GetResourceAttributeResponse)(nil) + } + r := new(GetResourceAttributeResponse) + r.ResourceAttribute = m.ResourceAttribute.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetResourceAttributeResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListResourceAttributesRequest) CloneVT() *ListResourceAttributesRequest { + if m == nil { + return (*ListResourceAttributesRequest)(nil) + } + r := new(ListResourceAttributesRequest) + r.PageSize = m.PageSize + r.PageToken = m.PageToken + r.Filter = m.Filter + r.OrderBy = m.OrderBy + r.IncludeArchived = m.IncludeArchived + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListResourceAttributesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListResourceAttributesResponse) CloneVT() *ListResourceAttributesResponse { + if m == nil { + return (*ListResourceAttributesResponse)(nil) + } + r := new(ListResourceAttributesResponse) + r.NextPageToken = m.NextPageToken + if rhs := m.ResourceAttributes; rhs != nil { + tmpContainer := make([]*ResourceAttribute, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.ResourceAttributes = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListResourceAttributesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListResourceAttributesByEntityRequest) CloneVT() *ListResourceAttributesByEntityRequest { + if m == nil { + return (*ListResourceAttributesByEntityRequest)(nil) + } + r := new(ListResourceAttributesByEntityRequest) + r.Entity = m.Entity.CloneVT() + r.IncludeArchived = m.IncludeArchived + r.PageSize = m.PageSize + r.PageToken = m.PageToken + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListResourceAttributesByEntityRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListResourceAttributesByEntityResponse) CloneVT() *ListResourceAttributesByEntityResponse { + if m == nil { + return (*ListResourceAttributesByEntityResponse)(nil) + } + r := new(ListResourceAttributesByEntityResponse) + r.NextPageToken = m.NextPageToken + if rhs := m.ResourceAttributes; rhs != nil { + tmpContainer := make([]*ResourceAttribute, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.ResourceAttributes = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListResourceAttributesByEntityResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchiveResourceAttributeRequest) CloneVT() *ArchiveResourceAttributeRequest { + if m == nil { + return (*ArchiveResourceAttributeRequest)(nil) + } + r := new(ArchiveResourceAttributeRequest) + r.ResourceAttributeId = m.ResourceAttributeId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchiveResourceAttributeRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchiveResourceAttributeResponse) CloneVT() *ArchiveResourceAttributeResponse { + if m == nil { + return (*ArchiveResourceAttributeResponse)(nil) + } + r := new(ArchiveResourceAttributeResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchiveResourceAttributeResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UnarchiveResourceAttributeRequest) CloneVT() *UnarchiveResourceAttributeRequest { + if m == nil { + return (*UnarchiveResourceAttributeRequest)(nil) + } + r := new(UnarchiveResourceAttributeRequest) + r.ResourceAttributeId = m.ResourceAttributeId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UnarchiveResourceAttributeRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UnarchiveResourceAttributeResponse) CloneVT() *UnarchiveResourceAttributeResponse { + if m == nil { + return (*UnarchiveResourceAttributeResponse)(nil) + } + r := new(UnarchiveResourceAttributeResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UnarchiveResourceAttributeResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchArchiveResourceAttributesRequest) CloneVT() *BatchArchiveResourceAttributesRequest { + if m == nil { + return (*BatchArchiveResourceAttributesRequest)(nil) + } + r := new(BatchArchiveResourceAttributesRequest) + if rhs := m.ResourceAttributeIds; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.ResourceAttributeIds = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchArchiveResourceAttributesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchArchiveResourceAttributesResponse) CloneVT() *BatchArchiveResourceAttributesResponse { + if m == nil { + return (*BatchArchiveResourceAttributesResponse)(nil) + } + r := new(BatchArchiveResourceAttributesResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchArchiveResourceAttributesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchUnarchiveResourceAttributesRequest) CloneVT() *BatchUnarchiveResourceAttributesRequest { + if m == nil { + return (*BatchUnarchiveResourceAttributesRequest)(nil) + } + r := new(BatchUnarchiveResourceAttributesRequest) + if rhs := m.ResourceAttributeIds; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.ResourceAttributeIds = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchUnarchiveResourceAttributesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchUnarchiveResourceAttributesResponse) CloneVT() *BatchUnarchiveResourceAttributesResponse { + if m == nil { + return (*BatchUnarchiveResourceAttributesResponse)(nil) + } + r := new(BatchUnarchiveResourceAttributesResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchUnarchiveResourceAttributesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (this *ResourceAttributeKey) EqualVT(that *ResourceAttributeKey) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeKeyId != that.ResourceAttributeKeyId { + return false + } + if this.OrganizationId != that.OrganizationId { + return false + } + if this.DisplayName != that.DisplayName { + return false + } + if this.Description != that.Description { + return false + } + if this.Type != that.Type { + return false + } + if !(*timestamppb1.Timestamp)(this.CreatedDate).EqualVT((*timestamppb1.Timestamp)(that.CreatedDate)) { + return false + } + if this.CreatedByUserId != that.CreatedByUserId { + return false + } + if !(*timestamppb1.Timestamp)(this.ModifiedDate).EqualVT((*timestamppb1.Timestamp)(that.ModifiedDate)) { + return false + } + if this.ModifiedByUserId != that.ModifiedByUserId { + return false + } + if !(*timestamppb1.Timestamp)(this.ArchivedDate).EqualVT((*timestamppb1.Timestamp)(that.ArchivedDate)) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ResourceAttributeKey) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ResourceAttributeKey) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ResourceAttributeEnumValue) EqualVT(that *ResourceAttributeEnumValue) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeEnumValueId != that.ResourceAttributeEnumValueId { + return false + } + if this.ResourceAttributeKeyId != that.ResourceAttributeKeyId { + return false + } + if this.DisplayName != that.DisplayName { + return false + } + if this.Description != that.Description { + return false + } + if !(*timestamppb1.Timestamp)(this.CreatedDate).EqualVT((*timestamppb1.Timestamp)(that.CreatedDate)) { + return false + } + if this.CreatedByUserId != that.CreatedByUserId { + return false + } + if !(*timestamppb1.Timestamp)(this.ModifiedDate).EqualVT((*timestamppb1.Timestamp)(that.ModifiedDate)) { + return false + } + if this.ModifiedByUserId != that.ModifiedByUserId { + return false + } + if !(*timestamppb1.Timestamp)(this.ArchivedDate).EqualVT((*timestamppb1.Timestamp)(that.ArchivedDate)) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ResourceAttributeEnumValue) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ResourceAttributeEnumValue) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ResourceAttribute) EqualVT(that *ResourceAttribute) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Value == nil && that.Value != nil { + return false + } else if this.Value != nil { + if that.Value == nil { + return false + } + if !this.Value.(interface { + EqualVT(isResourceAttribute_Value) bool + }).EqualVT(that.Value) { + return false + } + } + if this.ResourceAttributeId != that.ResourceAttributeId { + return false + } + if this.OrganizationId != that.OrganizationId { + return false + } + if !this.Entity.EqualVT(that.Entity) { + return false + } + if this.ResourceAttributeKeyId != that.ResourceAttributeKeyId { + return false + } + if !this.Key.EqualVT(that.Key) { + return false + } + if !this.EnumValueDetails.EqualVT(that.EnumValueDetails) { + return false + } + if !(*timestamppb1.Timestamp)(this.CreatedDate).EqualVT((*timestamppb1.Timestamp)(that.CreatedDate)) { + return false + } + if this.CreatedByUserId != that.CreatedByUserId { + return false + } + if !(*timestamppb1.Timestamp)(this.ArchivedDate).EqualVT((*timestamppb1.Timestamp)(that.ArchivedDate)) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ResourceAttribute) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ResourceAttribute) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ResourceAttribute_ResourceAttributeEnumValueId) EqualVT(thatIface isResourceAttribute_Value) bool { + that, ok := thatIface.(*ResourceAttribute_ResourceAttributeEnumValueId) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.ResourceAttributeEnumValueId != that.ResourceAttributeEnumValueId { + return false + } + return true +} + +func (this *ResourceAttribute_BooleanValue) EqualVT(thatIface isResourceAttribute_Value) bool { + that, ok := thatIface.(*ResourceAttribute_BooleanValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.BooleanValue != that.BooleanValue { + return false + } + return true +} + +func (this *ResourceAttribute_NumberValue) EqualVT(thatIface isResourceAttribute_Value) bool { + that, ok := thatIface.(*ResourceAttribute_NumberValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.NumberValue != that.NumberValue { + return false + } + return true +} + +func (this *ResourceAttributeEntityIdentifier) EqualVT(that *ResourceAttributeEntityIdentifier) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.EntityId != that.EntityId { + return false + } + if this.EntityType != that.EntityType { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ResourceAttributeEntityIdentifier) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ResourceAttributeEntityIdentifier) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreateResourceAttributeKeyRequest_InitialEnumValue) EqualVT(that *CreateResourceAttributeKeyRequest_InitialEnumValue) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.DisplayName != that.DisplayName { + return false + } + if this.Description != that.Description { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreateResourceAttributeKeyRequest_InitialEnumValue) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreateResourceAttributeKeyRequest_InitialEnumValue) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreateResourceAttributeKeyRequest) EqualVT(that *CreateResourceAttributeKeyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.DisplayName != that.DisplayName { + return false + } + if this.Description != that.Description { + return false + } + if this.Type != that.Type { + return false + } + if len(this.InitialEnumValues) != len(that.InitialEnumValues) { + return false + } + for i, vx := range this.InitialEnumValues { + vy := that.InitialEnumValues[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &CreateResourceAttributeKeyRequest_InitialEnumValue{} + } + if q == nil { + q = &CreateResourceAttributeKeyRequest_InitialEnumValue{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreateResourceAttributeKeyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreateResourceAttributeKeyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreateResourceAttributeKeyResponse) EqualVT(that *CreateResourceAttributeKeyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.ResourceAttributeKey.EqualVT(that.ResourceAttributeKey) { + return false + } + if len(this.EnumValues) != len(that.EnumValues) { + return false + } + for i, vx := range this.EnumValues { + vy := that.EnumValues[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceAttributeEnumValue{} + } + if q == nil { + q = &ResourceAttributeEnumValue{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreateResourceAttributeKeyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreateResourceAttributeKeyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetResourceAttributeKeyRequest) EqualVT(that *GetResourceAttributeKeyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeKeyId != that.ResourceAttributeKeyId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetResourceAttributeKeyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetResourceAttributeKeyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetResourceAttributeKeyResponse) EqualVT(that *GetResourceAttributeKeyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.ResourceAttributeKey.EqualVT(that.ResourceAttributeKey) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetResourceAttributeKeyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetResourceAttributeKeyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListResourceAttributeKeysRequest) EqualVT(that *ListResourceAttributeKeysRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PageSize != that.PageSize { + return false + } + if this.PageToken != that.PageToken { + return false + } + if this.Filter != that.Filter { + return false + } + if this.OrderBy != that.OrderBy { + return false + } + if this.IncludeArchived != that.IncludeArchived { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListResourceAttributeKeysRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListResourceAttributeKeysRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListResourceAttributeKeysResponse) EqualVT(that *ListResourceAttributeKeysResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.ResourceAttributeKeys) != len(that.ResourceAttributeKeys) { + return false + } + for i, vx := range this.ResourceAttributeKeys { + vy := that.ResourceAttributeKeys[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceAttributeKey{} + } + if q == nil { + q = &ResourceAttributeKey{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.NextPageToken != that.NextPageToken { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListResourceAttributeKeysResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListResourceAttributeKeysResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UpdateResourceAttributeKeyRequest) EqualVT(that *UpdateResourceAttributeKeyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeKeyId != that.ResourceAttributeKeyId { + return false + } + if this.DisplayName != that.DisplayName { + return false + } + if this.Description != that.Description { + return false + } + if !(*fieldmaskpb1.FieldMask)(this.UpdateMask).EqualVT((*fieldmaskpb1.FieldMask)(that.UpdateMask)) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UpdateResourceAttributeKeyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UpdateResourceAttributeKeyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UpdateResourceAttributeKeyResponse) EqualVT(that *UpdateResourceAttributeKeyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.ResourceAttributeKey.EqualVT(that.ResourceAttributeKey) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UpdateResourceAttributeKeyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UpdateResourceAttributeKeyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchiveResourceAttributeKeyRequest) EqualVT(that *ArchiveResourceAttributeKeyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeKeyId != that.ResourceAttributeKeyId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchiveResourceAttributeKeyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchiveResourceAttributeKeyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchiveResourceAttributeKeyResponse) EqualVT(that *ArchiveResourceAttributeKeyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchiveResourceAttributeKeyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchiveResourceAttributeKeyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UnarchiveResourceAttributeKeyRequest) EqualVT(that *UnarchiveResourceAttributeKeyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeKeyId != that.ResourceAttributeKeyId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UnarchiveResourceAttributeKeyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UnarchiveResourceAttributeKeyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UnarchiveResourceAttributeKeyResponse) EqualVT(that *UnarchiveResourceAttributeKeyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UnarchiveResourceAttributeKeyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UnarchiveResourceAttributeKeyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchArchiveResourceAttributeKeysRequest) EqualVT(that *BatchArchiveResourceAttributeKeysRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.ResourceAttributeKeyIds) != len(that.ResourceAttributeKeyIds) { + return false + } + for i, vx := range this.ResourceAttributeKeyIds { + vy := that.ResourceAttributeKeyIds[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchArchiveResourceAttributeKeysRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchArchiveResourceAttributeKeysRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchArchiveResourceAttributeKeysResponse) EqualVT(that *BatchArchiveResourceAttributeKeysResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchArchiveResourceAttributeKeysResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchArchiveResourceAttributeKeysResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchUnarchiveResourceAttributeKeysRequest) EqualVT(that *BatchUnarchiveResourceAttributeKeysRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.ResourceAttributeKeyIds) != len(that.ResourceAttributeKeyIds) { + return false + } + for i, vx := range this.ResourceAttributeKeyIds { + vy := that.ResourceAttributeKeyIds[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchUnarchiveResourceAttributeKeysRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchUnarchiveResourceAttributeKeysRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchUnarchiveResourceAttributeKeysResponse) EqualVT(that *BatchUnarchiveResourceAttributeKeysResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchUnarchiveResourceAttributeKeysResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchUnarchiveResourceAttributeKeysResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreateResourceAttributeEnumValueRequest) EqualVT(that *CreateResourceAttributeEnumValueRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeKeyId != that.ResourceAttributeKeyId { + return false + } + if this.DisplayName != that.DisplayName { + return false + } + if this.Description != that.Description { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreateResourceAttributeEnumValueRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreateResourceAttributeEnumValueRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreateResourceAttributeEnumValueResponse) EqualVT(that *CreateResourceAttributeEnumValueResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.ResourceAttributeEnumValue.EqualVT(that.ResourceAttributeEnumValue) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreateResourceAttributeEnumValueResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreateResourceAttributeEnumValueResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetResourceAttributeEnumValueRequest) EqualVT(that *GetResourceAttributeEnumValueRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeEnumValueId != that.ResourceAttributeEnumValueId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetResourceAttributeEnumValueRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetResourceAttributeEnumValueRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetResourceAttributeEnumValueResponse) EqualVT(that *GetResourceAttributeEnumValueResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.ResourceAttributeEnumValue.EqualVT(that.ResourceAttributeEnumValue) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetResourceAttributeEnumValueResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetResourceAttributeEnumValueResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListResourceAttributeEnumValuesRequest) EqualVT(that *ListResourceAttributeEnumValuesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeKeyId != that.ResourceAttributeKeyId { + return false + } + if this.PageSize != that.PageSize { + return false + } + if this.PageToken != that.PageToken { + return false + } + if this.Filter != that.Filter { + return false + } + if this.OrderBy != that.OrderBy { + return false + } + if this.IncludeArchived != that.IncludeArchived { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListResourceAttributeEnumValuesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListResourceAttributeEnumValuesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListResourceAttributeEnumValuesResponse) EqualVT(that *ListResourceAttributeEnumValuesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.ResourceAttributeEnumValues) != len(that.ResourceAttributeEnumValues) { + return false + } + for i, vx := range this.ResourceAttributeEnumValues { + vy := that.ResourceAttributeEnumValues[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceAttributeEnumValue{} + } + if q == nil { + q = &ResourceAttributeEnumValue{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.NextPageToken != that.NextPageToken { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListResourceAttributeEnumValuesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListResourceAttributeEnumValuesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UpdateResourceAttributeEnumValueRequest) EqualVT(that *UpdateResourceAttributeEnumValueRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeEnumValueId != that.ResourceAttributeEnumValueId { + return false + } + if this.DisplayName != that.DisplayName { + return false + } + if this.Description != that.Description { + return false + } + if !(*fieldmaskpb1.FieldMask)(this.UpdateMask).EqualVT((*fieldmaskpb1.FieldMask)(that.UpdateMask)) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UpdateResourceAttributeEnumValueRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UpdateResourceAttributeEnumValueRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UpdateResourceAttributeEnumValueResponse) EqualVT(that *UpdateResourceAttributeEnumValueResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.ResourceAttributeEnumValue.EqualVT(that.ResourceAttributeEnumValue) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UpdateResourceAttributeEnumValueResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UpdateResourceAttributeEnumValueResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchiveResourceAttributeEnumValueRequest) EqualVT(that *ArchiveResourceAttributeEnumValueRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ArchivedEnumValueId != that.ArchivedEnumValueId { + return false + } + if this.ReplacementEnumValueId != that.ReplacementEnumValueId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchiveResourceAttributeEnumValueRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchiveResourceAttributeEnumValueRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchiveResourceAttributeEnumValueResponse) EqualVT(that *ArchiveResourceAttributeEnumValueResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributesMigrated != that.ResourceAttributesMigrated { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchiveResourceAttributeEnumValueResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchiveResourceAttributeEnumValueResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UnarchiveResourceAttributeEnumValueRequest) EqualVT(that *UnarchiveResourceAttributeEnumValueRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeEnumValueId != that.ResourceAttributeEnumValueId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UnarchiveResourceAttributeEnumValueRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UnarchiveResourceAttributeEnumValueRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UnarchiveResourceAttributeEnumValueResponse) EqualVT(that *UnarchiveResourceAttributeEnumValueResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UnarchiveResourceAttributeEnumValueResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UnarchiveResourceAttributeEnumValueResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) EqualVT(that *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ArchivedEnumValueId != that.ArchivedEnumValueId { + return false + } + if this.ReplacementEnumValueId != that.ReplacementEnumValueId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchArchiveResourceAttributeEnumValuesRequest) EqualVT(that *BatchArchiveResourceAttributeEnumValuesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.ArchivalRequests) != len(that.ArchivalRequests) { + return false + } + for i, vx := range this.ArchivalRequests { + vy := that.ArchivalRequests[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival{} + } + if q == nil { + q = &BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchArchiveResourceAttributeEnumValuesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchArchiveResourceAttributeEnumValuesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchArchiveResourceAttributeEnumValuesResponse) EqualVT(that *BatchArchiveResourceAttributeEnumValuesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.TotalResourceAttributesMigrated != that.TotalResourceAttributesMigrated { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchArchiveResourceAttributeEnumValuesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchArchiveResourceAttributeEnumValuesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchUnarchiveResourceAttributeEnumValuesRequest) EqualVT(that *BatchUnarchiveResourceAttributeEnumValuesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.ResourceAttributeEnumValueIds) != len(that.ResourceAttributeEnumValueIds) { + return false + } + for i, vx := range this.ResourceAttributeEnumValueIds { + vy := that.ResourceAttributeEnumValueIds[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchUnarchiveResourceAttributeEnumValuesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchUnarchiveResourceAttributeEnumValuesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchUnarchiveResourceAttributeEnumValuesResponse) EqualVT(that *BatchUnarchiveResourceAttributeEnumValuesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchUnarchiveResourceAttributeEnumValuesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchUnarchiveResourceAttributeEnumValuesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreateResourceAttributeRequest) EqualVT(that *CreateResourceAttributeRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Value == nil && that.Value != nil { + return false + } else if this.Value != nil { + if that.Value == nil { + return false + } + if !this.Value.(interface { + EqualVT(isCreateResourceAttributeRequest_Value) bool + }).EqualVT(that.Value) { + return false + } + } + if !this.Entity.EqualVT(that.Entity) { + return false + } + if this.ResourceAttributeKeyId != that.ResourceAttributeKeyId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreateResourceAttributeRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreateResourceAttributeRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreateResourceAttributeRequest_ResourceAttributeEnumValueId) EqualVT(thatIface isCreateResourceAttributeRequest_Value) bool { + that, ok := thatIface.(*CreateResourceAttributeRequest_ResourceAttributeEnumValueId) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.ResourceAttributeEnumValueId != that.ResourceAttributeEnumValueId { + return false + } + return true +} + +func (this *CreateResourceAttributeRequest_BooleanValue) EqualVT(thatIface isCreateResourceAttributeRequest_Value) bool { + that, ok := thatIface.(*CreateResourceAttributeRequest_BooleanValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.BooleanValue != that.BooleanValue { + return false + } + return true +} + +func (this *CreateResourceAttributeRequest_NumberValue) EqualVT(thatIface isCreateResourceAttributeRequest_Value) bool { + that, ok := thatIface.(*CreateResourceAttributeRequest_NumberValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.NumberValue != that.NumberValue { + return false + } + return true +} + +func (this *CreateResourceAttributeResponse) EqualVT(that *CreateResourceAttributeResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.ResourceAttribute.EqualVT(that.ResourceAttribute) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreateResourceAttributeResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreateResourceAttributeResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchCreateResourceAttributesRequest) EqualVT(that *BatchCreateResourceAttributesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Value == nil && that.Value != nil { + return false + } else if this.Value != nil { + if that.Value == nil { + return false + } + if !this.Value.(interface { + EqualVT(isBatchCreateResourceAttributesRequest_Value) bool + }).EqualVT(that.Value) { + return false + } + } + if this.ResourceAttributeKeyId != that.ResourceAttributeKeyId { + return false + } + if len(this.Entities) != len(that.Entities) { + return false + } + for i, vx := range this.Entities { + vy := that.Entities[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceAttributeEntityIdentifier{} + } + if q == nil { + q = &ResourceAttributeEntityIdentifier{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchCreateResourceAttributesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchCreateResourceAttributesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId) EqualVT(thatIface isBatchCreateResourceAttributesRequest_Value) bool { + that, ok := thatIface.(*BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.ResourceAttributeEnumValueId != that.ResourceAttributeEnumValueId { + return false + } + return true +} + +func (this *BatchCreateResourceAttributesRequest_BooleanValue) EqualVT(thatIface isBatchCreateResourceAttributesRequest_Value) bool { + that, ok := thatIface.(*BatchCreateResourceAttributesRequest_BooleanValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.BooleanValue != that.BooleanValue { + return false + } + return true +} + +func (this *BatchCreateResourceAttributesRequest_NumberValue) EqualVT(thatIface isBatchCreateResourceAttributesRequest_Value) bool { + that, ok := thatIface.(*BatchCreateResourceAttributesRequest_NumberValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.NumberValue != that.NumberValue { + return false + } + return true +} + +func (this *BatchCreateResourceAttributesResponse) EqualVT(that *BatchCreateResourceAttributesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.ResourceAttributes) != len(that.ResourceAttributes) { + return false + } + for i, vx := range this.ResourceAttributes { + vy := that.ResourceAttributes[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceAttribute{} + } + if q == nil { + q = &ResourceAttribute{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchCreateResourceAttributesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchCreateResourceAttributesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetResourceAttributeRequest) EqualVT(that *GetResourceAttributeRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeId != that.ResourceAttributeId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetResourceAttributeRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetResourceAttributeRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetResourceAttributeResponse) EqualVT(that *GetResourceAttributeResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.ResourceAttribute.EqualVT(that.ResourceAttribute) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetResourceAttributeResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetResourceAttributeResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListResourceAttributesRequest) EqualVT(that *ListResourceAttributesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PageSize != that.PageSize { + return false + } + if this.PageToken != that.PageToken { + return false + } + if this.Filter != that.Filter { + return false + } + if this.OrderBy != that.OrderBy { + return false + } + if this.IncludeArchived != that.IncludeArchived { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListResourceAttributesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListResourceAttributesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListResourceAttributesResponse) EqualVT(that *ListResourceAttributesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.ResourceAttributes) != len(that.ResourceAttributes) { + return false + } + for i, vx := range this.ResourceAttributes { + vy := that.ResourceAttributes[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceAttribute{} + } + if q == nil { + q = &ResourceAttribute{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.NextPageToken != that.NextPageToken { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListResourceAttributesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListResourceAttributesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListResourceAttributesByEntityRequest) EqualVT(that *ListResourceAttributesByEntityRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Entity.EqualVT(that.Entity) { + return false + } + if this.IncludeArchived != that.IncludeArchived { + return false + } + if this.PageSize != that.PageSize { + return false + } + if this.PageToken != that.PageToken { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListResourceAttributesByEntityRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListResourceAttributesByEntityRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListResourceAttributesByEntityResponse) EqualVT(that *ListResourceAttributesByEntityResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.ResourceAttributes) != len(that.ResourceAttributes) { + return false + } + for i, vx := range this.ResourceAttributes { + vy := that.ResourceAttributes[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceAttribute{} + } + if q == nil { + q = &ResourceAttribute{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.NextPageToken != that.NextPageToken { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListResourceAttributesByEntityResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListResourceAttributesByEntityResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchiveResourceAttributeRequest) EqualVT(that *ArchiveResourceAttributeRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeId != that.ResourceAttributeId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchiveResourceAttributeRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchiveResourceAttributeRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchiveResourceAttributeResponse) EqualVT(that *ArchiveResourceAttributeResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchiveResourceAttributeResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchiveResourceAttributeResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UnarchiveResourceAttributeRequest) EqualVT(that *UnarchiveResourceAttributeRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ResourceAttributeId != that.ResourceAttributeId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UnarchiveResourceAttributeRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UnarchiveResourceAttributeRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UnarchiveResourceAttributeResponse) EqualVT(that *UnarchiveResourceAttributeResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UnarchiveResourceAttributeResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UnarchiveResourceAttributeResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchArchiveResourceAttributesRequest) EqualVT(that *BatchArchiveResourceAttributesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.ResourceAttributeIds) != len(that.ResourceAttributeIds) { + return false + } + for i, vx := range this.ResourceAttributeIds { + vy := that.ResourceAttributeIds[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchArchiveResourceAttributesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchArchiveResourceAttributesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchArchiveResourceAttributesResponse) EqualVT(that *BatchArchiveResourceAttributesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchArchiveResourceAttributesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchArchiveResourceAttributesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchUnarchiveResourceAttributesRequest) EqualVT(that *BatchUnarchiveResourceAttributesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.ResourceAttributeIds) != len(that.ResourceAttributeIds) { + return false + } + for i, vx := range this.ResourceAttributeIds { + vy := that.ResourceAttributeIds[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchUnarchiveResourceAttributesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchUnarchiveResourceAttributesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchUnarchiveResourceAttributesResponse) EqualVT(that *BatchUnarchiveResourceAttributesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchUnarchiveResourceAttributesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchUnarchiveResourceAttributesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// ResourceAttributeServiceClient is the client API for ResourceAttributeService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ResourceAttributeServiceClient interface { + CreateResourceAttributeKey(ctx context.Context, in *CreateResourceAttributeKeyRequest, opts ...grpc.CallOption) (*CreateResourceAttributeKeyResponse, error) + GetResourceAttributeKey(ctx context.Context, in *GetResourceAttributeKeyRequest, opts ...grpc.CallOption) (*GetResourceAttributeKeyResponse, error) + ListResourceAttributeKeys(ctx context.Context, in *ListResourceAttributeKeysRequest, opts ...grpc.CallOption) (*ListResourceAttributeKeysResponse, error) + UpdateResourceAttributeKey(ctx context.Context, in *UpdateResourceAttributeKeyRequest, opts ...grpc.CallOption) (*UpdateResourceAttributeKeyResponse, error) + // Archives a resource_attribute key AND all its associated enum values AND all its associated resource-attributes. + ArchiveResourceAttributeKey(ctx context.Context, in *ArchiveResourceAttributeKeyRequest, opts ...grpc.CallOption) (*ArchiveResourceAttributeKeyResponse, error) + // Unarchives a resource_attribute key BUT NOT its associated enum values OR resource-attributes. + UnarchiveResourceAttributeKey(ctx context.Context, in *UnarchiveResourceAttributeKeyRequest, opts ...grpc.CallOption) (*UnarchiveResourceAttributeKeyResponse, error) + // Archives multiple resource_attribute keys AND all their associated enum values AND all their associated resource-attributes. + BatchArchiveResourceAttributeKeys(ctx context.Context, in *BatchArchiveResourceAttributeKeysRequest, opts ...grpc.CallOption) (*BatchArchiveResourceAttributeKeysResponse, error) + // Unarchives multiple resource_attribute keys BUT NOT their associated enum values OR resource-attributes. + BatchUnarchiveResourceAttributeKeys(ctx context.Context, in *BatchUnarchiveResourceAttributeKeysRequest, opts ...grpc.CallOption) (*BatchUnarchiveResourceAttributeKeysResponse, error) + CreateResourceAttributeEnumValue(ctx context.Context, in *CreateResourceAttributeEnumValueRequest, opts ...grpc.CallOption) (*CreateResourceAttributeEnumValueResponse, error) + GetResourceAttributeEnumValue(ctx context.Context, in *GetResourceAttributeEnumValueRequest, opts ...grpc.CallOption) (*GetResourceAttributeEnumValueResponse, error) + ListResourceAttributeEnumValues(ctx context.Context, in *ListResourceAttributeEnumValuesRequest, opts ...grpc.CallOption) (*ListResourceAttributeEnumValuesResponse, error) + UpdateResourceAttributeEnumValue(ctx context.Context, in *UpdateResourceAttributeEnumValueRequest, opts ...grpc.CallOption) (*UpdateResourceAttributeEnumValueResponse, error) + // Archives an enum value and migrates all resource-attributes with that value to a replacement value. + ArchiveResourceAttributeEnumValue(ctx context.Context, in *ArchiveResourceAttributeEnumValueRequest, opts ...grpc.CallOption) (*ArchiveResourceAttributeEnumValueResponse, error) + // Unarchives an enum value BUT DOES NOT migrate resource-attributes with a replacement value back to the original value. + UnarchiveResourceAttributeEnumValue(ctx context.Context, in *UnarchiveResourceAttributeEnumValueRequest, opts ...grpc.CallOption) (*UnarchiveResourceAttributeEnumValueResponse, error) + // Archives multiple enum values and migrates all resource-attributes with those values to their respective replacement values. + BatchArchiveResourceAttributeEnumValues(ctx context.Context, in *BatchArchiveResourceAttributeEnumValuesRequest, opts ...grpc.CallOption) (*BatchArchiveResourceAttributeEnumValuesResponse, error) + // Unarchives multiple enum values BUT DOES NOT migrate resource-attributes with a replacement value back to the original value. + BatchUnarchiveResourceAttributeEnumValues(ctx context.Context, in *BatchUnarchiveResourceAttributeEnumValuesRequest, opts ...grpc.CallOption) (*BatchUnarchiveResourceAttributeEnumValuesResponse, error) + // Creates relation between an Entity and a ResourceAttribute Key and Value. + CreateResourceAttribute(ctx context.Context, in *CreateResourceAttributeRequest, opts ...grpc.CallOption) (*CreateResourceAttributeResponse, error) + // Creates resource-attributes for multiple entities with the same key-value pair. + BatchCreateResourceAttributes(ctx context.Context, in *BatchCreateResourceAttributesRequest, opts ...grpc.CallOption) (*BatchCreateResourceAttributesResponse, error) + GetResourceAttribute(ctx context.Context, in *GetResourceAttributeRequest, opts ...grpc.CallOption) (*GetResourceAttributeResponse, error) + ListResourceAttributes(ctx context.Context, in *ListResourceAttributesRequest, opts ...grpc.CallOption) (*ListResourceAttributesResponse, error) + // Lists all resource-attributes for a specific entity. Excludes archived by default. + ListResourceAttributesByEntity(ctx context.Context, in *ListResourceAttributesByEntityRequest, opts ...grpc.CallOption) (*ListResourceAttributesByEntityResponse, error) + ArchiveResourceAttribute(ctx context.Context, in *ArchiveResourceAttributeRequest, opts ...grpc.CallOption) (*ArchiveResourceAttributeResponse, error) + UnarchiveResourceAttribute(ctx context.Context, in *UnarchiveResourceAttributeRequest, opts ...grpc.CallOption) (*UnarchiveResourceAttributeResponse, error) + // Archives multiple resource-attributes. + BatchArchiveResourceAttributes(ctx context.Context, in *BatchArchiveResourceAttributesRequest, opts ...grpc.CallOption) (*BatchArchiveResourceAttributesResponse, error) + // Unarchives multiple resource-attributes. + BatchUnarchiveResourceAttributes(ctx context.Context, in *BatchUnarchiveResourceAttributesRequest, opts ...grpc.CallOption) (*BatchUnarchiveResourceAttributesResponse, error) +} + +type resourceAttributeServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewResourceAttributeServiceClient(cc grpc.ClientConnInterface) ResourceAttributeServiceClient { + return &resourceAttributeServiceClient{cc} +} + +func (c *resourceAttributeServiceClient) CreateResourceAttributeKey(ctx context.Context, in *CreateResourceAttributeKeyRequest, opts ...grpc.CallOption) (*CreateResourceAttributeKeyResponse, error) { + out := new(CreateResourceAttributeKeyResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) GetResourceAttributeKey(ctx context.Context, in *GetResourceAttributeKeyRequest, opts ...grpc.CallOption) (*GetResourceAttributeKeyResponse, error) { + out := new(GetResourceAttributeKeyResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) ListResourceAttributeKeys(ctx context.Context, in *ListResourceAttributeKeysRequest, opts ...grpc.CallOption) (*ListResourceAttributeKeysResponse, error) { + out := new(ListResourceAttributeKeysResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) UpdateResourceAttributeKey(ctx context.Context, in *UpdateResourceAttributeKeyRequest, opts ...grpc.CallOption) (*UpdateResourceAttributeKeyResponse, error) { + out := new(UpdateResourceAttributeKeyResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) ArchiveResourceAttributeKey(ctx context.Context, in *ArchiveResourceAttributeKeyRequest, opts ...grpc.CallOption) (*ArchiveResourceAttributeKeyResponse, error) { + out := new(ArchiveResourceAttributeKeyResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) UnarchiveResourceAttributeKey(ctx context.Context, in *UnarchiveResourceAttributeKeyRequest, opts ...grpc.CallOption) (*UnarchiveResourceAttributeKeyResponse, error) { + out := new(UnarchiveResourceAttributeKeyResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) BatchArchiveResourceAttributeKeys(ctx context.Context, in *BatchArchiveResourceAttributeKeysRequest, opts ...grpc.CallOption) (*BatchArchiveResourceAttributeKeysResponse, error) { + out := new(BatchArchiveResourceAttributeKeysResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) BatchUnarchiveResourceAttributeKeys(ctx context.Context, in *BatchUnarchiveResourceAttributeKeysRequest, opts ...grpc.CallOption) (*BatchUnarchiveResourceAttributeKeysResponse, error) { + out := new(BatchUnarchiveResourceAttributeKeysResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) CreateResourceAttributeEnumValue(ctx context.Context, in *CreateResourceAttributeEnumValueRequest, opts ...grpc.CallOption) (*CreateResourceAttributeEnumValueResponse, error) { + out := new(CreateResourceAttributeEnumValueResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeEnumValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) GetResourceAttributeEnumValue(ctx context.Context, in *GetResourceAttributeEnumValueRequest, opts ...grpc.CallOption) (*GetResourceAttributeEnumValueResponse, error) { + out := new(GetResourceAttributeEnumValueResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeEnumValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) ListResourceAttributeEnumValues(ctx context.Context, in *ListResourceAttributeEnumValuesRequest, opts ...grpc.CallOption) (*ListResourceAttributeEnumValuesResponse, error) { + out := new(ListResourceAttributeEnumValuesResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeEnumValues", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) UpdateResourceAttributeEnumValue(ctx context.Context, in *UpdateResourceAttributeEnumValueRequest, opts ...grpc.CallOption) (*UpdateResourceAttributeEnumValueResponse, error) { + out := new(UpdateResourceAttributeEnumValueResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeEnumValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) ArchiveResourceAttributeEnumValue(ctx context.Context, in *ArchiveResourceAttributeEnumValueRequest, opts ...grpc.CallOption) (*ArchiveResourceAttributeEnumValueResponse, error) { + out := new(ArchiveResourceAttributeEnumValueResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeEnumValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) UnarchiveResourceAttributeEnumValue(ctx context.Context, in *UnarchiveResourceAttributeEnumValueRequest, opts ...grpc.CallOption) (*UnarchiveResourceAttributeEnumValueResponse, error) { + out := new(UnarchiveResourceAttributeEnumValueResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeEnumValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) BatchArchiveResourceAttributeEnumValues(ctx context.Context, in *BatchArchiveResourceAttributeEnumValuesRequest, opts ...grpc.CallOption) (*BatchArchiveResourceAttributeEnumValuesResponse, error) { + out := new(BatchArchiveResourceAttributeEnumValuesResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeEnumValues", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) BatchUnarchiveResourceAttributeEnumValues(ctx context.Context, in *BatchUnarchiveResourceAttributeEnumValuesRequest, opts ...grpc.CallOption) (*BatchUnarchiveResourceAttributeEnumValuesResponse, error) { + out := new(BatchUnarchiveResourceAttributeEnumValuesResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeEnumValues", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) CreateResourceAttribute(ctx context.Context, in *CreateResourceAttributeRequest, opts ...grpc.CallOption) (*CreateResourceAttributeResponse, error) { + out := new(CreateResourceAttributeResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttribute", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) BatchCreateResourceAttributes(ctx context.Context, in *BatchCreateResourceAttributesRequest, opts ...grpc.CallOption) (*BatchCreateResourceAttributesResponse, error) { + out := new(BatchCreateResourceAttributesResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/BatchCreateResourceAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) GetResourceAttribute(ctx context.Context, in *GetResourceAttributeRequest, opts ...grpc.CallOption) (*GetResourceAttributeResponse, error) { + out := new(GetResourceAttributeResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttribute", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) ListResourceAttributes(ctx context.Context, in *ListResourceAttributesRequest, opts ...grpc.CallOption) (*ListResourceAttributesResponse, error) { + out := new(ListResourceAttributesResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) ListResourceAttributesByEntity(ctx context.Context, in *ListResourceAttributesByEntityRequest, opts ...grpc.CallOption) (*ListResourceAttributesByEntityResponse, error) { + out := new(ListResourceAttributesByEntityResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributesByEntity", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) ArchiveResourceAttribute(ctx context.Context, in *ArchiveResourceAttributeRequest, opts ...grpc.CallOption) (*ArchiveResourceAttributeResponse, error) { + out := new(ArchiveResourceAttributeResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttribute", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) UnarchiveResourceAttribute(ctx context.Context, in *UnarchiveResourceAttributeRequest, opts ...grpc.CallOption) (*UnarchiveResourceAttributeResponse, error) { + out := new(UnarchiveResourceAttributeResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttribute", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) BatchArchiveResourceAttributes(ctx context.Context, in *BatchArchiveResourceAttributesRequest, opts ...grpc.CallOption) (*BatchArchiveResourceAttributesResponse, error) { + out := new(BatchArchiveResourceAttributesResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resourceAttributeServiceClient) BatchUnarchiveResourceAttributes(ctx context.Context, in *BatchUnarchiveResourceAttributesRequest, opts ...grpc.CallOption) (*BatchUnarchiveResourceAttributesResponse, error) { + out := new(BatchUnarchiveResourceAttributesResponse) + err := c.cc.Invoke(ctx, "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ResourceAttributeServiceServer is the server API for ResourceAttributeService service. +// All implementations must embed UnimplementedResourceAttributeServiceServer +// for forward compatibility +type ResourceAttributeServiceServer interface { + CreateResourceAttributeKey(context.Context, *CreateResourceAttributeKeyRequest) (*CreateResourceAttributeKeyResponse, error) + GetResourceAttributeKey(context.Context, *GetResourceAttributeKeyRequest) (*GetResourceAttributeKeyResponse, error) + ListResourceAttributeKeys(context.Context, *ListResourceAttributeKeysRequest) (*ListResourceAttributeKeysResponse, error) + UpdateResourceAttributeKey(context.Context, *UpdateResourceAttributeKeyRequest) (*UpdateResourceAttributeKeyResponse, error) + // Archives a resource_attribute key AND all its associated enum values AND all its associated resource-attributes. + ArchiveResourceAttributeKey(context.Context, *ArchiveResourceAttributeKeyRequest) (*ArchiveResourceAttributeKeyResponse, error) + // Unarchives a resource_attribute key BUT NOT its associated enum values OR resource-attributes. + UnarchiveResourceAttributeKey(context.Context, *UnarchiveResourceAttributeKeyRequest) (*UnarchiveResourceAttributeKeyResponse, error) + // Archives multiple resource_attribute keys AND all their associated enum values AND all their associated resource-attributes. + BatchArchiveResourceAttributeKeys(context.Context, *BatchArchiveResourceAttributeKeysRequest) (*BatchArchiveResourceAttributeKeysResponse, error) + // Unarchives multiple resource_attribute keys BUT NOT their associated enum values OR resource-attributes. + BatchUnarchiveResourceAttributeKeys(context.Context, *BatchUnarchiveResourceAttributeKeysRequest) (*BatchUnarchiveResourceAttributeKeysResponse, error) + CreateResourceAttributeEnumValue(context.Context, *CreateResourceAttributeEnumValueRequest) (*CreateResourceAttributeEnumValueResponse, error) + GetResourceAttributeEnumValue(context.Context, *GetResourceAttributeEnumValueRequest) (*GetResourceAttributeEnumValueResponse, error) + ListResourceAttributeEnumValues(context.Context, *ListResourceAttributeEnumValuesRequest) (*ListResourceAttributeEnumValuesResponse, error) + UpdateResourceAttributeEnumValue(context.Context, *UpdateResourceAttributeEnumValueRequest) (*UpdateResourceAttributeEnumValueResponse, error) + // Archives an enum value and migrates all resource-attributes with that value to a replacement value. + ArchiveResourceAttributeEnumValue(context.Context, *ArchiveResourceAttributeEnumValueRequest) (*ArchiveResourceAttributeEnumValueResponse, error) + // Unarchives an enum value BUT DOES NOT migrate resource-attributes with a replacement value back to the original value. + UnarchiveResourceAttributeEnumValue(context.Context, *UnarchiveResourceAttributeEnumValueRequest) (*UnarchiveResourceAttributeEnumValueResponse, error) + // Archives multiple enum values and migrates all resource-attributes with those values to their respective replacement values. + BatchArchiveResourceAttributeEnumValues(context.Context, *BatchArchiveResourceAttributeEnumValuesRequest) (*BatchArchiveResourceAttributeEnumValuesResponse, error) + // Unarchives multiple enum values BUT DOES NOT migrate resource-attributes with a replacement value back to the original value. + BatchUnarchiveResourceAttributeEnumValues(context.Context, *BatchUnarchiveResourceAttributeEnumValuesRequest) (*BatchUnarchiveResourceAttributeEnumValuesResponse, error) + // Creates relation between an Entity and a ResourceAttribute Key and Value. + CreateResourceAttribute(context.Context, *CreateResourceAttributeRequest) (*CreateResourceAttributeResponse, error) + // Creates resource-attributes for multiple entities with the same key-value pair. + BatchCreateResourceAttributes(context.Context, *BatchCreateResourceAttributesRequest) (*BatchCreateResourceAttributesResponse, error) + GetResourceAttribute(context.Context, *GetResourceAttributeRequest) (*GetResourceAttributeResponse, error) + ListResourceAttributes(context.Context, *ListResourceAttributesRequest) (*ListResourceAttributesResponse, error) + // Lists all resource-attributes for a specific entity. Excludes archived by default. + ListResourceAttributesByEntity(context.Context, *ListResourceAttributesByEntityRequest) (*ListResourceAttributesByEntityResponse, error) + ArchiveResourceAttribute(context.Context, *ArchiveResourceAttributeRequest) (*ArchiveResourceAttributeResponse, error) + UnarchiveResourceAttribute(context.Context, *UnarchiveResourceAttributeRequest) (*UnarchiveResourceAttributeResponse, error) + // Archives multiple resource-attributes. + BatchArchiveResourceAttributes(context.Context, *BatchArchiveResourceAttributesRequest) (*BatchArchiveResourceAttributesResponse, error) + // Unarchives multiple resource-attributes. + BatchUnarchiveResourceAttributes(context.Context, *BatchUnarchiveResourceAttributesRequest) (*BatchUnarchiveResourceAttributesResponse, error) + mustEmbedUnimplementedResourceAttributeServiceServer() +} + +// UnimplementedResourceAttributeServiceServer must be embedded to have forward compatible implementations. +type UnimplementedResourceAttributeServiceServer struct { +} + +func (UnimplementedResourceAttributeServiceServer) CreateResourceAttributeKey(context.Context, *CreateResourceAttributeKeyRequest) (*CreateResourceAttributeKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateResourceAttributeKey not implemented") +} +func (UnimplementedResourceAttributeServiceServer) GetResourceAttributeKey(context.Context, *GetResourceAttributeKeyRequest) (*GetResourceAttributeKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetResourceAttributeKey not implemented") +} +func (UnimplementedResourceAttributeServiceServer) ListResourceAttributeKeys(context.Context, *ListResourceAttributeKeysRequest) (*ListResourceAttributeKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListResourceAttributeKeys not implemented") +} +func (UnimplementedResourceAttributeServiceServer) UpdateResourceAttributeKey(context.Context, *UpdateResourceAttributeKeyRequest) (*UpdateResourceAttributeKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateResourceAttributeKey not implemented") +} +func (UnimplementedResourceAttributeServiceServer) ArchiveResourceAttributeKey(context.Context, *ArchiveResourceAttributeKeyRequest) (*ArchiveResourceAttributeKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ArchiveResourceAttributeKey not implemented") +} +func (UnimplementedResourceAttributeServiceServer) UnarchiveResourceAttributeKey(context.Context, *UnarchiveResourceAttributeKeyRequest) (*UnarchiveResourceAttributeKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnarchiveResourceAttributeKey not implemented") +} +func (UnimplementedResourceAttributeServiceServer) BatchArchiveResourceAttributeKeys(context.Context, *BatchArchiveResourceAttributeKeysRequest) (*BatchArchiveResourceAttributeKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchArchiveResourceAttributeKeys not implemented") +} +func (UnimplementedResourceAttributeServiceServer) BatchUnarchiveResourceAttributeKeys(context.Context, *BatchUnarchiveResourceAttributeKeysRequest) (*BatchUnarchiveResourceAttributeKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchUnarchiveResourceAttributeKeys not implemented") +} +func (UnimplementedResourceAttributeServiceServer) CreateResourceAttributeEnumValue(context.Context, *CreateResourceAttributeEnumValueRequest) (*CreateResourceAttributeEnumValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateResourceAttributeEnumValue not implemented") +} +func (UnimplementedResourceAttributeServiceServer) GetResourceAttributeEnumValue(context.Context, *GetResourceAttributeEnumValueRequest) (*GetResourceAttributeEnumValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetResourceAttributeEnumValue not implemented") +} +func (UnimplementedResourceAttributeServiceServer) ListResourceAttributeEnumValues(context.Context, *ListResourceAttributeEnumValuesRequest) (*ListResourceAttributeEnumValuesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListResourceAttributeEnumValues not implemented") +} +func (UnimplementedResourceAttributeServiceServer) UpdateResourceAttributeEnumValue(context.Context, *UpdateResourceAttributeEnumValueRequest) (*UpdateResourceAttributeEnumValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateResourceAttributeEnumValue not implemented") +} +func (UnimplementedResourceAttributeServiceServer) ArchiveResourceAttributeEnumValue(context.Context, *ArchiveResourceAttributeEnumValueRequest) (*ArchiveResourceAttributeEnumValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ArchiveResourceAttributeEnumValue not implemented") +} +func (UnimplementedResourceAttributeServiceServer) UnarchiveResourceAttributeEnumValue(context.Context, *UnarchiveResourceAttributeEnumValueRequest) (*UnarchiveResourceAttributeEnumValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnarchiveResourceAttributeEnumValue not implemented") +} +func (UnimplementedResourceAttributeServiceServer) BatchArchiveResourceAttributeEnumValues(context.Context, *BatchArchiveResourceAttributeEnumValuesRequest) (*BatchArchiveResourceAttributeEnumValuesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchArchiveResourceAttributeEnumValues not implemented") +} +func (UnimplementedResourceAttributeServiceServer) BatchUnarchiveResourceAttributeEnumValues(context.Context, *BatchUnarchiveResourceAttributeEnumValuesRequest) (*BatchUnarchiveResourceAttributeEnumValuesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchUnarchiveResourceAttributeEnumValues not implemented") +} +func (UnimplementedResourceAttributeServiceServer) CreateResourceAttribute(context.Context, *CreateResourceAttributeRequest) (*CreateResourceAttributeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateResourceAttribute not implemented") +} +func (UnimplementedResourceAttributeServiceServer) BatchCreateResourceAttributes(context.Context, *BatchCreateResourceAttributesRequest) (*BatchCreateResourceAttributesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchCreateResourceAttributes not implemented") +} +func (UnimplementedResourceAttributeServiceServer) GetResourceAttribute(context.Context, *GetResourceAttributeRequest) (*GetResourceAttributeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetResourceAttribute not implemented") +} +func (UnimplementedResourceAttributeServiceServer) ListResourceAttributes(context.Context, *ListResourceAttributesRequest) (*ListResourceAttributesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListResourceAttributes not implemented") +} +func (UnimplementedResourceAttributeServiceServer) ListResourceAttributesByEntity(context.Context, *ListResourceAttributesByEntityRequest) (*ListResourceAttributesByEntityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListResourceAttributesByEntity not implemented") +} +func (UnimplementedResourceAttributeServiceServer) ArchiveResourceAttribute(context.Context, *ArchiveResourceAttributeRequest) (*ArchiveResourceAttributeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ArchiveResourceAttribute not implemented") +} +func (UnimplementedResourceAttributeServiceServer) UnarchiveResourceAttribute(context.Context, *UnarchiveResourceAttributeRequest) (*UnarchiveResourceAttributeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnarchiveResourceAttribute not implemented") +} +func (UnimplementedResourceAttributeServiceServer) BatchArchiveResourceAttributes(context.Context, *BatchArchiveResourceAttributesRequest) (*BatchArchiveResourceAttributesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchArchiveResourceAttributes not implemented") +} +func (UnimplementedResourceAttributeServiceServer) BatchUnarchiveResourceAttributes(context.Context, *BatchUnarchiveResourceAttributesRequest) (*BatchUnarchiveResourceAttributesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchUnarchiveResourceAttributes not implemented") +} +func (UnimplementedResourceAttributeServiceServer) mustEmbedUnimplementedResourceAttributeServiceServer() { +} + +// UnsafeResourceAttributeServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ResourceAttributeServiceServer will +// result in compilation errors. +type UnsafeResourceAttributeServiceServer interface { + mustEmbedUnimplementedResourceAttributeServiceServer() +} + +func RegisterResourceAttributeServiceServer(s grpc.ServiceRegistrar, srv ResourceAttributeServiceServer) { + s.RegisterService(&ResourceAttributeService_ServiceDesc, srv) +} + +func _ResourceAttributeService_CreateResourceAttributeKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateResourceAttributeKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).CreateResourceAttributeKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).CreateResourceAttributeKey(ctx, req.(*CreateResourceAttributeKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_GetResourceAttributeKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetResourceAttributeKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).GetResourceAttributeKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).GetResourceAttributeKey(ctx, req.(*GetResourceAttributeKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_ListResourceAttributeKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListResourceAttributeKeysRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).ListResourceAttributeKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).ListResourceAttributeKeys(ctx, req.(*ListResourceAttributeKeysRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_UpdateResourceAttributeKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateResourceAttributeKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).UpdateResourceAttributeKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).UpdateResourceAttributeKey(ctx, req.(*UpdateResourceAttributeKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_ArchiveResourceAttributeKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ArchiveResourceAttributeKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).ArchiveResourceAttributeKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).ArchiveResourceAttributeKey(ctx, req.(*ArchiveResourceAttributeKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_UnarchiveResourceAttributeKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UnarchiveResourceAttributeKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).UnarchiveResourceAttributeKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).UnarchiveResourceAttributeKey(ctx, req.(*UnarchiveResourceAttributeKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_BatchArchiveResourceAttributeKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchArchiveResourceAttributeKeysRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).BatchArchiveResourceAttributeKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).BatchArchiveResourceAttributeKeys(ctx, req.(*BatchArchiveResourceAttributeKeysRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchUnarchiveResourceAttributeKeysRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).BatchUnarchiveResourceAttributeKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).BatchUnarchiveResourceAttributeKeys(ctx, req.(*BatchUnarchiveResourceAttributeKeysRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_CreateResourceAttributeEnumValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateResourceAttributeEnumValueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).CreateResourceAttributeEnumValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeEnumValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).CreateResourceAttributeEnumValue(ctx, req.(*CreateResourceAttributeEnumValueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_GetResourceAttributeEnumValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetResourceAttributeEnumValueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).GetResourceAttributeEnumValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeEnumValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).GetResourceAttributeEnumValue(ctx, req.(*GetResourceAttributeEnumValueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_ListResourceAttributeEnumValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListResourceAttributeEnumValuesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).ListResourceAttributeEnumValues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeEnumValues", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).ListResourceAttributeEnumValues(ctx, req.(*ListResourceAttributeEnumValuesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_UpdateResourceAttributeEnumValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateResourceAttributeEnumValueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).UpdateResourceAttributeEnumValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeEnumValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).UpdateResourceAttributeEnumValue(ctx, req.(*UpdateResourceAttributeEnumValueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_ArchiveResourceAttributeEnumValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ArchiveResourceAttributeEnumValueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).ArchiveResourceAttributeEnumValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeEnumValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).ArchiveResourceAttributeEnumValue(ctx, req.(*ArchiveResourceAttributeEnumValueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_UnarchiveResourceAttributeEnumValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UnarchiveResourceAttributeEnumValueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).UnarchiveResourceAttributeEnumValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeEnumValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).UnarchiveResourceAttributeEnumValue(ctx, req.(*UnarchiveResourceAttributeEnumValueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchArchiveResourceAttributeEnumValuesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).BatchArchiveResourceAttributeEnumValues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeEnumValues", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).BatchArchiveResourceAttributeEnumValues(ctx, req.(*BatchArchiveResourceAttributeEnumValuesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchUnarchiveResourceAttributeEnumValuesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).BatchUnarchiveResourceAttributeEnumValues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeEnumValues", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).BatchUnarchiveResourceAttributeEnumValues(ctx, req.(*BatchUnarchiveResourceAttributeEnumValuesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_CreateResourceAttribute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateResourceAttributeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).CreateResourceAttribute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttribute", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).CreateResourceAttribute(ctx, req.(*CreateResourceAttributeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_BatchCreateResourceAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchCreateResourceAttributesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).BatchCreateResourceAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/BatchCreateResourceAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).BatchCreateResourceAttributes(ctx, req.(*BatchCreateResourceAttributesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_GetResourceAttribute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetResourceAttributeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).GetResourceAttribute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttribute", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).GetResourceAttribute(ctx, req.(*GetResourceAttributeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_ListResourceAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListResourceAttributesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).ListResourceAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).ListResourceAttributes(ctx, req.(*ListResourceAttributesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_ListResourceAttributesByEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListResourceAttributesByEntityRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).ListResourceAttributesByEntity(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributesByEntity", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).ListResourceAttributesByEntity(ctx, req.(*ListResourceAttributesByEntityRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_ArchiveResourceAttribute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ArchiveResourceAttributeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).ArchiveResourceAttribute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttribute", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).ArchiveResourceAttribute(ctx, req.(*ArchiveResourceAttributeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_UnarchiveResourceAttribute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UnarchiveResourceAttributeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).UnarchiveResourceAttribute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttribute", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).UnarchiveResourceAttribute(ctx, req.(*UnarchiveResourceAttributeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_BatchArchiveResourceAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchArchiveResourceAttributesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).BatchArchiveResourceAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).BatchArchiveResourceAttributes(ctx, req.(*BatchArchiveResourceAttributesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ResourceAttributeService_BatchUnarchiveResourceAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchUnarchiveResourceAttributesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResourceAttributeServiceServer).BatchUnarchiveResourceAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResourceAttributeServiceServer).BatchUnarchiveResourceAttributes(ctx, req.(*BatchUnarchiveResourceAttributesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ResourceAttributeService_ServiceDesc is the grpc.ServiceDesc for ResourceAttributeService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ResourceAttributeService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "sift.resource_attribute.v1.ResourceAttributeService", + HandlerType: (*ResourceAttributeServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateResourceAttributeKey", + Handler: _ResourceAttributeService_CreateResourceAttributeKey_Handler, + }, + { + MethodName: "GetResourceAttributeKey", + Handler: _ResourceAttributeService_GetResourceAttributeKey_Handler, + }, + { + MethodName: "ListResourceAttributeKeys", + Handler: _ResourceAttributeService_ListResourceAttributeKeys_Handler, + }, + { + MethodName: "UpdateResourceAttributeKey", + Handler: _ResourceAttributeService_UpdateResourceAttributeKey_Handler, + }, + { + MethodName: "ArchiveResourceAttributeKey", + Handler: _ResourceAttributeService_ArchiveResourceAttributeKey_Handler, + }, + { + MethodName: "UnarchiveResourceAttributeKey", + Handler: _ResourceAttributeService_UnarchiveResourceAttributeKey_Handler, + }, + { + MethodName: "BatchArchiveResourceAttributeKeys", + Handler: _ResourceAttributeService_BatchArchiveResourceAttributeKeys_Handler, + }, + { + MethodName: "BatchUnarchiveResourceAttributeKeys", + Handler: _ResourceAttributeService_BatchUnarchiveResourceAttributeKeys_Handler, + }, + { + MethodName: "CreateResourceAttributeEnumValue", + Handler: _ResourceAttributeService_CreateResourceAttributeEnumValue_Handler, + }, + { + MethodName: "GetResourceAttributeEnumValue", + Handler: _ResourceAttributeService_GetResourceAttributeEnumValue_Handler, + }, + { + MethodName: "ListResourceAttributeEnumValues", + Handler: _ResourceAttributeService_ListResourceAttributeEnumValues_Handler, + }, + { + MethodName: "UpdateResourceAttributeEnumValue", + Handler: _ResourceAttributeService_UpdateResourceAttributeEnumValue_Handler, + }, + { + MethodName: "ArchiveResourceAttributeEnumValue", + Handler: _ResourceAttributeService_ArchiveResourceAttributeEnumValue_Handler, + }, + { + MethodName: "UnarchiveResourceAttributeEnumValue", + Handler: _ResourceAttributeService_UnarchiveResourceAttributeEnumValue_Handler, + }, + { + MethodName: "BatchArchiveResourceAttributeEnumValues", + Handler: _ResourceAttributeService_BatchArchiveResourceAttributeEnumValues_Handler, + }, + { + MethodName: "BatchUnarchiveResourceAttributeEnumValues", + Handler: _ResourceAttributeService_BatchUnarchiveResourceAttributeEnumValues_Handler, + }, + { + MethodName: "CreateResourceAttribute", + Handler: _ResourceAttributeService_CreateResourceAttribute_Handler, + }, + { + MethodName: "BatchCreateResourceAttributes", + Handler: _ResourceAttributeService_BatchCreateResourceAttributes_Handler, + }, + { + MethodName: "GetResourceAttribute", + Handler: _ResourceAttributeService_GetResourceAttribute_Handler, + }, + { + MethodName: "ListResourceAttributes", + Handler: _ResourceAttributeService_ListResourceAttributes_Handler, + }, + { + MethodName: "ListResourceAttributesByEntity", + Handler: _ResourceAttributeService_ListResourceAttributesByEntity_Handler, + }, + { + MethodName: "ArchiveResourceAttribute", + Handler: _ResourceAttributeService_ArchiveResourceAttribute_Handler, + }, + { + MethodName: "UnarchiveResourceAttribute", + Handler: _ResourceAttributeService_UnarchiveResourceAttribute_Handler, + }, + { + MethodName: "BatchArchiveResourceAttributes", + Handler: _ResourceAttributeService_BatchArchiveResourceAttributes_Handler, + }, + { + MethodName: "BatchUnarchiveResourceAttributes", + Handler: _ResourceAttributeService_BatchUnarchiveResourceAttributes_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "sift/resource_attribute/v1/resource_attribute.proto", +} + +func (m *ResourceAttributeKey) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceAttributeKey) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResourceAttributeKey) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + if len(m.ModifiedByUserId) > 0 { + i -= len(m.ModifiedByUserId) + copy(dAtA[i:], m.ModifiedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + i-- + dAtA[i] = 0x4a + } + if m.ModifiedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x3a + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.Type != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x28 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x1a + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ResourceAttributeEnumValue) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceAttributeEnumValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResourceAttributeEnumValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + if len(m.ModifiedByUserId) > 0 { + i -= len(m.ModifiedByUserId) + copy(dAtA[i:], m.ModifiedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + i-- + dAtA[i] = 0x42 + } + if m.ModifiedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x32 + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x1a + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeEnumValueId) > 0 { + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ResourceAttribute) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceAttribute) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResourceAttribute) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if vtmsg, ok := m.Value.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x62 + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x5a + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + if m.EnumValueDetails != nil { + size, err := m.EnumValueDetails.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + if m.Key != nil { + size, err := m.Key.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0x22 + } + if m.Entity != nil { + size, err := m.Entity.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeId) > 0 { + i -= len(m.ResourceAttributeId) + copy(dAtA[i:], m.ResourceAttributeId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ResourceAttribute_ResourceAttributeEnumValueId) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResourceAttribute_ResourceAttributeEnumValueId) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0x32 + return len(dAtA) - i, nil +} +func (m *ResourceAttribute_BooleanValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResourceAttribute_BooleanValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + return len(dAtA) - i, nil +} +func (m *ResourceAttribute_NumberValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResourceAttribute_NumberValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x41 + return len(dAtA) - i, nil +} +func (m *ResourceAttributeEntityIdentifier) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceAttributeEntityIdentifier) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResourceAttributeEntityIdentifier) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.EntityType != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EntityType)) + i-- + dAtA[i] = 0x10 + } + if len(m.EntityId) > 0 { + i -= len(m.EntityId) + copy(dAtA[i:], m.EntityId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EntityId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeKeyRequest_InitialEnumValue) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeKeyRequest_InitialEnumValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateResourceAttributeKeyRequest_InitialEnumValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeKeyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeKeyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateResourceAttributeKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.InitialEnumValues) > 0 { + for iNdEx := len(m.InitialEnumValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.InitialEnumValues[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if m.Type != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x18 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeKeyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeKeyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateResourceAttributeKeyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.EnumValues) > 0 { + for iNdEx := len(m.EnumValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.EnumValues[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.ResourceAttributeKey != nil { + size, err := m.ResourceAttributeKey.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeKeyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeKeyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetResourceAttributeKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeKeyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeKeyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetResourceAttributeKeyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributeKey != nil { + size, err := m.ResourceAttributeKey.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributeKeysRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributeKeysRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListResourceAttributeKeysRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributeKeysResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributeKeysResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListResourceAttributeKeysResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeKeys) > 0 { + for iNdEx := len(m.ResourceAttributeKeys) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceAttributeKeys[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UpdateResourceAttributeKeyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateResourceAttributeKeyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UpdateResourceAttributeKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UpdateMask != nil { + size, err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateResourceAttributeKeyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateResourceAttributeKeyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UpdateResourceAttributeKeyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributeKey != nil { + size, err := m.ResourceAttributeKey.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeKeyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeKeyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeKeyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeKeyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeKeyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeKeyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeKeyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeKeyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeKeyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeKeyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributeKeysRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributeKeysRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributeKeysRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeKeyIds) > 0 { + for iNdEx := len(m.ResourceAttributeKeyIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceAttributeKeyIds[iNdEx]) + copy(dAtA[i:], m.ResourceAttributeKeyIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributeKeysResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributeKeysResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributeKeysResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributeKeysRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributeKeysRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributeKeysRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeKeyIds) > 0 { + for iNdEx := len(m.ResourceAttributeKeyIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceAttributeKeyIds[iNdEx]) + copy(dAtA[i:], m.ResourceAttributeKeyIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributeKeysResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributeKeysResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributeKeysResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeEnumValueRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeEnumValueRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateResourceAttributeEnumValueRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeEnumValueResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeEnumValueResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateResourceAttributeEnumValueResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributeEnumValue != nil { + size, err := m.ResourceAttributeEnumValue.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeEnumValueRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeEnumValueRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetResourceAttributeEnumValueRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeEnumValueId) > 0 { + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeEnumValueResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeEnumValueResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetResourceAttributeEnumValueResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributeEnumValue != nil { + size, err := m.ResourceAttributeEnumValue.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributeEnumValuesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributeEnumValuesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListResourceAttributeEnumValuesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x2a + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x22 + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x1a + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x10 + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributeEnumValuesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributeEnumValuesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListResourceAttributeEnumValuesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeEnumValues) > 0 { + for iNdEx := len(m.ResourceAttributeEnumValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceAttributeEnumValues[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UpdateResourceAttributeEnumValueRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateResourceAttributeEnumValueRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UpdateResourceAttributeEnumValueRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UpdateMask != nil { + size, err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeEnumValueId) > 0 { + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateResourceAttributeEnumValueResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateResourceAttributeEnumValueResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UpdateResourceAttributeEnumValueResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributeEnumValue != nil { + size, err := m.ResourceAttributeEnumValue.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeEnumValueRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeEnumValueRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeEnumValueRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ReplacementEnumValueId) > 0 { + i -= len(m.ReplacementEnumValueId) + copy(dAtA[i:], m.ReplacementEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ReplacementEnumValueId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ArchivedEnumValueId) > 0 { + i -= len(m.ArchivedEnumValueId) + copy(dAtA[i:], m.ArchivedEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ArchivedEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeEnumValueResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeEnumValueResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeEnumValueResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributesMigrated != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ResourceAttributesMigrated)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeEnumValueRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeEnumValueRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeEnumValueRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeEnumValueId) > 0 { + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeEnumValueResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeEnumValueResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeEnumValueResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ReplacementEnumValueId) > 0 { + i -= len(m.ReplacementEnumValueId) + copy(dAtA[i:], m.ReplacementEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ReplacementEnumValueId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ArchivedEnumValueId) > 0 { + i -= len(m.ArchivedEnumValueId) + copy(dAtA[i:], m.ArchivedEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ArchivedEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ArchivalRequests) > 0 { + for iNdEx := len(m.ArchivalRequests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ArchivalRequests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributeEnumValuesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.TotalResourceAttributesMigrated != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TotalResourceAttributesMigrated)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeEnumValueIds) > 0 { + for iNdEx := len(m.ResourceAttributeEnumValueIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceAttributeEnumValueIds[iNdEx]) + copy(dAtA[i:], m.ResourceAttributeEnumValueIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateResourceAttributeRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if vtmsg, ok := m.Value.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0x12 + } + if m.Entity != nil { + size, err := m.Entity.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeRequest_ResourceAttributeEnumValueId) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateResourceAttributeRequest_ResourceAttributeEnumValueId) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} +func (m *CreateResourceAttributeRequest_BooleanValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateResourceAttributeRequest_BooleanValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + return len(dAtA) - i, nil +} +func (m *CreateResourceAttributeRequest_NumberValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateResourceAttributeRequest_NumberValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x29 + return len(dAtA) - i, nil +} +func (m *CreateResourceAttributeResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateResourceAttributeResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttribute != nil { + size, err := m.ResourceAttribute.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchCreateResourceAttributesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchCreateResourceAttributesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchCreateResourceAttributesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if vtmsg, ok := m.Value.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if len(m.Entities) > 0 { + for iNdEx := len(m.Entities) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Entities[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0x12 + return len(dAtA) - i, nil +} +func (m *BatchCreateResourceAttributesRequest_BooleanValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchCreateResourceAttributesRequest_BooleanValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + return len(dAtA) - i, nil +} +func (m *BatchCreateResourceAttributesRequest_NumberValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchCreateResourceAttributesRequest_NumberValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x21 + return len(dAtA) - i, nil +} +func (m *BatchCreateResourceAttributesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchCreateResourceAttributesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchCreateResourceAttributesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributes) > 0 { + for iNdEx := len(m.ResourceAttributes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceAttributes[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetResourceAttributeRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeId) > 0 { + i -= len(m.ResourceAttributeId) + copy(dAtA[i:], m.ResourceAttributeId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetResourceAttributeResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttribute != nil { + size, err := m.ResourceAttribute.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListResourceAttributesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListResourceAttributesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributes) > 0 { + for iNdEx := len(m.ResourceAttributes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceAttributes[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributesByEntityRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributesByEntityRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListResourceAttributesByEntityRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x22 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x18 + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.Entity != nil { + size, err := m.Entity.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributesByEntityResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributesByEntityResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListResourceAttributesByEntityResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributes) > 0 { + for iNdEx := len(m.ResourceAttributes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceAttributes[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeId) > 0 { + i -= len(m.ResourceAttributeId) + copy(dAtA[i:], m.ResourceAttributeId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeId) > 0 { + i -= len(m.ResourceAttributeId) + copy(dAtA[i:], m.ResourceAttributeId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeIds) > 0 { + for iNdEx := len(m.ResourceAttributeIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceAttributeIds[iNdEx]) + copy(dAtA[i:], m.ResourceAttributeIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeIds) > 0 { + for iNdEx := len(m.ResourceAttributeIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceAttributeIds[iNdEx]) + copy(dAtA[i:], m.ResourceAttributeIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *ResourceAttributeKey) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceAttributeKey) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ResourceAttributeKey) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + if len(m.ModifiedByUserId) > 0 { + i -= len(m.ModifiedByUserId) + copy(dAtA[i:], m.ModifiedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + i-- + dAtA[i] = 0x4a + } + if m.ModifiedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x3a + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.Type != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x28 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x1a + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ResourceAttributeEnumValue) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceAttributeEnumValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ResourceAttributeEnumValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + if len(m.ModifiedByUserId) > 0 { + i -= len(m.ModifiedByUserId) + copy(dAtA[i:], m.ModifiedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + i-- + dAtA[i] = 0x42 + } + if m.ModifiedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x32 + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x1a + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeEnumValueId) > 0 { + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ResourceAttribute) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceAttribute) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ResourceAttribute) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x62 + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x5a + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + if m.EnumValueDetails != nil { + size, err := m.EnumValueDetails.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + if msg, ok := m.Value.(*ResourceAttribute_NumberValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*ResourceAttribute_BooleanValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*ResourceAttribute_ResourceAttributeEnumValueId); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if m.Key != nil { + size, err := m.Key.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0x22 + } + if m.Entity != nil { + size, err := m.Entity.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeId) > 0 { + i -= len(m.ResourceAttributeId) + copy(dAtA[i:], m.ResourceAttributeId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ResourceAttribute_ResourceAttributeEnumValueId) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ResourceAttribute_ResourceAttributeEnumValueId) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0x32 + return len(dAtA) - i, nil +} +func (m *ResourceAttribute_BooleanValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ResourceAttribute_BooleanValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + return len(dAtA) - i, nil +} +func (m *ResourceAttribute_NumberValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ResourceAttribute_NumberValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x41 + return len(dAtA) - i, nil +} +func (m *ResourceAttributeEntityIdentifier) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceAttributeEntityIdentifier) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ResourceAttributeEntityIdentifier) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.EntityType != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EntityType)) + i-- + dAtA[i] = 0x10 + } + if len(m.EntityId) > 0 { + i -= len(m.EntityId) + copy(dAtA[i:], m.EntityId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EntityId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeKeyRequest_InitialEnumValue) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeKeyRequest_InitialEnumValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateResourceAttributeKeyRequest_InitialEnumValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeKeyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeKeyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateResourceAttributeKeyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.InitialEnumValues) > 0 { + for iNdEx := len(m.InitialEnumValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.InitialEnumValues[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if m.Type != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x18 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeKeyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeKeyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateResourceAttributeKeyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.EnumValues) > 0 { + for iNdEx := len(m.EnumValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.EnumValues[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.ResourceAttributeKey != nil { + size, err := m.ResourceAttributeKey.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeKeyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeKeyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetResourceAttributeKeyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeKeyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeKeyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetResourceAttributeKeyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributeKey != nil { + size, err := m.ResourceAttributeKey.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributeKeysRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributeKeysRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListResourceAttributeKeysRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributeKeysResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributeKeysResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListResourceAttributeKeysResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeKeys) > 0 { + for iNdEx := len(m.ResourceAttributeKeys) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceAttributeKeys[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UpdateResourceAttributeKeyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateResourceAttributeKeyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UpdateResourceAttributeKeyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UpdateMask != nil { + size, err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateResourceAttributeKeyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateResourceAttributeKeyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UpdateResourceAttributeKeyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributeKey != nil { + size, err := m.ResourceAttributeKey.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeKeyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeKeyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeKeyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeKeyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeKeyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeKeyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeKeyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeKeyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeKeyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeKeyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeKeyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeKeyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributeKeysRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributeKeysRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributeKeysRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeKeyIds) > 0 { + for iNdEx := len(m.ResourceAttributeKeyIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceAttributeKeyIds[iNdEx]) + copy(dAtA[i:], m.ResourceAttributeKeyIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributeKeysResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributeKeysResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributeKeysResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributeKeysRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributeKeysRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributeKeysRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeKeyIds) > 0 { + for iNdEx := len(m.ResourceAttributeKeyIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceAttributeKeyIds[iNdEx]) + copy(dAtA[i:], m.ResourceAttributeKeyIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributeKeysResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributeKeysResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributeKeysResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeEnumValueRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeEnumValueRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateResourceAttributeEnumValueRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeEnumValueResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeEnumValueResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateResourceAttributeEnumValueResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributeEnumValue != nil { + size, err := m.ResourceAttributeEnumValue.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeEnumValueRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeEnumValueRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetResourceAttributeEnumValueRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeEnumValueId) > 0 { + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeEnumValueResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeEnumValueResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetResourceAttributeEnumValueResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributeEnumValue != nil { + size, err := m.ResourceAttributeEnumValue.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributeEnumValuesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributeEnumValuesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListResourceAttributeEnumValuesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x2a + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x22 + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x1a + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x10 + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributeEnumValuesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributeEnumValuesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListResourceAttributeEnumValuesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeEnumValues) > 0 { + for iNdEx := len(m.ResourceAttributeEnumValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceAttributeEnumValues[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UpdateResourceAttributeEnumValueRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateResourceAttributeEnumValueRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UpdateResourceAttributeEnumValueRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UpdateMask != nil { + size, err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributeEnumValueId) > 0 { + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateResourceAttributeEnumValueResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateResourceAttributeEnumValueResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UpdateResourceAttributeEnumValueResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributeEnumValue != nil { + size, err := m.ResourceAttributeEnumValue.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeEnumValueRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeEnumValueRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeEnumValueRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ReplacementEnumValueId) > 0 { + i -= len(m.ReplacementEnumValueId) + copy(dAtA[i:], m.ReplacementEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ReplacementEnumValueId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ArchivedEnumValueId) > 0 { + i -= len(m.ArchivedEnumValueId) + copy(dAtA[i:], m.ArchivedEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ArchivedEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeEnumValueResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeEnumValueResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeEnumValueResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttributesMigrated != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ResourceAttributesMigrated)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeEnumValueRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeEnumValueRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeEnumValueRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeEnumValueId) > 0 { + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeEnumValueResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeEnumValueResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeEnumValueResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ReplacementEnumValueId) > 0 { + i -= len(m.ReplacementEnumValueId) + copy(dAtA[i:], m.ReplacementEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ReplacementEnumValueId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ArchivedEnumValueId) > 0 { + i -= len(m.ArchivedEnumValueId) + copy(dAtA[i:], m.ArchivedEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ArchivedEnumValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ArchivalRequests) > 0 { + for iNdEx := len(m.ArchivalRequests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ArchivalRequests[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributeEnumValuesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributeEnumValuesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.TotalResourceAttributesMigrated != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TotalResourceAttributesMigrated)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeEnumValueIds) > 0 { + for iNdEx := len(m.ResourceAttributeEnumValueIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceAttributeEnumValueIds[iNdEx]) + copy(dAtA[i:], m.ResourceAttributeEnumValueIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateResourceAttributeRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if msg, ok := m.Value.(*CreateResourceAttributeRequest_NumberValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*CreateResourceAttributeRequest_BooleanValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*CreateResourceAttributeRequest_ResourceAttributeEnumValueId); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0x12 + } + if m.Entity != nil { + size, err := m.Entity.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateResourceAttributeRequest_ResourceAttributeEnumValueId) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateResourceAttributeRequest_ResourceAttributeEnumValueId) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} +func (m *CreateResourceAttributeRequest_BooleanValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateResourceAttributeRequest_BooleanValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + return len(dAtA) - i, nil +} +func (m *CreateResourceAttributeRequest_NumberValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateResourceAttributeRequest_NumberValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x29 + return len(dAtA) - i, nil +} +func (m *CreateResourceAttributeResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateResourceAttributeResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateResourceAttributeResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttribute != nil { + size, err := m.ResourceAttribute.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchCreateResourceAttributesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchCreateResourceAttributesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchCreateResourceAttributesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Entities) > 0 { + for iNdEx := len(m.Entities) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Entities[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if msg, ok := m.Value.(*BatchCreateResourceAttributesRequest_NumberValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*BatchCreateResourceAttributesRequest_BooleanValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if len(m.ResourceAttributeKeyId) > 0 { + i -= len(m.ResourceAttributeKeyId) + copy(dAtA[i:], m.ResourceAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.ResourceAttributeEnumValueId) + copy(dAtA[i:], m.ResourceAttributeEnumValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeEnumValueId))) + i-- + dAtA[i] = 0x12 + return len(dAtA) - i, nil +} +func (m *BatchCreateResourceAttributesRequest_BooleanValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchCreateResourceAttributesRequest_BooleanValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + return len(dAtA) - i, nil +} +func (m *BatchCreateResourceAttributesRequest_NumberValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchCreateResourceAttributesRequest_NumberValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x21 + return len(dAtA) - i, nil +} +func (m *BatchCreateResourceAttributesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchCreateResourceAttributesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchCreateResourceAttributesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributes) > 0 { + for iNdEx := len(m.ResourceAttributes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceAttributes[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetResourceAttributeRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeId) > 0 { + i -= len(m.ResourceAttributeId) + copy(dAtA[i:], m.ResourceAttributeId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetResourceAttributeResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetResourceAttributeResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetResourceAttributeResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ResourceAttribute != nil { + size, err := m.ResourceAttribute.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListResourceAttributesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListResourceAttributesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributes) > 0 { + for iNdEx := len(m.ResourceAttributes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceAttributes[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributesByEntityRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributesByEntityRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListResourceAttributesByEntityRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x22 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x18 + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.Entity != nil { + size, err := m.Entity.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListResourceAttributesByEntityResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListResourceAttributesByEntityResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListResourceAttributesByEntityResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.ResourceAttributes) > 0 { + for iNdEx := len(m.ResourceAttributes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceAttributes[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeId) > 0 { + i -= len(m.ResourceAttributeId) + copy(dAtA[i:], m.ResourceAttributeId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveResourceAttributeResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveResourceAttributeResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchiveResourceAttributeResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeId) > 0 { + i -= len(m.ResourceAttributeId) + copy(dAtA[i:], m.ResourceAttributeId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveResourceAttributeResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveResourceAttributeResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UnarchiveResourceAttributeResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeIds) > 0 { + for iNdEx := len(m.ResourceAttributeIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceAttributeIds[iNdEx]) + copy(dAtA[i:], m.ResourceAttributeIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchArchiveResourceAttributesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchArchiveResourceAttributesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchArchiveResourceAttributesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ResourceAttributeIds) > 0 { + for iNdEx := len(m.ResourceAttributeIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceAttributeIds[iNdEx]) + copy(dAtA[i:], m.ResourceAttributeIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ResourceAttributeIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *BatchUnarchiveResourceAttributesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchUnarchiveResourceAttributesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchUnarchiveResourceAttributesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *ResourceAttributeKey) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrganizationId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.DisplayName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Type != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Type)) + } + if m.CreatedDate != nil { + l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CreatedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ModifiedDate != nil { + l = (*timestamppb1.Timestamp)(m.ModifiedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ModifiedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ArchivedDate != nil { + l = (*timestamppb1.Timestamp)(m.ArchivedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ResourceAttributeEnumValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeEnumValueId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ResourceAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.DisplayName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.CreatedDate != nil { + l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CreatedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ModifiedDate != nil { + l = (*timestamppb1.Timestamp)(m.ModifiedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ModifiedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ArchivedDate != nil { + l = (*timestamppb1.Timestamp)(m.ArchivedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ResourceAttribute) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrganizationId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Entity != nil { + l = m.Entity.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ResourceAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Key != nil { + l = m.Key.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if vtmsg, ok := m.Value.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + if m.EnumValueDetails != nil { + l = m.EnumValueDetails.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.CreatedDate != nil { + l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CreatedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ArchivedDate != nil { + l = (*timestamppb1.Timestamp)(m.ArchivedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ResourceAttribute_ResourceAttributeEnumValueId) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeEnumValueId) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return n +} +func (m *ResourceAttribute_BooleanValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *ResourceAttribute_NumberValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} +func (m *ResourceAttributeEntityIdentifier) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.EntityId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.EntityType != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.EntityType)) + } + n += len(m.unknownFields) + return n +} + +func (m *CreateResourceAttributeKeyRequest_InitialEnumValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *CreateResourceAttributeKeyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Type != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Type)) + } + if len(m.InitialEnumValues) > 0 { + for _, e := range m.InitialEnumValues { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CreateResourceAttributeKeyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceAttributeKey != nil { + l = m.ResourceAttributeKey.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.EnumValues) > 0 { + for _, e := range m.EnumValues { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *GetResourceAttributeKeyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *GetResourceAttributeKeyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceAttributeKey != nil { + l = m.ResourceAttributeKey.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ListResourceAttributeKeysRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Filter) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrderBy) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IncludeArchived { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *ListResourceAttributeKeysResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ResourceAttributeKeys) > 0 { + for _, e := range m.ResourceAttributeKeys { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateResourceAttributeKeyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.DisplayName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.UpdateMask != nil { + l = (*fieldmaskpb1.FieldMask)(m.UpdateMask).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateResourceAttributeKeyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceAttributeKey != nil { + l = m.ResourceAttributeKey.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ArchiveResourceAttributeKeyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ArchiveResourceAttributeKeyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *UnarchiveResourceAttributeKeyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UnarchiveResourceAttributeKeyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *BatchArchiveResourceAttributeKeysRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ResourceAttributeKeyIds) > 0 { + for _, s := range m.ResourceAttributeKeyIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *BatchArchiveResourceAttributeKeysResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *BatchUnarchiveResourceAttributeKeysRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ResourceAttributeKeyIds) > 0 { + for _, s := range m.ResourceAttributeKeyIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *BatchUnarchiveResourceAttributeKeysResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *CreateResourceAttributeEnumValueRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.DisplayName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *CreateResourceAttributeEnumValueResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceAttributeEnumValue != nil { + l = m.ResourceAttributeEnumValue.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *GetResourceAttributeEnumValueRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeEnumValueId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *GetResourceAttributeEnumValueResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceAttributeEnumValue != nil { + l = m.ResourceAttributeEnumValue.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ListResourceAttributeEnumValuesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PageSize != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Filter) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrderBy) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IncludeArchived { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *ListResourceAttributeEnumValuesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ResourceAttributeEnumValues) > 0 { + for _, e := range m.ResourceAttributeEnumValues { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateResourceAttributeEnumValueRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeEnumValueId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.DisplayName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.UpdateMask != nil { + l = (*fieldmaskpb1.FieldMask)(m.UpdateMask).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateResourceAttributeEnumValueResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceAttributeEnumValue != nil { + l = m.ResourceAttributeEnumValue.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ArchiveResourceAttributeEnumValueRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ArchivedEnumValueId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ReplacementEnumValueId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ArchiveResourceAttributeEnumValueResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceAttributesMigrated != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.ResourceAttributesMigrated)) + } + n += len(m.unknownFields) + return n +} + +func (m *UnarchiveResourceAttributeEnumValueRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeEnumValueId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UnarchiveResourceAttributeEnumValueResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ArchivedEnumValueId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ReplacementEnumValueId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *BatchArchiveResourceAttributeEnumValuesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ArchivalRequests) > 0 { + for _, e := range m.ArchivalRequests { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *BatchArchiveResourceAttributeEnumValuesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TotalResourceAttributesMigrated != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.TotalResourceAttributesMigrated)) + } + n += len(m.unknownFields) + return n +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ResourceAttributeEnumValueIds) > 0 { + for _, s := range m.ResourceAttributeEnumValueIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *BatchUnarchiveResourceAttributeEnumValuesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *CreateResourceAttributeRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Entity != nil { + l = m.Entity.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ResourceAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if vtmsg, ok := m.Value.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + n += len(m.unknownFields) + return n +} + +func (m *CreateResourceAttributeRequest_ResourceAttributeEnumValueId) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeEnumValueId) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return n +} +func (m *CreateResourceAttributeRequest_BooleanValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *CreateResourceAttributeRequest_NumberValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} +func (m *CreateResourceAttributeResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceAttribute != nil { + l = m.ResourceAttribute.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *BatchCreateResourceAttributesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if vtmsg, ok := m.Value.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + if len(m.Entities) > 0 { + for _, e := range m.Entities { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeEnumValueId) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return n +} +func (m *BatchCreateResourceAttributesRequest_BooleanValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *BatchCreateResourceAttributesRequest_NumberValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} +func (m *BatchCreateResourceAttributesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ResourceAttributes) > 0 { + for _, e := range m.ResourceAttributes { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *GetResourceAttributeRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *GetResourceAttributeResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceAttribute != nil { + l = m.ResourceAttribute.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ListResourceAttributesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Filter) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrderBy) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IncludeArchived { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *ListResourceAttributesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ResourceAttributes) > 0 { + for _, e := range m.ResourceAttributes { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ListResourceAttributesByEntityRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Entity != nil { + l = m.Entity.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IncludeArchived { + n += 2 + } + if m.PageSize != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ListResourceAttributesByEntityResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ResourceAttributes) > 0 { + for _, e := range m.ResourceAttributes { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ArchiveResourceAttributeRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ArchiveResourceAttributeResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *UnarchiveResourceAttributeRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ResourceAttributeId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UnarchiveResourceAttributeResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *BatchArchiveResourceAttributesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ResourceAttributeIds) > 0 { + for _, s := range m.ResourceAttributeIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *BatchArchiveResourceAttributesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *BatchUnarchiveResourceAttributesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ResourceAttributeIds) > 0 { + for _, s := range m.ResourceAttributeIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *BatchUnarchiveResourceAttributesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *ResourceAttributeKey) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceAttributeKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceAttributeKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrganizationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ResourceAttributeKeyType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ModifiedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceAttributeEnumValue) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceAttributeEnumValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceAttributeEnumValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeEnumValueId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ModifiedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceAttribute) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceAttribute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceAttribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrganizationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Entity == nil { + m.Entity = &ResourceAttributeEntityIdentifier{} + } + if err := m.Entity.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Key == nil { + m.Key = &ResourceAttributeKey{} + } + if err := m.Key.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = &ResourceAttribute_ResourceAttributeEnumValueId{ResourceAttributeEnumValueId: string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &ResourceAttribute_BooleanValue{BooleanValue: b} + case 8: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &ResourceAttribute_NumberValue{NumberValue: float64(math.Float64frombits(v))} + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EnumValueDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EnumValueDetails == nil { + m.EnumValueDetails = &ResourceAttributeEnumValue{} + } + if err := m.EnumValueDetails.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceAttributeEntityIdentifier) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceAttributeEntityIdentifier: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceAttributeEntityIdentifier: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EntityId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EntityId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EntityType", wireType) + } + m.EntityType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EntityType |= ResourceAttributeEntityType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeKeyRequest_InitialEnumValue) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeKeyRequest_InitialEnumValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeKeyRequest_InitialEnumValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeKeyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ResourceAttributeKeyType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitialEnumValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitialEnumValues = append(m.InitialEnumValues, &CreateResourceAttributeKeyRequest_InitialEnumValue{}) + if err := m.InitialEnumValues[len(m.InitialEnumValues)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeKeyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeKey == nil { + m.ResourceAttributeKey = &ResourceAttributeKey{} + } + if err := m.ResourceAttributeKey.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EnumValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EnumValues = append(m.EnumValues, &ResourceAttributeEnumValue{}) + if err := m.EnumValues[len(m.EnumValues)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeKeyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeKeyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeKey == nil { + m.ResourceAttributeKey = &ResourceAttributeKey{} + } + if err := m.ResourceAttributeKey.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributeKeysRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Filter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrderBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributeKeysResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeys", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeys = append(m.ResourceAttributeKeys, &ResourceAttributeKey{}) + if err := m.ResourceAttributeKeys[len(m.ResourceAttributeKeys)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateResourceAttributeKeyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateResourceAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateResourceAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateMask == nil { + m.UpdateMask = &fieldmaskpb.FieldMask{} + } + if err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateResourceAttributeKeyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateResourceAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateResourceAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeKey == nil { + m.ResourceAttributeKey = &ResourceAttributeKey{} + } + if err := m.ResourceAttributeKey.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeKeyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeKeyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeKeyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeKeyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributeKeysRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyIds = append(m.ResourceAttributeKeyIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributeKeysResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributeKeysRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyIds = append(m.ResourceAttributeKeyIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributeKeysResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeEnumValueRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeEnumValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeEnumValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeEnumValueResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeEnumValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeEnumValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeEnumValue == nil { + m.ResourceAttributeEnumValue = &ResourceAttributeEnumValue{} + } + if err := m.ResourceAttributeEnumValue.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeEnumValueRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeEnumValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeEnumValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeEnumValueId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeEnumValueResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeEnumValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeEnumValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeEnumValue == nil { + m.ResourceAttributeEnumValue = &ResourceAttributeEnumValue{} + } + if err := m.ResourceAttributeEnumValue.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributeEnumValuesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributeEnumValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributeEnumValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Filter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrderBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributeEnumValuesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributeEnumValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributeEnumValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeEnumValues = append(m.ResourceAttributeEnumValues, &ResourceAttributeEnumValue{}) + if err := m.ResourceAttributeEnumValues[len(m.ResourceAttributeEnumValues)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateResourceAttributeEnumValueRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateResourceAttributeEnumValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateResourceAttributeEnumValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeEnumValueId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateMask == nil { + m.UpdateMask = &fieldmaskpb.FieldMask{} + } + if err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateResourceAttributeEnumValueResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateResourceAttributeEnumValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateResourceAttributeEnumValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeEnumValue == nil { + m.ResourceAttributeEnumValue = &ResourceAttributeEnumValue{} + } + if err := m.ResourceAttributeEnumValue.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeEnumValueRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeEnumValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeEnumValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ArchivedEnumValueId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplacementEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReplacementEnumValueId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeEnumValueResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeEnumValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeEnumValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributesMigrated", wireType) + } + m.ResourceAttributesMigrated = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ResourceAttributesMigrated |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeEnumValueRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeEnumValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeEnumValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeEnumValueId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeEnumValueResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeEnumValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeEnumValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ArchivedEnumValueId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplacementEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReplacementEnumValueId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributeEnumValuesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivalRequests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ArchivalRequests = append(m.ArchivalRequests, &BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival{}) + if err := m.ArchivalRequests[len(m.ArchivalRequests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributeEnumValuesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalResourceAttributesMigrated", wireType) + } + m.TotalResourceAttributesMigrated = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalResourceAttributesMigrated |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributeEnumValuesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeEnumValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeEnumValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeEnumValueIds = append(m.ResourceAttributeEnumValueIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributeEnumValuesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeEnumValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeEnumValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Entity == nil { + m.Entity = &ResourceAttributeEntityIdentifier{} + } + if err := m.Entity.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = &CreateResourceAttributeRequest_ResourceAttributeEnumValueId{ResourceAttributeEnumValueId: string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &CreateResourceAttributeRequest_BooleanValue{BooleanValue: b} + case 5: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &CreateResourceAttributeRequest_NumberValue{NumberValue: float64(math.Float64frombits(v))} + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttribute == nil { + m.ResourceAttribute = &ResourceAttribute{} + } + if err := m.ResourceAttribute.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchCreateResourceAttributesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchCreateResourceAttributesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchCreateResourceAttributesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = &BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId{ResourceAttributeEnumValueId: string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &BatchCreateResourceAttributesRequest_BooleanValue{BooleanValue: b} + case 4: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &BatchCreateResourceAttributesRequest_NumberValue{NumberValue: float64(math.Float64frombits(v))} + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entities", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Entities = append(m.Entities, &ResourceAttributeEntityIdentifier{}) + if err := m.Entities[len(m.Entities)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchCreateResourceAttributesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchCreateResourceAttributesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchCreateResourceAttributesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributes = append(m.ResourceAttributes, &ResourceAttribute{}) + if err := m.ResourceAttributes[len(m.ResourceAttributes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttribute == nil { + m.ResourceAttribute = &ResourceAttribute{} + } + if err := m.ResourceAttribute.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Filter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrderBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributes = append(m.ResourceAttributes, &ResourceAttribute{}) + if err := m.ResourceAttributes[len(m.ResourceAttributes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributesByEntityRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributesByEntityRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributesByEntityRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Entity == nil { + m.Entity = &ResourceAttributeEntityIdentifier{} + } + if err := m.Entity.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributesByEntityResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributesByEntityResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributesByEntityResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributes = append(m.ResourceAttributes, &ResourceAttribute{}) + if err := m.ResourceAttributes[len(m.ResourceAttributes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeIds = append(m.ResourceAttributeIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeIds = append(m.ResourceAttributeIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceAttributeKey) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceAttributeKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceAttributeKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrganizationId = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.DisplayName = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Description = stringValue + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ResourceAttributeKeyType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.CreatedByUserId = stringValue + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ModifiedByUserId = stringValue + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceAttributeEnumValue) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceAttributeEnumValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceAttributeEnumValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeEnumValueId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyId = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.DisplayName = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Description = stringValue + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.CreatedByUserId = stringValue + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ModifiedByUserId = stringValue + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceAttribute) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceAttribute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceAttribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrganizationId = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Entity == nil { + m.Entity = &ResourceAttributeEntityIdentifier{} + } + if err := m.Entity.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyId = stringValue + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Key == nil { + m.Key = &ResourceAttributeKey{} + } + if err := m.Key.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Value = &ResourceAttribute_ResourceAttributeEnumValueId{ResourceAttributeEnumValueId: stringValue} + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &ResourceAttribute_BooleanValue{BooleanValue: b} + case 8: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &ResourceAttribute_NumberValue{NumberValue: float64(math.Float64frombits(v))} + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EnumValueDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EnumValueDetails == nil { + m.EnumValueDetails = &ResourceAttributeEnumValue{} + } + if err := m.EnumValueDetails.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.CreatedByUserId = stringValue + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceAttributeEntityIdentifier) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceAttributeEntityIdentifier: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceAttributeEntityIdentifier: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EntityId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.EntityId = stringValue + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EntityType", wireType) + } + m.EntityType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EntityType |= ResourceAttributeEntityType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeKeyRequest_InitialEnumValue) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeKeyRequest_InitialEnumValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeKeyRequest_InitialEnumValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.DisplayName = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Description = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeKeyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.DisplayName = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Description = stringValue + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ResourceAttributeKeyType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitialEnumValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitialEnumValues = append(m.InitialEnumValues, &CreateResourceAttributeKeyRequest_InitialEnumValue{}) + if err := m.InitialEnumValues[len(m.InitialEnumValues)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeKeyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeKey == nil { + m.ResourceAttributeKey = &ResourceAttributeKey{} + } + if err := m.ResourceAttributeKey.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EnumValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EnumValues = append(m.EnumValues, &ResourceAttributeEnumValue{}) + if err := m.EnumValues[len(m.EnumValues)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeKeyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeKeyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeKey == nil { + m.ResourceAttributeKey = &ResourceAttributeKey{} + } + if err := m.ResourceAttributeKey.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributeKeysRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PageToken = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Filter = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrderBy = stringValue + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributeKeysResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeys", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeKeys = append(m.ResourceAttributeKeys, &ResourceAttributeKey{}) + if err := m.ResourceAttributeKeys[len(m.ResourceAttributeKeys)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.NextPageToken = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateResourceAttributeKeyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateResourceAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateResourceAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.DisplayName = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Description = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateMask == nil { + m.UpdateMask = &fieldmaskpb.FieldMask{} + } + if err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateResourceAttributeKeyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateResourceAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateResourceAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeKey == nil { + m.ResourceAttributeKey = &ResourceAttributeKey{} + } + if err := m.ResourceAttributeKey.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeKeyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeKeyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeKeyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeKeyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributeKeysRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyIds = append(m.ResourceAttributeKeyIds, stringValue) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributeKeysResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributeKeysRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyIds = append(m.ResourceAttributeKeyIds, stringValue) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributeKeysResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeEnumValueRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeEnumValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeEnumValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.DisplayName = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Description = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeEnumValueResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeEnumValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeEnumValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeEnumValue == nil { + m.ResourceAttributeEnumValue = &ResourceAttributeEnumValue{} + } + if err := m.ResourceAttributeEnumValue.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeEnumValueRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeEnumValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeEnumValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeEnumValueId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeEnumValueResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeEnumValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeEnumValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeEnumValue == nil { + m.ResourceAttributeEnumValue = &ResourceAttributeEnumValue{} + } + if err := m.ResourceAttributeEnumValue.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributeEnumValuesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributeEnumValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributeEnumValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyId = stringValue + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PageToken = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Filter = stringValue + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrderBy = stringValue + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributeEnumValuesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributeEnumValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributeEnumValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributeEnumValues = append(m.ResourceAttributeEnumValues, &ResourceAttributeEnumValue{}) + if err := m.ResourceAttributeEnumValues[len(m.ResourceAttributeEnumValues)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.NextPageToken = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateResourceAttributeEnumValueRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateResourceAttributeEnumValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateResourceAttributeEnumValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeEnumValueId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.DisplayName = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Description = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateMask == nil { + m.UpdateMask = &fieldmaskpb.FieldMask{} + } + if err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateResourceAttributeEnumValueResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateResourceAttributeEnumValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateResourceAttributeEnumValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttributeEnumValue == nil { + m.ResourceAttributeEnumValue = &ResourceAttributeEnumValue{} + } + if err := m.ResourceAttributeEnumValue.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeEnumValueRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeEnumValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeEnumValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ArchivedEnumValueId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplacementEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ReplacementEnumValueId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeEnumValueResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeEnumValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeEnumValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributesMigrated", wireType) + } + m.ResourceAttributesMigrated = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ResourceAttributesMigrated |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeEnumValueRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeEnumValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeEnumValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeEnumValueId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeEnumValueResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeEnumValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeEnumValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ArchivedEnumValueId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplacementEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ReplacementEnumValueId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributeEnumValuesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivalRequests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ArchivalRequests = append(m.ArchivalRequests, &BatchArchiveResourceAttributeEnumValuesRequest_EnumValueArchival{}) + if err := m.ArchivalRequests[len(m.ArchivalRequests)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributeEnumValuesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributeEnumValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalResourceAttributesMigrated", wireType) + } + m.TotalResourceAttributesMigrated = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalResourceAttributesMigrated |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributeEnumValuesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeEnumValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeEnumValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeEnumValueIds = append(m.ResourceAttributeEnumValueIds, stringValue) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributeEnumValuesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeEnumValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributeEnumValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Entity == nil { + m.Entity = &ResourceAttributeEntityIdentifier{} + } + if err := m.Entity.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyId = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Value = &CreateResourceAttributeRequest_ResourceAttributeEnumValueId{ResourceAttributeEnumValueId: stringValue} + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &CreateResourceAttributeRequest_BooleanValue{BooleanValue: b} + case 5: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &CreateResourceAttributeRequest_NumberValue{NumberValue: float64(math.Float64frombits(v))} + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateResourceAttributeResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateResourceAttributeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateResourceAttributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttribute == nil { + m.ResourceAttribute = &ResourceAttribute{} + } + if err := m.ResourceAttribute.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchCreateResourceAttributesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchCreateResourceAttributesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchCreateResourceAttributesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeKeyId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeEnumValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Value = &BatchCreateResourceAttributesRequest_ResourceAttributeEnumValueId{ResourceAttributeEnumValueId: stringValue} + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &BatchCreateResourceAttributesRequest_BooleanValue{BooleanValue: b} + case 4: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &BatchCreateResourceAttributesRequest_NumberValue{NumberValue: float64(math.Float64frombits(v))} + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entities", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Entities = append(m.Entities, &ResourceAttributeEntityIdentifier{}) + if err := m.Entities[len(m.Entities)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchCreateResourceAttributesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchCreateResourceAttributesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchCreateResourceAttributesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributes = append(m.ResourceAttributes, &ResourceAttribute{}) + if err := m.ResourceAttributes[len(m.ResourceAttributes)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetResourceAttributeResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetResourceAttributeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetResourceAttributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceAttribute == nil { + m.ResourceAttribute = &ResourceAttribute{} + } + if err := m.ResourceAttribute.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PageToken = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Filter = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrderBy = stringValue + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributes = append(m.ResourceAttributes, &ResourceAttribute{}) + if err := m.ResourceAttributes[len(m.ResourceAttributes)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.NextPageToken = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributesByEntityRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributesByEntityRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributesByEntityRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Entity == nil { + m.Entity = &ResourceAttributeEntityIdentifier{} + } + if err := m.Entity.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PageToken = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListResourceAttributesByEntityResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListResourceAttributesByEntityResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListResourceAttributesByEntityResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceAttributes = append(m.ResourceAttributes, &ResourceAttribute{}) + if err := m.ResourceAttributes[len(m.ResourceAttributes)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.NextPageToken = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveResourceAttributeResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveResourceAttributeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveResourceAttributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveResourceAttributeResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveResourceAttributeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveResourceAttributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeIds = append(m.ResourceAttributeIds, stringValue) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchArchiveResourceAttributesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchArchiveResourceAttributesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchArchiveResourceAttributesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributeIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ResourceAttributeIds = append(m.ResourceAttributeIds, stringValue) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchUnarchiveResourceAttributesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchUnarchiveResourceAttributesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} diff --git a/go/gen/sift/user_attributes/v1/user_attributes.pb.go b/go/gen/sift/user_attributes/v1/user_attributes.pb.go new file mode 100644 index 000000000..824b21497 --- /dev/null +++ b/go/gen/sift/user_attributes/v1/user_attributes.pb.go @@ -0,0 +1,3006 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc (unknown) +// source: sift/user_attributes/v1/user_attributes.proto + +package user_attributesv1 + +import ( + _ "github.com/sift-stack/sift/go/gen/buf/validate" + _ "github.com/sift-stack/sift/go/gen/google/api" + _ "github.com/sift-stack/sift/go/gen/protoc-gen-openapiv2/options" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// UserAttributeValueType enumerates the supported value types for a user attribute key. +type UserAttributeValueType int32 + +const ( + UserAttributeValueType_USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED UserAttributeValueType = 0 + UserAttributeValueType_USER_ATTRIBUTE_VALUE_TYPE_STRING UserAttributeValueType = 1 + UserAttributeValueType_USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN UserAttributeValueType = 2 + UserAttributeValueType_USER_ATTRIBUTE_VALUE_TYPE_NUMBER UserAttributeValueType = 3 + UserAttributeValueType_USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING UserAttributeValueType = 4 +) + +// Enum value maps for UserAttributeValueType. +var ( + UserAttributeValueType_name = map[int32]string{ + 0: "USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED", + 1: "USER_ATTRIBUTE_VALUE_TYPE_STRING", + 2: "USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN", + 3: "USER_ATTRIBUTE_VALUE_TYPE_NUMBER", + 4: "USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING", + } + UserAttributeValueType_value = map[string]int32{ + "USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED": 0, + "USER_ATTRIBUTE_VALUE_TYPE_STRING": 1, + "USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN": 2, + "USER_ATTRIBUTE_VALUE_TYPE_NUMBER": 3, + "USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING": 4, + } +) + +func (x UserAttributeValueType) Enum() *UserAttributeValueType { + p := new(UserAttributeValueType) + *p = x + return p +} + +func (x UserAttributeValueType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (UserAttributeValueType) Descriptor() protoreflect.EnumDescriptor { + return file_sift_user_attributes_v1_user_attributes_proto_enumTypes[0].Descriptor() +} + +func (UserAttributeValueType) Type() protoreflect.EnumType { + return &file_sift_user_attributes_v1_user_attributes_proto_enumTypes[0] +} + +func (x UserAttributeValueType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use UserAttributeValueType.Descriptor instead. +func (UserAttributeValueType) EnumDescriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{0} +} + +type UserAttributeKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeKeyId string `protobuf:"bytes,1,opt,name=user_attribute_key_id,json=userAttributeKeyId,proto3" json:"user_attribute_key_id,omitempty"` + OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Type UserAttributeValueType `protobuf:"varint,5,opt,name=type,proto3,enum=sift.user_attributes.v1.UserAttributeValueType" json:"type,omitempty"` + CreatedDate *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_date,json=createdDate,proto3" json:"created_date,omitempty"` + CreatedByUserId string `protobuf:"bytes,7,opt,name=created_by_user_id,json=createdByUserId,proto3" json:"created_by_user_id,omitempty"` + ModifiedDate *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=modified_date,json=modifiedDate,proto3" json:"modified_date,omitempty"` + ModifiedByUserId string `protobuf:"bytes,9,opt,name=modified_by_user_id,json=modifiedByUserId,proto3" json:"modified_by_user_id,omitempty"` + ArchivedDate *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=archived_date,json=archivedDate,proto3" json:"archived_date,omitempty"` + // Whether or not the user attribute key is archived. This is inferred from whether archived_date is set. + IsArchived bool `protobuf:"varint,11,opt,name=is_archived,json=isArchived,proto3" json:"is_archived,omitempty"` +} + +func (x *UserAttributeKey) Reset() { + *x = UserAttributeKey{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserAttributeKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserAttributeKey) ProtoMessage() {} + +func (x *UserAttributeKey) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserAttributeKey.ProtoReflect.Descriptor instead. +func (*UserAttributeKey) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{0} +} + +func (x *UserAttributeKey) GetUserAttributeKeyId() string { + if x != nil { + return x.UserAttributeKeyId + } + return "" +} + +func (x *UserAttributeKey) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +func (x *UserAttributeKey) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UserAttributeKey) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *UserAttributeKey) GetType() UserAttributeValueType { + if x != nil { + return x.Type + } + return UserAttributeValueType_USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED +} + +func (x *UserAttributeKey) GetCreatedDate() *timestamppb.Timestamp { + if x != nil { + return x.CreatedDate + } + return nil +} + +func (x *UserAttributeKey) GetCreatedByUserId() string { + if x != nil { + return x.CreatedByUserId + } + return "" +} + +func (x *UserAttributeKey) GetModifiedDate() *timestamppb.Timestamp { + if x != nil { + return x.ModifiedDate + } + return nil +} + +func (x *UserAttributeKey) GetModifiedByUserId() string { + if x != nil { + return x.ModifiedByUserId + } + return "" +} + +func (x *UserAttributeKey) GetArchivedDate() *timestamppb.Timestamp { + if x != nil { + return x.ArchivedDate + } + return nil +} + +func (x *UserAttributeKey) GetIsArchived() bool { + if x != nil { + return x.IsArchived + } + return false +} + +// CreateUserAttributeKeyRequest is used to create a new user attribute key. +type CreateUserAttributeKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Type UserAttributeValueType `protobuf:"varint,3,opt,name=type,proto3,enum=sift.user_attributes.v1.UserAttributeValueType" json:"type,omitempty"` +} + +func (x *CreateUserAttributeKeyRequest) Reset() { + *x = CreateUserAttributeKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUserAttributeKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserAttributeKeyRequest) ProtoMessage() {} + +func (x *CreateUserAttributeKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateUserAttributeKeyRequest.ProtoReflect.Descriptor instead. +func (*CreateUserAttributeKeyRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateUserAttributeKeyRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateUserAttributeKeyRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *CreateUserAttributeKeyRequest) GetType() UserAttributeValueType { + if x != nil { + return x.Type + } + return UserAttributeValueType_USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED +} + +// CreateUserAttributeKeyResponse returns the user attribute key from a CreateUserAttributeKey call. +type CreateUserAttributeKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeKey *UserAttributeKey `protobuf:"bytes,1,opt,name=user_attribute_key,json=userAttributeKey,proto3" json:"user_attribute_key,omitempty"` +} + +func (x *CreateUserAttributeKeyResponse) Reset() { + *x = CreateUserAttributeKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUserAttributeKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserAttributeKeyResponse) ProtoMessage() {} + +func (x *CreateUserAttributeKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateUserAttributeKeyResponse.ProtoReflect.Descriptor instead. +func (*CreateUserAttributeKeyResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateUserAttributeKeyResponse) GetUserAttributeKey() *UserAttributeKey { + if x != nil { + return x.UserAttributeKey + } + return nil +} + +// UpdateUserAttributeKeyRequest is used to update an existing user attribute key. +type UpdateUserAttributeKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeKeyId string `protobuf:"bytes,1,opt,name=user_attribute_key_id,json=userAttributeKeyId,proto3" json:"user_attribute_key_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // The list of fields to be updated. The fields available to be updated are `name` and 'description'. + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` +} + +func (x *UpdateUserAttributeKeyRequest) Reset() { + *x = UpdateUserAttributeKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateUserAttributeKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserAttributeKeyRequest) ProtoMessage() {} + +func (x *UpdateUserAttributeKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateUserAttributeKeyRequest.ProtoReflect.Descriptor instead. +func (*UpdateUserAttributeKeyRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{3} +} + +func (x *UpdateUserAttributeKeyRequest) GetUserAttributeKeyId() string { + if x != nil { + return x.UserAttributeKeyId + } + return "" +} + +func (x *UpdateUserAttributeKeyRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UpdateUserAttributeKeyRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *UpdateUserAttributeKeyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.UpdateMask + } + return nil +} + +// UpdateUserAttributeKeyResponse returns the user attribute key from a UpdateUserAttributeKey call. +type UpdateUserAttributeKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeKey *UserAttributeKey `protobuf:"bytes,1,opt,name=user_attribute_key,json=userAttributeKey,proto3" json:"user_attribute_key,omitempty"` +} + +func (x *UpdateUserAttributeKeyResponse) Reset() { + *x = UpdateUserAttributeKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateUserAttributeKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserAttributeKeyResponse) ProtoMessage() {} + +func (x *UpdateUserAttributeKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateUserAttributeKeyResponse.ProtoReflect.Descriptor instead. +func (*UpdateUserAttributeKeyResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{4} +} + +func (x *UpdateUserAttributeKeyResponse) GetUserAttributeKey() *UserAttributeKey { + if x != nil { + return x.UserAttributeKey + } + return nil +} + +// GetUserAttributeKeyRequest is used to retrieve a user attribute key. +type GetUserAttributeKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeKeyId string `protobuf:"bytes,1,opt,name=user_attribute_key_id,json=userAttributeKeyId,proto3" json:"user_attribute_key_id,omitempty"` +} + +func (x *GetUserAttributeKeyRequest) Reset() { + *x = GetUserAttributeKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserAttributeKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserAttributeKeyRequest) ProtoMessage() {} + +func (x *GetUserAttributeKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetUserAttributeKeyRequest.ProtoReflect.Descriptor instead. +func (*GetUserAttributeKeyRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{5} +} + +func (x *GetUserAttributeKeyRequest) GetUserAttributeKeyId() string { + if x != nil { + return x.UserAttributeKeyId + } + return "" +} + +// GetUserAttributeKeyResponse returns a user attribute key from a GetUserAttributeKey call. +type GetUserAttributeKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeKey *UserAttributeKey `protobuf:"bytes,1,opt,name=user_attribute_key,json=userAttributeKey,proto3" json:"user_attribute_key,omitempty"` +} + +func (x *GetUserAttributeKeyResponse) Reset() { + *x = GetUserAttributeKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserAttributeKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserAttributeKeyResponse) ProtoMessage() {} + +func (x *GetUserAttributeKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetUserAttributeKeyResponse.ProtoReflect.Descriptor instead. +func (*GetUserAttributeKeyResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{6} +} + +func (x *GetUserAttributeKeyResponse) GetUserAttributeKey() *UserAttributeKey { + if x != nil { + return x.UserAttributeKey + } + return nil +} + +// ListUserAttributeKeysRequest is used to list user attribute keys with the provided filter. +type ListUserAttributeKeysRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The maximum number of user attribute keys to return. The service may return fewer than this value. + // If unspecified, at most 50 user attribute keys will be returned. The maximum value is 1000. Values + // above 1000 will be coerced to 1000. Optional. + PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token, received from a previous `ListUserAttributeKeys` call. + // Provide this to retrieve a subsequent page of user attribute keys. + // When paginating, all other parameters provided to `ListUserAttributeKeys` must match the previous call + // that provided the page token. Optional. + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are: + // 'user_attribute_key_id', 'name', 'value_type', 'created_by_user_id', 'created_date', 'modified_by_user_id, 'modified_date' + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + // For more information about the fields used for filtering, please refer to this definition. Optional. + Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` + // How to order the retrieved user attribute keys. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date`, 'modified_date', 'name', 'user_attribute_key_id', 'value_type', 'description' + // If left empty, items are ordered by `created_date` in ascending order (oldest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "created_date desc,modified_date" + OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + OrganizationId string `protobuf:"bytes,5,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + // If true, includes archived keys. Defaulta to false. Optional. + IncludeArchived bool `protobuf:"varint,6,opt,name=include_archived,json=includeArchived,proto3" json:"include_archived,omitempty"` +} + +func (x *ListUserAttributeKeysRequest) Reset() { + *x = ListUserAttributeKeysRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListUserAttributeKeysRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserAttributeKeysRequest) ProtoMessage() {} + +func (x *ListUserAttributeKeysRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUserAttributeKeysRequest.ProtoReflect.Descriptor instead. +func (*ListUserAttributeKeysRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{7} +} + +func (x *ListUserAttributeKeysRequest) GetPageSize() uint32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListUserAttributeKeysRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListUserAttributeKeysRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ListUserAttributeKeysRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +func (x *ListUserAttributeKeysRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +func (x *ListUserAttributeKeysRequest) GetIncludeArchived() bool { + if x != nil { + return x.IncludeArchived + } + return false +} + +// ListUserAttributeKeysResponse returns the list of user attribute keys from a ListUserAttributeKeys call. +type ListUserAttributeKeysResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeKeys []*UserAttributeKey `protobuf:"bytes,1,rep,name=user_attribute_keys,json=userAttributeKeys,proto3" json:"user_attribute_keys,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListUserAttributeKeysResponse) Reset() { + *x = ListUserAttributeKeysResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListUserAttributeKeysResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserAttributeKeysResponse) ProtoMessage() {} + +func (x *ListUserAttributeKeysResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUserAttributeKeysResponse.ProtoReflect.Descriptor instead. +func (*ListUserAttributeKeysResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{8} +} + +func (x *ListUserAttributeKeysResponse) GetUserAttributeKeys() []*UserAttributeKey { + if x != nil { + return x.UserAttributeKeys + } + return nil +} + +func (x *ListUserAttributeKeysResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +// ArchiveUserAttributeKeysRequest is used to batch archive user attribute keys by id. +type ArchiveUserAttributeKeysRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeKeyIds []string `protobuf:"bytes,1,rep,name=user_attribute_key_ids,json=userAttributeKeyIds,proto3" json:"user_attribute_key_ids,omitempty"` +} + +func (x *ArchiveUserAttributeKeysRequest) Reset() { + *x = ArchiveUserAttributeKeysRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveUserAttributeKeysRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveUserAttributeKeysRequest) ProtoMessage() {} + +func (x *ArchiveUserAttributeKeysRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveUserAttributeKeysRequest.ProtoReflect.Descriptor instead. +func (*ArchiveUserAttributeKeysRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{9} +} + +func (x *ArchiveUserAttributeKeysRequest) GetUserAttributeKeyIds() []string { + if x != nil { + return x.UserAttributeKeyIds + } + return nil +} + +type ArchiveUserAttributeKeysResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ArchiveUserAttributeKeysResponse) Reset() { + *x = ArchiveUserAttributeKeysResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveUserAttributeKeysResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveUserAttributeKeysResponse) ProtoMessage() {} + +func (x *ArchiveUserAttributeKeysResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveUserAttributeKeysResponse.ProtoReflect.Descriptor instead. +func (*ArchiveUserAttributeKeysResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{10} +} + +// UnarchiveUserAttributeKeysRequest is used to batch unarchive user attribute keys by id. +type UnarchiveUserAttributeKeysRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeKeyIds []string `protobuf:"bytes,1,rep,name=user_attribute_key_ids,json=userAttributeKeyIds,proto3" json:"user_attribute_key_ids,omitempty"` +} + +func (x *UnarchiveUserAttributeKeysRequest) Reset() { + *x = UnarchiveUserAttributeKeysRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnarchiveUserAttributeKeysRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnarchiveUserAttributeKeysRequest) ProtoMessage() {} + +func (x *UnarchiveUserAttributeKeysRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnarchiveUserAttributeKeysRequest.ProtoReflect.Descriptor instead. +func (*UnarchiveUserAttributeKeysRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{11} +} + +func (x *UnarchiveUserAttributeKeysRequest) GetUserAttributeKeyIds() []string { + if x != nil { + return x.UserAttributeKeyIds + } + return nil +} + +type UnarchiveUserAttributeKeysResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UnarchiveUserAttributeKeysResponse) Reset() { + *x = UnarchiveUserAttributeKeysResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnarchiveUserAttributeKeysResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnarchiveUserAttributeKeysResponse) ProtoMessage() {} + +func (x *UnarchiveUserAttributeKeysResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnarchiveUserAttributeKeysResponse.ProtoReflect.Descriptor instead. +func (*UnarchiveUserAttributeKeysResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{12} +} + +type UserAttributeValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeValueId string `protobuf:"bytes,1,opt,name=user_attribute_value_id,json=userAttributeValueId,proto3" json:"user_attribute_value_id,omitempty"` + UserAttributeKeyId string `protobuf:"bytes,2,opt,name=user_attribute_key_id,json=userAttributeKeyId,proto3" json:"user_attribute_key_id,omitempty"` + UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + OrganizationId string `protobuf:"bytes,4,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + // Types that are assignable to Value: + // + // *UserAttributeValue_StringValue + // *UserAttributeValue_NumberValue + // *UserAttributeValue_BooleanValue + Value isUserAttributeValue_Value `protobuf_oneof:"value"` + CreatedByUserId string `protobuf:"bytes,8,opt,name=created_by_user_id,json=createdByUserId,proto3" json:"created_by_user_id,omitempty"` + CreatedDate *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_date,json=createdDate,proto3" json:"created_date,omitempty"` + ArchivedDate *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=archived_date,json=archivedDate,proto3" json:"archived_date,omitempty"` + // Whether or not the user attribute value is archived. This is inferred from whether archived_date is set. + IsArchived bool `protobuf:"varint,11,opt,name=is_archived,json=isArchived,proto3" json:"is_archived,omitempty"` + // The full user attribute key is populated in the response. + Key *UserAttributeKey `protobuf:"bytes,12,opt,name=key,proto3" json:"key,omitempty"` +} + +func (x *UserAttributeValue) Reset() { + *x = UserAttributeValue{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserAttributeValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserAttributeValue) ProtoMessage() {} + +func (x *UserAttributeValue) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserAttributeValue.ProtoReflect.Descriptor instead. +func (*UserAttributeValue) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{13} +} + +func (x *UserAttributeValue) GetUserAttributeValueId() string { + if x != nil { + return x.UserAttributeValueId + } + return "" +} + +func (x *UserAttributeValue) GetUserAttributeKeyId() string { + if x != nil { + return x.UserAttributeKeyId + } + return "" +} + +func (x *UserAttributeValue) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *UserAttributeValue) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +func (m *UserAttributeValue) GetValue() isUserAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *UserAttributeValue) GetStringValue() string { + if x, ok := x.GetValue().(*UserAttributeValue_StringValue); ok { + return x.StringValue + } + return "" +} + +func (x *UserAttributeValue) GetNumberValue() float64 { + if x, ok := x.GetValue().(*UserAttributeValue_NumberValue); ok { + return x.NumberValue + } + return 0 +} + +func (x *UserAttributeValue) GetBooleanValue() bool { + if x, ok := x.GetValue().(*UserAttributeValue_BooleanValue); ok { + return x.BooleanValue + } + return false +} + +func (x *UserAttributeValue) GetCreatedByUserId() string { + if x != nil { + return x.CreatedByUserId + } + return "" +} + +func (x *UserAttributeValue) GetCreatedDate() *timestamppb.Timestamp { + if x != nil { + return x.CreatedDate + } + return nil +} + +func (x *UserAttributeValue) GetArchivedDate() *timestamppb.Timestamp { + if x != nil { + return x.ArchivedDate + } + return nil +} + +func (x *UserAttributeValue) GetIsArchived() bool { + if x != nil { + return x.IsArchived + } + return false +} + +func (x *UserAttributeValue) GetKey() *UserAttributeKey { + if x != nil { + return x.Key + } + return nil +} + +type isUserAttributeValue_Value interface { + isUserAttributeValue_Value() +} + +type UserAttributeValue_StringValue struct { + StringValue string `protobuf:"bytes,5,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type UserAttributeValue_NumberValue struct { + NumberValue float64 `protobuf:"fixed64,6,opt,name=number_value,json=numberValue,proto3,oneof"` +} + +type UserAttributeValue_BooleanValue struct { + BooleanValue bool `protobuf:"varint,7,opt,name=boolean_value,json=booleanValue,proto3,oneof"` +} + +func (*UserAttributeValue_StringValue) isUserAttributeValue_Value() {} + +func (*UserAttributeValue_NumberValue) isUserAttributeValue_Value() {} + +func (*UserAttributeValue_BooleanValue) isUserAttributeValue_Value() {} + +// CreateUserAttributeValueRequest is used to create a new user attribute value. +type CreateUserAttributeValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeKeyId string `protobuf:"bytes,1,opt,name=user_attribute_key_id,json=userAttributeKeyId,proto3" json:"user_attribute_key_id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + // Types that are assignable to Value: + // + // *CreateUserAttributeValueRequest_StringValue + // *CreateUserAttributeValueRequest_NumberValue + // *CreateUserAttributeValueRequest_BooleanValue + Value isCreateUserAttributeValueRequest_Value `protobuf_oneof:"value"` +} + +func (x *CreateUserAttributeValueRequest) Reset() { + *x = CreateUserAttributeValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUserAttributeValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserAttributeValueRequest) ProtoMessage() {} + +func (x *CreateUserAttributeValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateUserAttributeValueRequest.ProtoReflect.Descriptor instead. +func (*CreateUserAttributeValueRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{14} +} + +func (x *CreateUserAttributeValueRequest) GetUserAttributeKeyId() string { + if x != nil { + return x.UserAttributeKeyId + } + return "" +} + +func (x *CreateUserAttributeValueRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (m *CreateUserAttributeValueRequest) GetValue() isCreateUserAttributeValueRequest_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *CreateUserAttributeValueRequest) GetStringValue() string { + if x, ok := x.GetValue().(*CreateUserAttributeValueRequest_StringValue); ok { + return x.StringValue + } + return "" +} + +func (x *CreateUserAttributeValueRequest) GetNumberValue() float64 { + if x, ok := x.GetValue().(*CreateUserAttributeValueRequest_NumberValue); ok { + return x.NumberValue + } + return 0 +} + +func (x *CreateUserAttributeValueRequest) GetBooleanValue() bool { + if x, ok := x.GetValue().(*CreateUserAttributeValueRequest_BooleanValue); ok { + return x.BooleanValue + } + return false +} + +type isCreateUserAttributeValueRequest_Value interface { + isCreateUserAttributeValueRequest_Value() +} + +type CreateUserAttributeValueRequest_StringValue struct { + StringValue string `protobuf:"bytes,4,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type CreateUserAttributeValueRequest_NumberValue struct { + NumberValue float64 `protobuf:"fixed64,5,opt,name=number_value,json=numberValue,proto3,oneof"` +} + +type CreateUserAttributeValueRequest_BooleanValue struct { + BooleanValue bool `protobuf:"varint,6,opt,name=boolean_value,json=booleanValue,proto3,oneof"` +} + +func (*CreateUserAttributeValueRequest_StringValue) isCreateUserAttributeValueRequest_Value() {} + +func (*CreateUserAttributeValueRequest_NumberValue) isCreateUserAttributeValueRequest_Value() {} + +func (*CreateUserAttributeValueRequest_BooleanValue) isCreateUserAttributeValueRequest_Value() {} + +// CreateUserAttributeValueResponse returns the user attribute value from a CreateUserAttributeValue call. +type CreateUserAttributeValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeValue *UserAttributeValue `protobuf:"bytes,1,opt,name=user_attribute_value,json=userAttributeValue,proto3" json:"user_attribute_value,omitempty"` +} + +func (x *CreateUserAttributeValueResponse) Reset() { + *x = CreateUserAttributeValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUserAttributeValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserAttributeValueResponse) ProtoMessage() {} + +func (x *CreateUserAttributeValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateUserAttributeValueResponse.ProtoReflect.Descriptor instead. +func (*CreateUserAttributeValueResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{15} +} + +func (x *CreateUserAttributeValueResponse) GetUserAttributeValue() *UserAttributeValue { + if x != nil { + return x.UserAttributeValue + } + return nil +} + +// BatchCreateUserAttributeValueRequest is used to batch create new user attribute values. +type BatchCreateUserAttributeValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeKeyId string `protobuf:"bytes,1,opt,name=user_attribute_key_id,json=userAttributeKeyId,proto3" json:"user_attribute_key_id,omitempty"` + UserIds []string `protobuf:"bytes,2,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` + // Types that are assignable to Value: + // + // *BatchCreateUserAttributeValueRequest_StringValue + // *BatchCreateUserAttributeValueRequest_NumberValue + // *BatchCreateUserAttributeValueRequest_BooleanValue + Value isBatchCreateUserAttributeValueRequest_Value `protobuf_oneof:"value"` +} + +func (x *BatchCreateUserAttributeValueRequest) Reset() { + *x = BatchCreateUserAttributeValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchCreateUserAttributeValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchCreateUserAttributeValueRequest) ProtoMessage() {} + +func (x *BatchCreateUserAttributeValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchCreateUserAttributeValueRequest.ProtoReflect.Descriptor instead. +func (*BatchCreateUserAttributeValueRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{16} +} + +func (x *BatchCreateUserAttributeValueRequest) GetUserAttributeKeyId() string { + if x != nil { + return x.UserAttributeKeyId + } + return "" +} + +func (x *BatchCreateUserAttributeValueRequest) GetUserIds() []string { + if x != nil { + return x.UserIds + } + return nil +} + +func (m *BatchCreateUserAttributeValueRequest) GetValue() isBatchCreateUserAttributeValueRequest_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *BatchCreateUserAttributeValueRequest) GetStringValue() string { + if x, ok := x.GetValue().(*BatchCreateUserAttributeValueRequest_StringValue); ok { + return x.StringValue + } + return "" +} + +func (x *BatchCreateUserAttributeValueRequest) GetNumberValue() float64 { + if x, ok := x.GetValue().(*BatchCreateUserAttributeValueRequest_NumberValue); ok { + return x.NumberValue + } + return 0 +} + +func (x *BatchCreateUserAttributeValueRequest) GetBooleanValue() bool { + if x, ok := x.GetValue().(*BatchCreateUserAttributeValueRequest_BooleanValue); ok { + return x.BooleanValue + } + return false +} + +type isBatchCreateUserAttributeValueRequest_Value interface { + isBatchCreateUserAttributeValueRequest_Value() +} + +type BatchCreateUserAttributeValueRequest_StringValue struct { + StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type BatchCreateUserAttributeValueRequest_NumberValue struct { + NumberValue float64 `protobuf:"fixed64,4,opt,name=number_value,json=numberValue,proto3,oneof"` +} + +type BatchCreateUserAttributeValueRequest_BooleanValue struct { + BooleanValue bool `protobuf:"varint,5,opt,name=boolean_value,json=booleanValue,proto3,oneof"` +} + +func (*BatchCreateUserAttributeValueRequest_StringValue) isBatchCreateUserAttributeValueRequest_Value() { +} + +func (*BatchCreateUserAttributeValueRequest_NumberValue) isBatchCreateUserAttributeValueRequest_Value() { +} + +func (*BatchCreateUserAttributeValueRequest_BooleanValue) isBatchCreateUserAttributeValueRequest_Value() { +} + +// BatchCreateUserAttributeValueResponse returns the user attribute value from a BatchCreateUserAttributeValue call. +type BatchCreateUserAttributeValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeValues []*UserAttributeValue `protobuf:"bytes,1,rep,name=user_attribute_values,json=userAttributeValues,proto3" json:"user_attribute_values,omitempty"` +} + +func (x *BatchCreateUserAttributeValueResponse) Reset() { + *x = BatchCreateUserAttributeValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchCreateUserAttributeValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchCreateUserAttributeValueResponse) ProtoMessage() {} + +func (x *BatchCreateUserAttributeValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchCreateUserAttributeValueResponse.ProtoReflect.Descriptor instead. +func (*BatchCreateUserAttributeValueResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{17} +} + +func (x *BatchCreateUserAttributeValueResponse) GetUserAttributeValues() []*UserAttributeValue { + if x != nil { + return x.UserAttributeValues + } + return nil +} + +// ListUserAttributeKeyValues is used to list user attribute values for a given user attribute key with the provided filter. +type ListUserAttributeKeyValuesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The id of the user attribute key to list values for. + UserAttributeKeyId string `protobuf:"bytes,1,opt,name=user_attribute_key_id,json=userAttributeKeyId,proto3" json:"user_attribute_key_id,omitempty"` + // The maximum number of user attribute values to return. The service may return fewer than this value. + // If unspecified, at most 50 user attribute values will be returned. The maximum value is 1000. Values + // above 1000 will be coerced to 1000. Optional. + PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token, received from a previous `ListUserAttributeKeyValues` call. + // Provide this to retrieve a subsequent page of user attribute values. + // When paginating, all other parameters provided to `ListUserAttributeValues` must match the previous call + // that provided the page token. Optional. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are: + // 'user_attribute_value_id', 'user_attribute_key_id', 'string_value', 'number_value', 'boolean_value', 'created_date', 'created_by_user_id' and 'user_id' + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + // For more information about the fields used for filtering, please refer to this definition. Optional. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + // How to order the retrieved user attribute values. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date` + // If left empty, items are ordered by `created_date` in ascending order (oldest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "created_date desc" + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + // If true, include archived values. Defaults to false. Optional. + IncludeArchived bool `protobuf:"varint,6,opt,name=include_archived,json=includeArchived,proto3" json:"include_archived,omitempty"` +} + +func (x *ListUserAttributeKeyValuesRequest) Reset() { + *x = ListUserAttributeKeyValuesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListUserAttributeKeyValuesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserAttributeKeyValuesRequest) ProtoMessage() {} + +func (x *ListUserAttributeKeyValuesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUserAttributeKeyValuesRequest.ProtoReflect.Descriptor instead. +func (*ListUserAttributeKeyValuesRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{18} +} + +func (x *ListUserAttributeKeyValuesRequest) GetUserAttributeKeyId() string { + if x != nil { + return x.UserAttributeKeyId + } + return "" +} + +func (x *ListUserAttributeKeyValuesRequest) GetPageSize() uint32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListUserAttributeKeyValuesRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListUserAttributeKeyValuesRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ListUserAttributeKeyValuesRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +func (x *ListUserAttributeKeyValuesRequest) GetIncludeArchived() bool { + if x != nil { + return x.IncludeArchived + } + return false +} + +// ListUserAttributeKeyValuesResponse returns the list of user attribute values from a ListUserAttributeKeyValues call. +type ListUserAttributeKeyValuesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeValues []*UserAttributeValue `protobuf:"bytes,1,rep,name=user_attribute_values,json=userAttributeValues,proto3" json:"user_attribute_values,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListUserAttributeKeyValuesResponse) Reset() { + *x = ListUserAttributeKeyValuesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListUserAttributeKeyValuesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserAttributeKeyValuesResponse) ProtoMessage() {} + +func (x *ListUserAttributeKeyValuesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUserAttributeKeyValuesResponse.ProtoReflect.Descriptor instead. +func (*ListUserAttributeKeyValuesResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{19} +} + +func (x *ListUserAttributeKeyValuesResponse) GetUserAttributeValues() []*UserAttributeValue { + if x != nil { + return x.UserAttributeValues + } + return nil +} + +func (x *ListUserAttributeKeyValuesResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +type ListUserAttributeValuesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The maximum number of user attribute values to return. The service may return fewer than this value. + // If unspecified, at most 50 user attribute values will be returned. The maximum value is 1000. Values + // above 1000 will be coerced to 1000. Optional. + PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A page token, received from a previous `ListUserAttributeValues` call. + // Provide this to retrieve a subsequent page of user attribute values. + // When paginating, all other parameters provided to `ListUserAttributeValues` must match the previous call + // that provided the page token. Optional. + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are: + // 'user_attribute_value_id', 'user_attribute_key_id', 'string_value', 'number_value', 'boolean_value', 'created_date', 'created_by_user_id', 'archived_date' and 'user_id' + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + // For more information about the fields used for filtering, please refer to this definition. Optional. + Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` + // How to order the retrieved user attribute values. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date` + // If left empty, items are ordered by `created_date` in ascending order (oldest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "created_date desc" + OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` +} + +func (x *ListUserAttributeValuesRequest) Reset() { + *x = ListUserAttributeValuesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListUserAttributeValuesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserAttributeValuesRequest) ProtoMessage() {} + +func (x *ListUserAttributeValuesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUserAttributeValuesRequest.ProtoReflect.Descriptor instead. +func (*ListUserAttributeValuesRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{20} +} + +func (x *ListUserAttributeValuesRequest) GetPageSize() uint32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListUserAttributeValuesRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListUserAttributeValuesRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ListUserAttributeValuesRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +type ListUserAttributeValuesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeValues []*UserAttributeValue `protobuf:"bytes,1,rep,name=user_attribute_values,json=userAttributeValues,proto3" json:"user_attribute_values,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListUserAttributeValuesResponse) Reset() { + *x = ListUserAttributeValuesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListUserAttributeValuesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserAttributeValuesResponse) ProtoMessage() {} + +func (x *ListUserAttributeValuesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUserAttributeValuesResponse.ProtoReflect.Descriptor instead. +func (*ListUserAttributeValuesResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{21} +} + +func (x *ListUserAttributeValuesResponse) GetUserAttributeValues() []*UserAttributeValue { + if x != nil { + return x.UserAttributeValues + } + return nil +} + +func (x *ListUserAttributeValuesResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +// GetUserAttributeValueRequest is used to retrieve a user attribute value. +type GetUserAttributeValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeValueId string `protobuf:"bytes,1,opt,name=user_attribute_value_id,json=userAttributeValueId,proto3" json:"user_attribute_value_id,omitempty"` +} + +func (x *GetUserAttributeValueRequest) Reset() { + *x = GetUserAttributeValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserAttributeValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserAttributeValueRequest) ProtoMessage() {} + +func (x *GetUserAttributeValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetUserAttributeValueRequest.ProtoReflect.Descriptor instead. +func (*GetUserAttributeValueRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{22} +} + +func (x *GetUserAttributeValueRequest) GetUserAttributeValueId() string { + if x != nil { + return x.UserAttributeValueId + } + return "" +} + +// GetUserAttributeValueResponse returns a user attribute value from a GetUserAttributeValue call. +type GetUserAttributeValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeValue *UserAttributeValue `protobuf:"bytes,1,opt,name=user_attribute_value,json=userAttributeValue,proto3" json:"user_attribute_value,omitempty"` +} + +func (x *GetUserAttributeValueResponse) Reset() { + *x = GetUserAttributeValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserAttributeValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserAttributeValueResponse) ProtoMessage() {} + +func (x *GetUserAttributeValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetUserAttributeValueResponse.ProtoReflect.Descriptor instead. +func (*GetUserAttributeValueResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{23} +} + +func (x *GetUserAttributeValueResponse) GetUserAttributeValue() *UserAttributeValue { + if x != nil { + return x.UserAttributeValue + } + return nil +} + +// ArchiveUserAttributeValuesRequest is used to batch archive user attribute values by id. +type ArchiveUserAttributeValuesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeValueIds []string `protobuf:"bytes,1,rep,name=user_attribute_value_ids,json=userAttributeValueIds,proto3" json:"user_attribute_value_ids,omitempty"` +} + +func (x *ArchiveUserAttributeValuesRequest) Reset() { + *x = ArchiveUserAttributeValuesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveUserAttributeValuesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveUserAttributeValuesRequest) ProtoMessage() {} + +func (x *ArchiveUserAttributeValuesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveUserAttributeValuesRequest.ProtoReflect.Descriptor instead. +func (*ArchiveUserAttributeValuesRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{24} +} + +func (x *ArchiveUserAttributeValuesRequest) GetUserAttributeValueIds() []string { + if x != nil { + return x.UserAttributeValueIds + } + return nil +} + +type ArchiveUserAttributeValuesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ArchiveUserAttributeValuesResponse) Reset() { + *x = ArchiveUserAttributeValuesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArchiveUserAttributeValuesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArchiveUserAttributeValuesResponse) ProtoMessage() {} + +func (x *ArchiveUserAttributeValuesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArchiveUserAttributeValuesResponse.ProtoReflect.Descriptor instead. +func (*ArchiveUserAttributeValuesResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{25} +} + +// UnarchiveUserAttributeValuesRequest is used to batch unarchive user attribute values by id. +type UnarchiveUserAttributeValuesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserAttributeValueIds []string `protobuf:"bytes,1,rep,name=user_attribute_value_ids,json=userAttributeValueIds,proto3" json:"user_attribute_value_ids,omitempty"` +} + +func (x *UnarchiveUserAttributeValuesRequest) Reset() { + *x = UnarchiveUserAttributeValuesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnarchiveUserAttributeValuesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnarchiveUserAttributeValuesRequest) ProtoMessage() {} + +func (x *UnarchiveUserAttributeValuesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnarchiveUserAttributeValuesRequest.ProtoReflect.Descriptor instead. +func (*UnarchiveUserAttributeValuesRequest) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{26} +} + +func (x *UnarchiveUserAttributeValuesRequest) GetUserAttributeValueIds() []string { + if x != nil { + return x.UserAttributeValueIds + } + return nil +} + +type UnarchiveUserAttributeValuesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UnarchiveUserAttributeValuesResponse) Reset() { + *x = UnarchiveUserAttributeValuesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnarchiveUserAttributeValuesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnarchiveUserAttributeValuesResponse) ProtoMessage() {} + +func (x *UnarchiveUserAttributeValuesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_user_attributes_v1_user_attributes_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnarchiveUserAttributeValuesResponse.ProtoReflect.Descriptor instead. +func (*UnarchiveUserAttributeValuesResponse) Descriptor() ([]byte, []int) { + return file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP(), []int{27} +} + +var File_sift_user_attributes_v1_user_attributes_proto protoreflect.FileDescriptor + +var file_sift_user_attributes_v1_user_attributes_proto_rawDesc = []byte{ + 0x0a, 0x2d, 0x73, 0x69, 0x66, 0x74, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x17, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, + 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x04, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x3e, 0x0a, 0x15, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, + 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, + 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x0f, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x2f, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0c, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, + 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, + 0x12, 0x38, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, + 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0d, 0x6d, 0x6f, + 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x0c, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, + 0x12, 0x3a, 0x0a, 0x13, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, + 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x10, 0x6d, 0x6f, 0x64, 0x69, + 0x66, 0x69, 0x65, 0x64, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0d, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x44, 0x61, + 0x74, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x69, 0x73, + 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x22, 0xa9, 0x01, 0x0a, 0x1d, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x7e, 0x0a, 0x1e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, + 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x10, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x22, 0xe1, 0x01, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x7e, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x12, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x5c, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x7b, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, + 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x10, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x22, 0xff, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, + 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, + 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x5f, 0x62, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x2c, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, + 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, + 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x64, 0x22, 0xa7, 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, + 0x5b, 0x0a, 0x1f, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x16, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x73, 0x22, 0x22, 0x0a, 0x20, + 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x5d, 0x0a, 0x21, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x16, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x75, 0x73, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x73, 0x22, + 0x24, 0x0a, 0x22, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9a, 0x05, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x42, 0x0a, 0x17, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, + 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x14, 0x75, 0x73, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, + 0x12, 0x3e, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x12, 0x75, 0x73, + 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, + 0x12, 0x24, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x06, + 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x0e, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0c, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, + 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, + 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x38, 0x0a, + 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, + 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, + 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x61, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, + 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x44, 0x61, 0x74, + 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x69, 0x73, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0x81, 0x02, 0x0a, 0x1f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, + 0x03, 0xb0, 0x01, 0x01, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0c, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, + 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, + 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x14, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x12, 0x75, 0x73, 0x65, + 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0x8b, 0x02, 0x0a, 0x24, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x02, 0xba, 0x48, 0x05, 0x72, + 0x03, 0xb0, 0x01, 0x01, 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x0e, 0xe0, 0x41, 0x02, 0xba, + 0x48, 0x08, 0x92, 0x01, 0x05, 0x08, 0x01, 0x10, 0x88, 0x27, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x73, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, + 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, + 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x8d, 0x01, + 0x0a, 0x25, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x8e, 0x02, + 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x03, + 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, + 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x2e, + 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x69, + 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x22, 0xb2, + 0x01, 0x0a, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, + 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0xa3, 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, + 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xaf, 0x01, 0x0a, 0x1f, 0x4c, 0x69, + 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, + 0x15, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x73, + 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, + 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, + 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x62, 0x0a, 0x1c, 0x47, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x17, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, + 0x02, 0xba, 0x48, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x52, 0x14, 0x75, 0x73, 0x65, 0x72, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x22, + 0x83, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x62, 0x0a, 0x14, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2b, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x61, 0x0a, 0x21, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x18, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x15, 0x75, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x64, 0x73, 0x22, 0x24, 0x0a, 0x22, 0x41, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, + 0x0a, 0x23, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x18, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x75, 0x73, + 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x49, 0x64, 0x73, 0x22, 0x26, 0x0a, 0x24, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0xe3, 0x01, 0x0a, 0x16, + 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x29, 0x0a, 0x25, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x41, + 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x24, 0x0a, 0x20, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, + 0x55, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, + 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x55, 0x53, 0x45, 0x52, 0x5f, + 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x02, 0x12, 0x24, + 0x0a, 0x20, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, + 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x55, 0x4d, 0x42, + 0x45, 0x52, 0x10, 0x03, 0x12, 0x2b, 0x0a, 0x27, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x41, 0x54, 0x54, + 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x53, 0x45, 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, + 0x04, 0x32, 0xd1, 0x1b, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xea, 0x01, 0x0a, 0x16, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x36, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, + 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x92, 0x41, 0x36, 0x12, 0x16, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x1a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x75, + 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x6b, 0x65, + 0x79, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x73, 0x12, 0xf6, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, + 0x12, 0x33, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x74, 0x92, 0x41, 0x36, + 0x12, 0x13, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x4b, 0x65, 0x79, 0x1a, 0x1f, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x73, + 0x20, 0x61, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x20, 0x6b, 0x65, 0x79, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, + 0x7d, 0x12, 0xe1, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x35, 0x2e, 0x73, 0x69, + 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x59, 0x92, 0x41, 0x33, 0x12, + 0x15, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x1a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x20, 0x75, 0x73, + 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x6b, 0x65, 0x79, + 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x2d, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x8e, 0x02, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, + 0x12, 0x36, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x82, 0x01, 0x92, 0x41, 0x41, 0x12, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x1a, + 0x27, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x20, 0x6b, 0x65, 0x79, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x3a, 0x01, + 0x2a, 0x32, 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2d, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x7b, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, + 0x65, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xfa, 0x01, 0x0a, 0x18, 0x41, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x73, 0x12, 0x38, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, + 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, 0x92, 0x41, 0x38, 0x12, 0x18, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x1a, 0x1c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, + 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2d, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x61, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x65, 0x12, 0x86, 0x02, 0x0a, 0x1a, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x73, 0x12, 0x3a, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, + 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x92, 0x41, 0x3c, + 0x12, 0x1a, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x1a, 0x1e, 0x55, 0x6e, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x2a, 0x3a, 0x01, 0x2a, 0x22, 0x25, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, + 0x73, 0x65, 0x72, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x6b, 0x65, + 0x79, 0x73, 0x2f, 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0xf6, 0x01, 0x0a, + 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x38, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, + 0x92, 0x41, 0x3a, 0x12, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x1e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x75, 0x73, 0x65, 0x72, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0xbb, 0x02, 0x0a, 0x1d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9a, 0x01, 0x92, 0x41, 0x69, 0x12, 0x1d, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x48, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x73, 0x20, 0x61, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, + 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x73, 0x20, 0x69, + 0x6e, 0x20, 0x61, 0x20, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2d, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x62, 0x61, + 0x74, 0x63, 0x68, 0x12, 0x84, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x35, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, 0x92, 0x41, + 0x3a, 0x12, 0x15, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x21, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, + 0x76, 0x65, 0x73, 0x20, 0x61, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x39, 0x12, 0x37, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2d, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xc5, 0x02, 0x0a, 0x1a, 0x4c, + 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3a, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xad, 0x01, 0x92, 0x41, 0x59, 0x12, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x3b, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x20, 0x75, 0x73, 0x65, 0x72, + 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x75, 0x73, + 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x6b, 0x65, 0x79, + 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, + 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x73, 0x65, + 0x72, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x12, 0xed, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x37, + 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, + 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x5f, 0x92, 0x41, 0x37, 0x12, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, + 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2e, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, + 0x72, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x12, 0x86, 0x02, 0x0a, 0x1a, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, + 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x12, 0x3a, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x92, 0x41, 0x3c, 0x12, + 0x1a, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x1e, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x2a, 0x3a, 0x01, 0x2a, 0x22, 0x25, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, + 0x65, 0x72, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x2f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x12, 0x92, 0x02, 0x0a, 0x1c, + 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3c, 0x2e, 0x73, + 0x69, 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, + 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, 0x92, 0x41, 0x40, 0x12, 0x1c, + 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x20, 0x55, 0x6e, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2e, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x1a, 0x43, 0x92, 0x41, 0x40, 0x12, 0x3e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, + 0x6f, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x20, 0x41, 0x42, 0x41, 0x43, 0x20, 0x75, 0x73, + 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x28, 0x70, + 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x29, 0x2e, 0x42, 0x97, 0x02, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x69, + 0x66, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x13, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x66, 0x74, 0x2d, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x2f, 0x73, 0x69, 0x66, 0x74, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, + 0x73, 0x69, 0x66, 0x74, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x55, 0x58, 0xaa, + 0x02, 0x16, 0x53, 0x69, 0x66, 0x74, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x53, 0x69, 0x66, 0x74, 0x5c, + 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x22, 0x53, 0x69, 0x66, 0x74, 0x5c, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x53, 0x69, 0x66, 0x74, 0x3a, 0x3a, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x3a, 0x3a, 0x56, + 0x31, 0x92, 0x41, 0x1b, 0x12, 0x19, 0x0a, 0x17, 0x55, 0x73, 0x65, 0x72, 0x20, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_sift_user_attributes_v1_user_attributes_proto_rawDescOnce sync.Once + file_sift_user_attributes_v1_user_attributes_proto_rawDescData = file_sift_user_attributes_v1_user_attributes_proto_rawDesc +) + +func file_sift_user_attributes_v1_user_attributes_proto_rawDescGZIP() []byte { + file_sift_user_attributes_v1_user_attributes_proto_rawDescOnce.Do(func() { + file_sift_user_attributes_v1_user_attributes_proto_rawDescData = protoimpl.X.CompressGZIP(file_sift_user_attributes_v1_user_attributes_proto_rawDescData) + }) + return file_sift_user_attributes_v1_user_attributes_proto_rawDescData +} + +var file_sift_user_attributes_v1_user_attributes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_sift_user_attributes_v1_user_attributes_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_sift_user_attributes_v1_user_attributes_proto_goTypes = []interface{}{ + (UserAttributeValueType)(0), // 0: sift.user_attributes.v1.UserAttributeValueType + (*UserAttributeKey)(nil), // 1: sift.user_attributes.v1.UserAttributeKey + (*CreateUserAttributeKeyRequest)(nil), // 2: sift.user_attributes.v1.CreateUserAttributeKeyRequest + (*CreateUserAttributeKeyResponse)(nil), // 3: sift.user_attributes.v1.CreateUserAttributeKeyResponse + (*UpdateUserAttributeKeyRequest)(nil), // 4: sift.user_attributes.v1.UpdateUserAttributeKeyRequest + (*UpdateUserAttributeKeyResponse)(nil), // 5: sift.user_attributes.v1.UpdateUserAttributeKeyResponse + (*GetUserAttributeKeyRequest)(nil), // 6: sift.user_attributes.v1.GetUserAttributeKeyRequest + (*GetUserAttributeKeyResponse)(nil), // 7: sift.user_attributes.v1.GetUserAttributeKeyResponse + (*ListUserAttributeKeysRequest)(nil), // 8: sift.user_attributes.v1.ListUserAttributeKeysRequest + (*ListUserAttributeKeysResponse)(nil), // 9: sift.user_attributes.v1.ListUserAttributeKeysResponse + (*ArchiveUserAttributeKeysRequest)(nil), // 10: sift.user_attributes.v1.ArchiveUserAttributeKeysRequest + (*ArchiveUserAttributeKeysResponse)(nil), // 11: sift.user_attributes.v1.ArchiveUserAttributeKeysResponse + (*UnarchiveUserAttributeKeysRequest)(nil), // 12: sift.user_attributes.v1.UnarchiveUserAttributeKeysRequest + (*UnarchiveUserAttributeKeysResponse)(nil), // 13: sift.user_attributes.v1.UnarchiveUserAttributeKeysResponse + (*UserAttributeValue)(nil), // 14: sift.user_attributes.v1.UserAttributeValue + (*CreateUserAttributeValueRequest)(nil), // 15: sift.user_attributes.v1.CreateUserAttributeValueRequest + (*CreateUserAttributeValueResponse)(nil), // 16: sift.user_attributes.v1.CreateUserAttributeValueResponse + (*BatchCreateUserAttributeValueRequest)(nil), // 17: sift.user_attributes.v1.BatchCreateUserAttributeValueRequest + (*BatchCreateUserAttributeValueResponse)(nil), // 18: sift.user_attributes.v1.BatchCreateUserAttributeValueResponse + (*ListUserAttributeKeyValuesRequest)(nil), // 19: sift.user_attributes.v1.ListUserAttributeKeyValuesRequest + (*ListUserAttributeKeyValuesResponse)(nil), // 20: sift.user_attributes.v1.ListUserAttributeKeyValuesResponse + (*ListUserAttributeValuesRequest)(nil), // 21: sift.user_attributes.v1.ListUserAttributeValuesRequest + (*ListUserAttributeValuesResponse)(nil), // 22: sift.user_attributes.v1.ListUserAttributeValuesResponse + (*GetUserAttributeValueRequest)(nil), // 23: sift.user_attributes.v1.GetUserAttributeValueRequest + (*GetUserAttributeValueResponse)(nil), // 24: sift.user_attributes.v1.GetUserAttributeValueResponse + (*ArchiveUserAttributeValuesRequest)(nil), // 25: sift.user_attributes.v1.ArchiveUserAttributeValuesRequest + (*ArchiveUserAttributeValuesResponse)(nil), // 26: sift.user_attributes.v1.ArchiveUserAttributeValuesResponse + (*UnarchiveUserAttributeValuesRequest)(nil), // 27: sift.user_attributes.v1.UnarchiveUserAttributeValuesRequest + (*UnarchiveUserAttributeValuesResponse)(nil), // 28: sift.user_attributes.v1.UnarchiveUserAttributeValuesResponse + (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp + (*fieldmaskpb.FieldMask)(nil), // 30: google.protobuf.FieldMask +} +var file_sift_user_attributes_v1_user_attributes_proto_depIdxs = []int32{ + 0, // 0: sift.user_attributes.v1.UserAttributeKey.type:type_name -> sift.user_attributes.v1.UserAttributeValueType + 29, // 1: sift.user_attributes.v1.UserAttributeKey.created_date:type_name -> google.protobuf.Timestamp + 29, // 2: sift.user_attributes.v1.UserAttributeKey.modified_date:type_name -> google.protobuf.Timestamp + 29, // 3: sift.user_attributes.v1.UserAttributeKey.archived_date:type_name -> google.protobuf.Timestamp + 0, // 4: sift.user_attributes.v1.CreateUserAttributeKeyRequest.type:type_name -> sift.user_attributes.v1.UserAttributeValueType + 1, // 5: sift.user_attributes.v1.CreateUserAttributeKeyResponse.user_attribute_key:type_name -> sift.user_attributes.v1.UserAttributeKey + 30, // 6: sift.user_attributes.v1.UpdateUserAttributeKeyRequest.update_mask:type_name -> google.protobuf.FieldMask + 1, // 7: sift.user_attributes.v1.UpdateUserAttributeKeyResponse.user_attribute_key:type_name -> sift.user_attributes.v1.UserAttributeKey + 1, // 8: sift.user_attributes.v1.GetUserAttributeKeyResponse.user_attribute_key:type_name -> sift.user_attributes.v1.UserAttributeKey + 1, // 9: sift.user_attributes.v1.ListUserAttributeKeysResponse.user_attribute_keys:type_name -> sift.user_attributes.v1.UserAttributeKey + 29, // 10: sift.user_attributes.v1.UserAttributeValue.created_date:type_name -> google.protobuf.Timestamp + 29, // 11: sift.user_attributes.v1.UserAttributeValue.archived_date:type_name -> google.protobuf.Timestamp + 1, // 12: sift.user_attributes.v1.UserAttributeValue.key:type_name -> sift.user_attributes.v1.UserAttributeKey + 14, // 13: sift.user_attributes.v1.CreateUserAttributeValueResponse.user_attribute_value:type_name -> sift.user_attributes.v1.UserAttributeValue + 14, // 14: sift.user_attributes.v1.BatchCreateUserAttributeValueResponse.user_attribute_values:type_name -> sift.user_attributes.v1.UserAttributeValue + 14, // 15: sift.user_attributes.v1.ListUserAttributeKeyValuesResponse.user_attribute_values:type_name -> sift.user_attributes.v1.UserAttributeValue + 14, // 16: sift.user_attributes.v1.ListUserAttributeValuesResponse.user_attribute_values:type_name -> sift.user_attributes.v1.UserAttributeValue + 14, // 17: sift.user_attributes.v1.GetUserAttributeValueResponse.user_attribute_value:type_name -> sift.user_attributes.v1.UserAttributeValue + 2, // 18: sift.user_attributes.v1.UserAttributesService.CreateUserAttributeKey:input_type -> sift.user_attributes.v1.CreateUserAttributeKeyRequest + 6, // 19: sift.user_attributes.v1.UserAttributesService.GetUserAttributeKey:input_type -> sift.user_attributes.v1.GetUserAttributeKeyRequest + 8, // 20: sift.user_attributes.v1.UserAttributesService.ListUserAttributeKeys:input_type -> sift.user_attributes.v1.ListUserAttributeKeysRequest + 4, // 21: sift.user_attributes.v1.UserAttributesService.UpdateUserAttributeKey:input_type -> sift.user_attributes.v1.UpdateUserAttributeKeyRequest + 10, // 22: sift.user_attributes.v1.UserAttributesService.ArchiveUserAttributeKeys:input_type -> sift.user_attributes.v1.ArchiveUserAttributeKeysRequest + 12, // 23: sift.user_attributes.v1.UserAttributesService.UnarchiveUserAttributeKeys:input_type -> sift.user_attributes.v1.UnarchiveUserAttributeKeysRequest + 15, // 24: sift.user_attributes.v1.UserAttributesService.CreateUserAttributeValue:input_type -> sift.user_attributes.v1.CreateUserAttributeValueRequest + 17, // 25: sift.user_attributes.v1.UserAttributesService.BatchCreateUserAttributeValue:input_type -> sift.user_attributes.v1.BatchCreateUserAttributeValueRequest + 23, // 26: sift.user_attributes.v1.UserAttributesService.GetUserAttributeValue:input_type -> sift.user_attributes.v1.GetUserAttributeValueRequest + 19, // 27: sift.user_attributes.v1.UserAttributesService.ListUserAttributeKeyValues:input_type -> sift.user_attributes.v1.ListUserAttributeKeyValuesRequest + 21, // 28: sift.user_attributes.v1.UserAttributesService.ListUserAttributeValues:input_type -> sift.user_attributes.v1.ListUserAttributeValuesRequest + 25, // 29: sift.user_attributes.v1.UserAttributesService.ArchiveUserAttributeValues:input_type -> sift.user_attributes.v1.ArchiveUserAttributeValuesRequest + 27, // 30: sift.user_attributes.v1.UserAttributesService.UnarchiveUserAttributeValues:input_type -> sift.user_attributes.v1.UnarchiveUserAttributeValuesRequest + 3, // 31: sift.user_attributes.v1.UserAttributesService.CreateUserAttributeKey:output_type -> sift.user_attributes.v1.CreateUserAttributeKeyResponse + 7, // 32: sift.user_attributes.v1.UserAttributesService.GetUserAttributeKey:output_type -> sift.user_attributes.v1.GetUserAttributeKeyResponse + 9, // 33: sift.user_attributes.v1.UserAttributesService.ListUserAttributeKeys:output_type -> sift.user_attributes.v1.ListUserAttributeKeysResponse + 5, // 34: sift.user_attributes.v1.UserAttributesService.UpdateUserAttributeKey:output_type -> sift.user_attributes.v1.UpdateUserAttributeKeyResponse + 11, // 35: sift.user_attributes.v1.UserAttributesService.ArchiveUserAttributeKeys:output_type -> sift.user_attributes.v1.ArchiveUserAttributeKeysResponse + 13, // 36: sift.user_attributes.v1.UserAttributesService.UnarchiveUserAttributeKeys:output_type -> sift.user_attributes.v1.UnarchiveUserAttributeKeysResponse + 16, // 37: sift.user_attributes.v1.UserAttributesService.CreateUserAttributeValue:output_type -> sift.user_attributes.v1.CreateUserAttributeValueResponse + 18, // 38: sift.user_attributes.v1.UserAttributesService.BatchCreateUserAttributeValue:output_type -> sift.user_attributes.v1.BatchCreateUserAttributeValueResponse + 24, // 39: sift.user_attributes.v1.UserAttributesService.GetUserAttributeValue:output_type -> sift.user_attributes.v1.GetUserAttributeValueResponse + 20, // 40: sift.user_attributes.v1.UserAttributesService.ListUserAttributeKeyValues:output_type -> sift.user_attributes.v1.ListUserAttributeKeyValuesResponse + 22, // 41: sift.user_attributes.v1.UserAttributesService.ListUserAttributeValues:output_type -> sift.user_attributes.v1.ListUserAttributeValuesResponse + 26, // 42: sift.user_attributes.v1.UserAttributesService.ArchiveUserAttributeValues:output_type -> sift.user_attributes.v1.ArchiveUserAttributeValuesResponse + 28, // 43: sift.user_attributes.v1.UserAttributesService.UnarchiveUserAttributeValues:output_type -> sift.user_attributes.v1.UnarchiveUserAttributeValuesResponse + 31, // [31:44] is the sub-list for method output_type + 18, // [18:31] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name +} + +func init() { file_sift_user_attributes_v1_user_attributes_proto_init() } +func file_sift_user_attributes_v1_user_attributes_proto_init() { + if File_sift_user_attributes_v1_user_attributes_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserAttributeKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUserAttributeKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUserAttributeKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserAttributeKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserAttributeKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserAttributeKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserAttributeKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserAttributeKeysRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserAttributeKeysResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveUserAttributeKeysRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveUserAttributeKeysResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnarchiveUserAttributeKeysRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnarchiveUserAttributeKeysResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserAttributeValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUserAttributeValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUserAttributeValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateUserAttributeValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateUserAttributeValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserAttributeKeyValuesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserAttributeKeyValuesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserAttributeValuesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserAttributeValuesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserAttributeValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserAttributeValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveUserAttributeValuesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchiveUserAttributeValuesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnarchiveUserAttributeValuesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnarchiveUserAttributeValuesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[13].OneofWrappers = []interface{}{ + (*UserAttributeValue_StringValue)(nil), + (*UserAttributeValue_NumberValue)(nil), + (*UserAttributeValue_BooleanValue)(nil), + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[14].OneofWrappers = []interface{}{ + (*CreateUserAttributeValueRequest_StringValue)(nil), + (*CreateUserAttributeValueRequest_NumberValue)(nil), + (*CreateUserAttributeValueRequest_BooleanValue)(nil), + } + file_sift_user_attributes_v1_user_attributes_proto_msgTypes[16].OneofWrappers = []interface{}{ + (*BatchCreateUserAttributeValueRequest_StringValue)(nil), + (*BatchCreateUserAttributeValueRequest_NumberValue)(nil), + (*BatchCreateUserAttributeValueRequest_BooleanValue)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_sift_user_attributes_v1_user_attributes_proto_rawDesc, + NumEnums: 1, + NumMessages: 28, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_sift_user_attributes_v1_user_attributes_proto_goTypes, + DependencyIndexes: file_sift_user_attributes_v1_user_attributes_proto_depIdxs, + EnumInfos: file_sift_user_attributes_v1_user_attributes_proto_enumTypes, + MessageInfos: file_sift_user_attributes_v1_user_attributes_proto_msgTypes, + }.Build() + File_sift_user_attributes_v1_user_attributes_proto = out.File + file_sift_user_attributes_v1_user_attributes_proto_rawDesc = nil + file_sift_user_attributes_v1_user_attributes_proto_goTypes = nil + file_sift_user_attributes_v1_user_attributes_proto_depIdxs = nil +} diff --git a/go/gen/sift/user_attributes/v1/user_attributes.pb.gw.go b/go/gen/sift/user_attributes/v1/user_attributes.pb.gw.go new file mode 100644 index 000000000..194886217 --- /dev/null +++ b/go/gen/sift/user_attributes/v1/user_attributes.pb.gw.go @@ -0,0 +1,1301 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: sift/user_attributes/v1/user_attributes.proto + +/* +Package user_attributesv1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package user_attributesv1 + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_UserAttributesService_CreateUserAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateUserAttributeKeyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateUserAttributeKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_CreateUserAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateUserAttributeKeyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateUserAttributeKey(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAttributesService_GetUserAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetUserAttributeKeyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_attribute_key_id") + } + + protoReq.UserAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_attribute_key_id", err) + } + + msg, err := client.GetUserAttributeKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_GetUserAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetUserAttributeKeyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_attribute_key_id") + } + + protoReq.UserAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_attribute_key_id", err) + } + + msg, err := server.GetUserAttributeKey(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_UserAttributesService_ListUserAttributeKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_UserAttributesService_ListUserAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListUserAttributeKeysRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAttributesService_ListUserAttributeKeys_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListUserAttributeKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_ListUserAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListUserAttributeKeysRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAttributesService_ListUserAttributeKeys_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListUserAttributeKeys(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAttributesService_UpdateUserAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateUserAttributeKeyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_attribute_key_id") + } + + protoReq.UserAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_attribute_key_id", err) + } + + msg, err := client.UpdateUserAttributeKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_UpdateUserAttributeKey_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateUserAttributeKeyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_attribute_key_id") + } + + protoReq.UserAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_attribute_key_id", err) + } + + msg, err := server.UpdateUserAttributeKey(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAttributesService_ArchiveUserAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchiveUserAttributeKeysRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ArchiveUserAttributeKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_ArchiveUserAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchiveUserAttributeKeysRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ArchiveUserAttributeKeys(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAttributesService_UnarchiveUserAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UnarchiveUserAttributeKeysRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UnarchiveUserAttributeKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_UnarchiveUserAttributeKeys_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UnarchiveUserAttributeKeysRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UnarchiveUserAttributeKeys(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAttributesService_CreateUserAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateUserAttributeValueRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateUserAttributeValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_CreateUserAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateUserAttributeValueRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateUserAttributeValue(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAttributesService_BatchCreateUserAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchCreateUserAttributeValueRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.BatchCreateUserAttributeValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_BatchCreateUserAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BatchCreateUserAttributeValueRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.BatchCreateUserAttributeValue(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAttributesService_GetUserAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetUserAttributeValueRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_attribute_value_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_attribute_value_id") + } + + protoReq.UserAttributeValueId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_attribute_value_id", err) + } + + msg, err := client.GetUserAttributeValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_GetUserAttributeValue_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetUserAttributeValueRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_attribute_value_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_attribute_value_id") + } + + protoReq.UserAttributeValueId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_attribute_value_id", err) + } + + msg, err := server.GetUserAttributeValue(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_UserAttributesService_ListUserAttributeKeyValues_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_attribute_key_id": 0, "userAttributeKeyId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_UserAttributesService_ListUserAttributeKeyValues_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListUserAttributeKeyValuesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_attribute_key_id") + } + + protoReq.UserAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_attribute_key_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAttributesService_ListUserAttributeKeyValues_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListUserAttributeKeyValues(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_ListUserAttributeKeyValues_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListUserAttributeKeyValuesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_attribute_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_attribute_key_id") + } + + protoReq.UserAttributeKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_attribute_key_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAttributesService_ListUserAttributeKeyValues_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListUserAttributeKeyValues(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_UserAttributesService_ListUserAttributeValues_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_UserAttributesService_ListUserAttributeValues_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListUserAttributeValuesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAttributesService_ListUserAttributeValues_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListUserAttributeValues(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_ListUserAttributeValues_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListUserAttributeValuesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAttributesService_ListUserAttributeValues_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListUserAttributeValues(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAttributesService_ArchiveUserAttributeValues_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchiveUserAttributeValuesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ArchiveUserAttributeValues(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_ArchiveUserAttributeValues_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ArchiveUserAttributeValuesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ArchiveUserAttributeValues(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAttributesService_UnarchiveUserAttributeValues_0(ctx context.Context, marshaler runtime.Marshaler, client UserAttributesServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UnarchiveUserAttributeValuesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UnarchiveUserAttributeValues(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAttributesService_UnarchiveUserAttributeValues_0(ctx context.Context, marshaler runtime.Marshaler, server UserAttributesServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UnarchiveUserAttributeValuesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UnarchiveUserAttributeValues(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterUserAttributesServiceHandlerServer registers the http handlers for service UserAttributesService to "mux". +// UnaryRPC :call UserAttributesServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserAttributesServiceHandlerFromEndpoint instead. +func RegisterUserAttributesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserAttributesServiceServer) error { + + mux.Handle("POST", pattern_UserAttributesService_CreateUserAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeKey", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_CreateUserAttributeKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_CreateUserAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAttributesService_GetUserAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeKey", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys/{user_attribute_key_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_GetUserAttributeKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_GetUserAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAttributesService_ListUserAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_ListUserAttributeKeys_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_ListUserAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_UserAttributesService_UpdateUserAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/UpdateUserAttributeKey", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys/{user_attribute_key_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_UpdateUserAttributeKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_UpdateUserAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_ArchiveUserAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_ArchiveUserAttributeKeys_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_ArchiveUserAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_UnarchiveUserAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys/unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_UnarchiveUserAttributeKeys_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_UnarchiveUserAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_CreateUserAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeValue", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_CreateUserAttributeValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_CreateUserAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_BatchCreateUserAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/BatchCreateUserAttributeValue", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values/batch")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_BatchCreateUserAttributeValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_BatchCreateUserAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAttributesService_GetUserAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeValue", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values/{user_attribute_value_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_GetUserAttributeValue_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_GetUserAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAttributesService_ListUserAttributeKeyValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeyValues", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys/{user_attribute_key_id}/user-attribute-values")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_ListUserAttributeKeyValues_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_ListUserAttributeKeyValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAttributesService_ListUserAttributeValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeValues", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_ListUserAttributeValues_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_ListUserAttributeValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_ArchiveUserAttributeValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeValues", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_ArchiveUserAttributeValues_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_ArchiveUserAttributeValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_UnarchiveUserAttributeValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeValues", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values/unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAttributesService_UnarchiveUserAttributeValues_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_UnarchiveUserAttributeValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterUserAttributesServiceHandlerFromEndpoint is same as RegisterUserAttributesServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterUserAttributesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterUserAttributesServiceHandler(ctx, mux, conn) +} + +// RegisterUserAttributesServiceHandler registers the http handlers for service UserAttributesService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterUserAttributesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterUserAttributesServiceHandlerClient(ctx, mux, NewUserAttributesServiceClient(conn)) +} + +// RegisterUserAttributesServiceHandlerClient registers the http handlers for service UserAttributesService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserAttributesServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserAttributesServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "UserAttributesServiceClient" to call the correct interceptors. +func RegisterUserAttributesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserAttributesServiceClient) error { + + mux.Handle("POST", pattern_UserAttributesService_CreateUserAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeKey", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_CreateUserAttributeKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_CreateUserAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAttributesService_GetUserAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeKey", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys/{user_attribute_key_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_GetUserAttributeKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_GetUserAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAttributesService_ListUserAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_ListUserAttributeKeys_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_ListUserAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_UserAttributesService_UpdateUserAttributeKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/UpdateUserAttributeKey", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys/{user_attribute_key_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_UpdateUserAttributeKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_UpdateUserAttributeKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_ArchiveUserAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_ArchiveUserAttributeKeys_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_ArchiveUserAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_UnarchiveUserAttributeKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeKeys", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys/unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_UnarchiveUserAttributeKeys_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_UnarchiveUserAttributeKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_CreateUserAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeValue", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_CreateUserAttributeValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_CreateUserAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_BatchCreateUserAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/BatchCreateUserAttributeValue", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values/batch")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_BatchCreateUserAttributeValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_BatchCreateUserAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAttributesService_GetUserAttributeValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeValue", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values/{user_attribute_value_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_GetUserAttributeValue_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_GetUserAttributeValue_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAttributesService_ListUserAttributeKeyValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeyValues", runtime.WithHTTPPathPattern("/api/v1/user-attribute-keys/{user_attribute_key_id}/user-attribute-values")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_ListUserAttributeKeyValues_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_ListUserAttributeKeyValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAttributesService_ListUserAttributeValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeValues", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_ListUserAttributeValues_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_ListUserAttributeValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_ArchiveUserAttributeValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeValues", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values/archive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_ArchiveUserAttributeValues_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_ArchiveUserAttributeValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAttributesService_UnarchiveUserAttributeValues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeValues", runtime.WithHTTPPathPattern("/api/v1/user-attribute-values/unarchive")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAttributesService_UnarchiveUserAttributeValues_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAttributesService_UnarchiveUserAttributeValues_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_UserAttributesService_CreateUserAttributeKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "user-attribute-keys"}, "")) + + pattern_UserAttributesService_GetUserAttributeKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "user-attribute-keys", "user_attribute_key_id"}, "")) + + pattern_UserAttributesService_ListUserAttributeKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "user-attribute-keys"}, "")) + + pattern_UserAttributesService_UpdateUserAttributeKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "user-attribute-keys", "user_attribute_key_id"}, "")) + + pattern_UserAttributesService_ArchiveUserAttributeKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "user-attribute-keys", "archive"}, "")) + + pattern_UserAttributesService_UnarchiveUserAttributeKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "user-attribute-keys", "unarchive"}, "")) + + pattern_UserAttributesService_CreateUserAttributeValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "user-attribute-values"}, "")) + + pattern_UserAttributesService_BatchCreateUserAttributeValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "user-attribute-values", "batch"}, "")) + + pattern_UserAttributesService_GetUserAttributeValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "user-attribute-values", "user_attribute_value_id"}, "")) + + pattern_UserAttributesService_ListUserAttributeKeyValues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "user-attribute-keys", "user_attribute_key_id", "user-attribute-values"}, "")) + + pattern_UserAttributesService_ListUserAttributeValues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "user-attribute-values"}, "")) + + pattern_UserAttributesService_ArchiveUserAttributeValues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "user-attribute-values", "archive"}, "")) + + pattern_UserAttributesService_UnarchiveUserAttributeValues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "user-attribute-values", "unarchive"}, "")) +) + +var ( + forward_UserAttributesService_CreateUserAttributeKey_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_GetUserAttributeKey_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_ListUserAttributeKeys_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_UpdateUserAttributeKey_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_ArchiveUserAttributeKeys_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_UnarchiveUserAttributeKeys_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_CreateUserAttributeValue_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_BatchCreateUserAttributeValue_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_GetUserAttributeValue_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_ListUserAttributeKeyValues_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_ListUserAttributeValues_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_ArchiveUserAttributeValues_0 = runtime.ForwardResponseMessage + + forward_UserAttributesService_UnarchiveUserAttributeValues_0 = runtime.ForwardResponseMessage +) diff --git a/go/gen/sift/user_attributes/v1/user_attributes_vtproto.pb.go b/go/gen/sift/user_attributes/v1/user_attributes_vtproto.pb.go new file mode 100644 index 000000000..0771aa020 --- /dev/null +++ b/go/gen/sift/user_attributes/v1/user_attributes_vtproto.pb.go @@ -0,0 +1,13501 @@ +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.6.0 +// source: sift/user_attributes/v1/user_attributes.proto + +package user_attributesv1 + +import ( + context "context" + binary "encoding/binary" + fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" + fieldmaskpb1 "github.com/planetscale/vtprotobuf/types/known/fieldmaskpb" + timestamppb1 "github.com/planetscale/vtprotobuf/types/known/timestamppb" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + proto "google.golang.org/protobuf/proto" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +func (m *UserAttributeKey) CloneVT() *UserAttributeKey { + if m == nil { + return (*UserAttributeKey)(nil) + } + r := new(UserAttributeKey) + r.UserAttributeKeyId = m.UserAttributeKeyId + r.OrganizationId = m.OrganizationId + r.Name = m.Name + r.Description = m.Description + r.Type = m.Type + r.CreatedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.CreatedDate).CloneVT()) + r.CreatedByUserId = m.CreatedByUserId + r.ModifiedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.ModifiedDate).CloneVT()) + r.ModifiedByUserId = m.ModifiedByUserId + r.ArchivedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.ArchivedDate).CloneVT()) + r.IsArchived = m.IsArchived + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UserAttributeKey) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreateUserAttributeKeyRequest) CloneVT() *CreateUserAttributeKeyRequest { + if m == nil { + return (*CreateUserAttributeKeyRequest)(nil) + } + r := new(CreateUserAttributeKeyRequest) + r.Name = m.Name + r.Description = m.Description + r.Type = m.Type + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreateUserAttributeKeyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreateUserAttributeKeyResponse) CloneVT() *CreateUserAttributeKeyResponse { + if m == nil { + return (*CreateUserAttributeKeyResponse)(nil) + } + r := new(CreateUserAttributeKeyResponse) + r.UserAttributeKey = m.UserAttributeKey.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreateUserAttributeKeyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UpdateUserAttributeKeyRequest) CloneVT() *UpdateUserAttributeKeyRequest { + if m == nil { + return (*UpdateUserAttributeKeyRequest)(nil) + } + r := new(UpdateUserAttributeKeyRequest) + r.UserAttributeKeyId = m.UserAttributeKeyId + r.Name = m.Name + r.Description = m.Description + r.UpdateMask = (*fieldmaskpb.FieldMask)((*fieldmaskpb1.FieldMask)(m.UpdateMask).CloneVT()) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UpdateUserAttributeKeyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UpdateUserAttributeKeyResponse) CloneVT() *UpdateUserAttributeKeyResponse { + if m == nil { + return (*UpdateUserAttributeKeyResponse)(nil) + } + r := new(UpdateUserAttributeKeyResponse) + r.UserAttributeKey = m.UserAttributeKey.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UpdateUserAttributeKeyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetUserAttributeKeyRequest) CloneVT() *GetUserAttributeKeyRequest { + if m == nil { + return (*GetUserAttributeKeyRequest)(nil) + } + r := new(GetUserAttributeKeyRequest) + r.UserAttributeKeyId = m.UserAttributeKeyId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetUserAttributeKeyRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetUserAttributeKeyResponse) CloneVT() *GetUserAttributeKeyResponse { + if m == nil { + return (*GetUserAttributeKeyResponse)(nil) + } + r := new(GetUserAttributeKeyResponse) + r.UserAttributeKey = m.UserAttributeKey.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetUserAttributeKeyResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListUserAttributeKeysRequest) CloneVT() *ListUserAttributeKeysRequest { + if m == nil { + return (*ListUserAttributeKeysRequest)(nil) + } + r := new(ListUserAttributeKeysRequest) + r.PageSize = m.PageSize + r.PageToken = m.PageToken + r.Filter = m.Filter + r.OrderBy = m.OrderBy + r.OrganizationId = m.OrganizationId + r.IncludeArchived = m.IncludeArchived + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListUserAttributeKeysRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListUserAttributeKeysResponse) CloneVT() *ListUserAttributeKeysResponse { + if m == nil { + return (*ListUserAttributeKeysResponse)(nil) + } + r := new(ListUserAttributeKeysResponse) + r.NextPageToken = m.NextPageToken + if rhs := m.UserAttributeKeys; rhs != nil { + tmpContainer := make([]*UserAttributeKey, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.UserAttributeKeys = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListUserAttributeKeysResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchiveUserAttributeKeysRequest) CloneVT() *ArchiveUserAttributeKeysRequest { + if m == nil { + return (*ArchiveUserAttributeKeysRequest)(nil) + } + r := new(ArchiveUserAttributeKeysRequest) + if rhs := m.UserAttributeKeyIds; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.UserAttributeKeyIds = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchiveUserAttributeKeysRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchiveUserAttributeKeysResponse) CloneVT() *ArchiveUserAttributeKeysResponse { + if m == nil { + return (*ArchiveUserAttributeKeysResponse)(nil) + } + r := new(ArchiveUserAttributeKeysResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchiveUserAttributeKeysResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UnarchiveUserAttributeKeysRequest) CloneVT() *UnarchiveUserAttributeKeysRequest { + if m == nil { + return (*UnarchiveUserAttributeKeysRequest)(nil) + } + r := new(UnarchiveUserAttributeKeysRequest) + if rhs := m.UserAttributeKeyIds; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.UserAttributeKeyIds = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UnarchiveUserAttributeKeysRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UnarchiveUserAttributeKeysResponse) CloneVT() *UnarchiveUserAttributeKeysResponse { + if m == nil { + return (*UnarchiveUserAttributeKeysResponse)(nil) + } + r := new(UnarchiveUserAttributeKeysResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UnarchiveUserAttributeKeysResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UserAttributeValue) CloneVT() *UserAttributeValue { + if m == nil { + return (*UserAttributeValue)(nil) + } + r := new(UserAttributeValue) + r.UserAttributeValueId = m.UserAttributeValueId + r.UserAttributeKeyId = m.UserAttributeKeyId + r.UserId = m.UserId + r.OrganizationId = m.OrganizationId + r.CreatedByUserId = m.CreatedByUserId + r.CreatedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.CreatedDate).CloneVT()) + r.ArchivedDate = (*timestamppb.Timestamp)((*timestamppb1.Timestamp)(m.ArchivedDate).CloneVT()) + r.IsArchived = m.IsArchived + r.Key = m.Key.CloneVT() + if m.Value != nil { + r.Value = m.Value.(interface { + CloneVT() isUserAttributeValue_Value + }).CloneVT() + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UserAttributeValue) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UserAttributeValue_StringValue) CloneVT() isUserAttributeValue_Value { + if m == nil { + return (*UserAttributeValue_StringValue)(nil) + } + r := new(UserAttributeValue_StringValue) + r.StringValue = m.StringValue + return r +} + +func (m *UserAttributeValue_NumberValue) CloneVT() isUserAttributeValue_Value { + if m == nil { + return (*UserAttributeValue_NumberValue)(nil) + } + r := new(UserAttributeValue_NumberValue) + r.NumberValue = m.NumberValue + return r +} + +func (m *UserAttributeValue_BooleanValue) CloneVT() isUserAttributeValue_Value { + if m == nil { + return (*UserAttributeValue_BooleanValue)(nil) + } + r := new(UserAttributeValue_BooleanValue) + r.BooleanValue = m.BooleanValue + return r +} + +func (m *CreateUserAttributeValueRequest) CloneVT() *CreateUserAttributeValueRequest { + if m == nil { + return (*CreateUserAttributeValueRequest)(nil) + } + r := new(CreateUserAttributeValueRequest) + r.UserAttributeKeyId = m.UserAttributeKeyId + r.UserId = m.UserId + if m.Value != nil { + r.Value = m.Value.(interface { + CloneVT() isCreateUserAttributeValueRequest_Value + }).CloneVT() + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreateUserAttributeValueRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *CreateUserAttributeValueRequest_StringValue) CloneVT() isCreateUserAttributeValueRequest_Value { + if m == nil { + return (*CreateUserAttributeValueRequest_StringValue)(nil) + } + r := new(CreateUserAttributeValueRequest_StringValue) + r.StringValue = m.StringValue + return r +} + +func (m *CreateUserAttributeValueRequest_NumberValue) CloneVT() isCreateUserAttributeValueRequest_Value { + if m == nil { + return (*CreateUserAttributeValueRequest_NumberValue)(nil) + } + r := new(CreateUserAttributeValueRequest_NumberValue) + r.NumberValue = m.NumberValue + return r +} + +func (m *CreateUserAttributeValueRequest_BooleanValue) CloneVT() isCreateUserAttributeValueRequest_Value { + if m == nil { + return (*CreateUserAttributeValueRequest_BooleanValue)(nil) + } + r := new(CreateUserAttributeValueRequest_BooleanValue) + r.BooleanValue = m.BooleanValue + return r +} + +func (m *CreateUserAttributeValueResponse) CloneVT() *CreateUserAttributeValueResponse { + if m == nil { + return (*CreateUserAttributeValueResponse)(nil) + } + r := new(CreateUserAttributeValueResponse) + r.UserAttributeValue = m.UserAttributeValue.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *CreateUserAttributeValueResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchCreateUserAttributeValueRequest) CloneVT() *BatchCreateUserAttributeValueRequest { + if m == nil { + return (*BatchCreateUserAttributeValueRequest)(nil) + } + r := new(BatchCreateUserAttributeValueRequest) + r.UserAttributeKeyId = m.UserAttributeKeyId + if rhs := m.UserIds; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.UserIds = tmpContainer + } + if m.Value != nil { + r.Value = m.Value.(interface { + CloneVT() isBatchCreateUserAttributeValueRequest_Value + }).CloneVT() + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchCreateUserAttributeValueRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *BatchCreateUserAttributeValueRequest_StringValue) CloneVT() isBatchCreateUserAttributeValueRequest_Value { + if m == nil { + return (*BatchCreateUserAttributeValueRequest_StringValue)(nil) + } + r := new(BatchCreateUserAttributeValueRequest_StringValue) + r.StringValue = m.StringValue + return r +} + +func (m *BatchCreateUserAttributeValueRequest_NumberValue) CloneVT() isBatchCreateUserAttributeValueRequest_Value { + if m == nil { + return (*BatchCreateUserAttributeValueRequest_NumberValue)(nil) + } + r := new(BatchCreateUserAttributeValueRequest_NumberValue) + r.NumberValue = m.NumberValue + return r +} + +func (m *BatchCreateUserAttributeValueRequest_BooleanValue) CloneVT() isBatchCreateUserAttributeValueRequest_Value { + if m == nil { + return (*BatchCreateUserAttributeValueRequest_BooleanValue)(nil) + } + r := new(BatchCreateUserAttributeValueRequest_BooleanValue) + r.BooleanValue = m.BooleanValue + return r +} + +func (m *BatchCreateUserAttributeValueResponse) CloneVT() *BatchCreateUserAttributeValueResponse { + if m == nil { + return (*BatchCreateUserAttributeValueResponse)(nil) + } + r := new(BatchCreateUserAttributeValueResponse) + if rhs := m.UserAttributeValues; rhs != nil { + tmpContainer := make([]*UserAttributeValue, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.UserAttributeValues = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *BatchCreateUserAttributeValueResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListUserAttributeKeyValuesRequest) CloneVT() *ListUserAttributeKeyValuesRequest { + if m == nil { + return (*ListUserAttributeKeyValuesRequest)(nil) + } + r := new(ListUserAttributeKeyValuesRequest) + r.UserAttributeKeyId = m.UserAttributeKeyId + r.PageSize = m.PageSize + r.PageToken = m.PageToken + r.Filter = m.Filter + r.OrderBy = m.OrderBy + r.IncludeArchived = m.IncludeArchived + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListUserAttributeKeyValuesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListUserAttributeKeyValuesResponse) CloneVT() *ListUserAttributeKeyValuesResponse { + if m == nil { + return (*ListUserAttributeKeyValuesResponse)(nil) + } + r := new(ListUserAttributeKeyValuesResponse) + r.NextPageToken = m.NextPageToken + if rhs := m.UserAttributeValues; rhs != nil { + tmpContainer := make([]*UserAttributeValue, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.UserAttributeValues = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListUserAttributeKeyValuesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListUserAttributeValuesRequest) CloneVT() *ListUserAttributeValuesRequest { + if m == nil { + return (*ListUserAttributeValuesRequest)(nil) + } + r := new(ListUserAttributeValuesRequest) + r.PageSize = m.PageSize + r.PageToken = m.PageToken + r.Filter = m.Filter + r.OrderBy = m.OrderBy + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListUserAttributeValuesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ListUserAttributeValuesResponse) CloneVT() *ListUserAttributeValuesResponse { + if m == nil { + return (*ListUserAttributeValuesResponse)(nil) + } + r := new(ListUserAttributeValuesResponse) + r.NextPageToken = m.NextPageToken + if rhs := m.UserAttributeValues; rhs != nil { + tmpContainer := make([]*UserAttributeValue, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.UserAttributeValues = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ListUserAttributeValuesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetUserAttributeValueRequest) CloneVT() *GetUserAttributeValueRequest { + if m == nil { + return (*GetUserAttributeValueRequest)(nil) + } + r := new(GetUserAttributeValueRequest) + r.UserAttributeValueId = m.UserAttributeValueId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetUserAttributeValueRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *GetUserAttributeValueResponse) CloneVT() *GetUserAttributeValueResponse { + if m == nil { + return (*GetUserAttributeValueResponse)(nil) + } + r := new(GetUserAttributeValueResponse) + r.UserAttributeValue = m.UserAttributeValue.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *GetUserAttributeValueResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchiveUserAttributeValuesRequest) CloneVT() *ArchiveUserAttributeValuesRequest { + if m == nil { + return (*ArchiveUserAttributeValuesRequest)(nil) + } + r := new(ArchiveUserAttributeValuesRequest) + if rhs := m.UserAttributeValueIds; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.UserAttributeValueIds = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchiveUserAttributeValuesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ArchiveUserAttributeValuesResponse) CloneVT() *ArchiveUserAttributeValuesResponse { + if m == nil { + return (*ArchiveUserAttributeValuesResponse)(nil) + } + r := new(ArchiveUserAttributeValuesResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ArchiveUserAttributeValuesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UnarchiveUserAttributeValuesRequest) CloneVT() *UnarchiveUserAttributeValuesRequest { + if m == nil { + return (*UnarchiveUserAttributeValuesRequest)(nil) + } + r := new(UnarchiveUserAttributeValuesRequest) + if rhs := m.UserAttributeValueIds; rhs != nil { + tmpContainer := make([]string, len(rhs)) + copy(tmpContainer, rhs) + r.UserAttributeValueIds = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UnarchiveUserAttributeValuesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UnarchiveUserAttributeValuesResponse) CloneVT() *UnarchiveUserAttributeValuesResponse { + if m == nil { + return (*UnarchiveUserAttributeValuesResponse)(nil) + } + r := new(UnarchiveUserAttributeValuesResponse) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UnarchiveUserAttributeValuesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (this *UserAttributeKey) EqualVT(that *UserAttributeKey) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.UserAttributeKeyId != that.UserAttributeKeyId { + return false + } + if this.OrganizationId != that.OrganizationId { + return false + } + if this.Name != that.Name { + return false + } + if this.Description != that.Description { + return false + } + if this.Type != that.Type { + return false + } + if !(*timestamppb1.Timestamp)(this.CreatedDate).EqualVT((*timestamppb1.Timestamp)(that.CreatedDate)) { + return false + } + if this.CreatedByUserId != that.CreatedByUserId { + return false + } + if !(*timestamppb1.Timestamp)(this.ModifiedDate).EqualVT((*timestamppb1.Timestamp)(that.ModifiedDate)) { + return false + } + if this.ModifiedByUserId != that.ModifiedByUserId { + return false + } + if !(*timestamppb1.Timestamp)(this.ArchivedDate).EqualVT((*timestamppb1.Timestamp)(that.ArchivedDate)) { + return false + } + if this.IsArchived != that.IsArchived { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UserAttributeKey) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UserAttributeKey) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreateUserAttributeKeyRequest) EqualVT(that *CreateUserAttributeKeyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Name != that.Name { + return false + } + if this.Description != that.Description { + return false + } + if this.Type != that.Type { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreateUserAttributeKeyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreateUserAttributeKeyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreateUserAttributeKeyResponse) EqualVT(that *CreateUserAttributeKeyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.UserAttributeKey.EqualVT(that.UserAttributeKey) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreateUserAttributeKeyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreateUserAttributeKeyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UpdateUserAttributeKeyRequest) EqualVT(that *UpdateUserAttributeKeyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.UserAttributeKeyId != that.UserAttributeKeyId { + return false + } + if this.Name != that.Name { + return false + } + if this.Description != that.Description { + return false + } + if !(*fieldmaskpb1.FieldMask)(this.UpdateMask).EqualVT((*fieldmaskpb1.FieldMask)(that.UpdateMask)) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UpdateUserAttributeKeyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UpdateUserAttributeKeyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UpdateUserAttributeKeyResponse) EqualVT(that *UpdateUserAttributeKeyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.UserAttributeKey.EqualVT(that.UserAttributeKey) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UpdateUserAttributeKeyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UpdateUserAttributeKeyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetUserAttributeKeyRequest) EqualVT(that *GetUserAttributeKeyRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.UserAttributeKeyId != that.UserAttributeKeyId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetUserAttributeKeyRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetUserAttributeKeyRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetUserAttributeKeyResponse) EqualVT(that *GetUserAttributeKeyResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.UserAttributeKey.EqualVT(that.UserAttributeKey) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetUserAttributeKeyResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetUserAttributeKeyResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListUserAttributeKeysRequest) EqualVT(that *ListUserAttributeKeysRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PageSize != that.PageSize { + return false + } + if this.PageToken != that.PageToken { + return false + } + if this.Filter != that.Filter { + return false + } + if this.OrderBy != that.OrderBy { + return false + } + if this.OrganizationId != that.OrganizationId { + return false + } + if this.IncludeArchived != that.IncludeArchived { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListUserAttributeKeysRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListUserAttributeKeysRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListUserAttributeKeysResponse) EqualVT(that *ListUserAttributeKeysResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.UserAttributeKeys) != len(that.UserAttributeKeys) { + return false + } + for i, vx := range this.UserAttributeKeys { + vy := that.UserAttributeKeys[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &UserAttributeKey{} + } + if q == nil { + q = &UserAttributeKey{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.NextPageToken != that.NextPageToken { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListUserAttributeKeysResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListUserAttributeKeysResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchiveUserAttributeKeysRequest) EqualVT(that *ArchiveUserAttributeKeysRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.UserAttributeKeyIds) != len(that.UserAttributeKeyIds) { + return false + } + for i, vx := range this.UserAttributeKeyIds { + vy := that.UserAttributeKeyIds[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchiveUserAttributeKeysRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchiveUserAttributeKeysRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchiveUserAttributeKeysResponse) EqualVT(that *ArchiveUserAttributeKeysResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchiveUserAttributeKeysResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchiveUserAttributeKeysResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UnarchiveUserAttributeKeysRequest) EqualVT(that *UnarchiveUserAttributeKeysRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.UserAttributeKeyIds) != len(that.UserAttributeKeyIds) { + return false + } + for i, vx := range this.UserAttributeKeyIds { + vy := that.UserAttributeKeyIds[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UnarchiveUserAttributeKeysRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UnarchiveUserAttributeKeysRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UnarchiveUserAttributeKeysResponse) EqualVT(that *UnarchiveUserAttributeKeysResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UnarchiveUserAttributeKeysResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UnarchiveUserAttributeKeysResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UserAttributeValue) EqualVT(that *UserAttributeValue) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Value == nil && that.Value != nil { + return false + } else if this.Value != nil { + if that.Value == nil { + return false + } + if !this.Value.(interface { + EqualVT(isUserAttributeValue_Value) bool + }).EqualVT(that.Value) { + return false + } + } + if this.UserAttributeValueId != that.UserAttributeValueId { + return false + } + if this.UserAttributeKeyId != that.UserAttributeKeyId { + return false + } + if this.UserId != that.UserId { + return false + } + if this.OrganizationId != that.OrganizationId { + return false + } + if this.CreatedByUserId != that.CreatedByUserId { + return false + } + if !(*timestamppb1.Timestamp)(this.CreatedDate).EqualVT((*timestamppb1.Timestamp)(that.CreatedDate)) { + return false + } + if !(*timestamppb1.Timestamp)(this.ArchivedDate).EqualVT((*timestamppb1.Timestamp)(that.ArchivedDate)) { + return false + } + if this.IsArchived != that.IsArchived { + return false + } + if !this.Key.EqualVT(that.Key) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UserAttributeValue) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UserAttributeValue) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UserAttributeValue_StringValue) EqualVT(thatIface isUserAttributeValue_Value) bool { + that, ok := thatIface.(*UserAttributeValue_StringValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.StringValue != that.StringValue { + return false + } + return true +} + +func (this *UserAttributeValue_NumberValue) EqualVT(thatIface isUserAttributeValue_Value) bool { + that, ok := thatIface.(*UserAttributeValue_NumberValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.NumberValue != that.NumberValue { + return false + } + return true +} + +func (this *UserAttributeValue_BooleanValue) EqualVT(thatIface isUserAttributeValue_Value) bool { + that, ok := thatIface.(*UserAttributeValue_BooleanValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.BooleanValue != that.BooleanValue { + return false + } + return true +} + +func (this *CreateUserAttributeValueRequest) EqualVT(that *CreateUserAttributeValueRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Value == nil && that.Value != nil { + return false + } else if this.Value != nil { + if that.Value == nil { + return false + } + if !this.Value.(interface { + EqualVT(isCreateUserAttributeValueRequest_Value) bool + }).EqualVT(that.Value) { + return false + } + } + if this.UserAttributeKeyId != that.UserAttributeKeyId { + return false + } + if this.UserId != that.UserId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreateUserAttributeValueRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreateUserAttributeValueRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CreateUserAttributeValueRequest_StringValue) EqualVT(thatIface isCreateUserAttributeValueRequest_Value) bool { + that, ok := thatIface.(*CreateUserAttributeValueRequest_StringValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.StringValue != that.StringValue { + return false + } + return true +} + +func (this *CreateUserAttributeValueRequest_NumberValue) EqualVT(thatIface isCreateUserAttributeValueRequest_Value) bool { + that, ok := thatIface.(*CreateUserAttributeValueRequest_NumberValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.NumberValue != that.NumberValue { + return false + } + return true +} + +func (this *CreateUserAttributeValueRequest_BooleanValue) EqualVT(thatIface isCreateUserAttributeValueRequest_Value) bool { + that, ok := thatIface.(*CreateUserAttributeValueRequest_BooleanValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.BooleanValue != that.BooleanValue { + return false + } + return true +} + +func (this *CreateUserAttributeValueResponse) EqualVT(that *CreateUserAttributeValueResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.UserAttributeValue.EqualVT(that.UserAttributeValue) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CreateUserAttributeValueResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CreateUserAttributeValueResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchCreateUserAttributeValueRequest) EqualVT(that *BatchCreateUserAttributeValueRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Value == nil && that.Value != nil { + return false + } else if this.Value != nil { + if that.Value == nil { + return false + } + if !this.Value.(interface { + EqualVT(isBatchCreateUserAttributeValueRequest_Value) bool + }).EqualVT(that.Value) { + return false + } + } + if this.UserAttributeKeyId != that.UserAttributeKeyId { + return false + } + if len(this.UserIds) != len(that.UserIds) { + return false + } + for i, vx := range this.UserIds { + vy := that.UserIds[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchCreateUserAttributeValueRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchCreateUserAttributeValueRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *BatchCreateUserAttributeValueRequest_StringValue) EqualVT(thatIface isBatchCreateUserAttributeValueRequest_Value) bool { + that, ok := thatIface.(*BatchCreateUserAttributeValueRequest_StringValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.StringValue != that.StringValue { + return false + } + return true +} + +func (this *BatchCreateUserAttributeValueRequest_NumberValue) EqualVT(thatIface isBatchCreateUserAttributeValueRequest_Value) bool { + that, ok := thatIface.(*BatchCreateUserAttributeValueRequest_NumberValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.NumberValue != that.NumberValue { + return false + } + return true +} + +func (this *BatchCreateUserAttributeValueRequest_BooleanValue) EqualVT(thatIface isBatchCreateUserAttributeValueRequest_Value) bool { + that, ok := thatIface.(*BatchCreateUserAttributeValueRequest_BooleanValue) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.BooleanValue != that.BooleanValue { + return false + } + return true +} + +func (this *BatchCreateUserAttributeValueResponse) EqualVT(that *BatchCreateUserAttributeValueResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.UserAttributeValues) != len(that.UserAttributeValues) { + return false + } + for i, vx := range this.UserAttributeValues { + vy := that.UserAttributeValues[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &UserAttributeValue{} + } + if q == nil { + q = &UserAttributeValue{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *BatchCreateUserAttributeValueResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*BatchCreateUserAttributeValueResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListUserAttributeKeyValuesRequest) EqualVT(that *ListUserAttributeKeyValuesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.UserAttributeKeyId != that.UserAttributeKeyId { + return false + } + if this.PageSize != that.PageSize { + return false + } + if this.PageToken != that.PageToken { + return false + } + if this.Filter != that.Filter { + return false + } + if this.OrderBy != that.OrderBy { + return false + } + if this.IncludeArchived != that.IncludeArchived { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListUserAttributeKeyValuesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListUserAttributeKeyValuesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListUserAttributeKeyValuesResponse) EqualVT(that *ListUserAttributeKeyValuesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.UserAttributeValues) != len(that.UserAttributeValues) { + return false + } + for i, vx := range this.UserAttributeValues { + vy := that.UserAttributeValues[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &UserAttributeValue{} + } + if q == nil { + q = &UserAttributeValue{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.NextPageToken != that.NextPageToken { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListUserAttributeKeyValuesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListUserAttributeKeyValuesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListUserAttributeValuesRequest) EqualVT(that *ListUserAttributeValuesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PageSize != that.PageSize { + return false + } + if this.PageToken != that.PageToken { + return false + } + if this.Filter != that.Filter { + return false + } + if this.OrderBy != that.OrderBy { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListUserAttributeValuesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListUserAttributeValuesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ListUserAttributeValuesResponse) EqualVT(that *ListUserAttributeValuesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.UserAttributeValues) != len(that.UserAttributeValues) { + return false + } + for i, vx := range this.UserAttributeValues { + vy := that.UserAttributeValues[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &UserAttributeValue{} + } + if q == nil { + q = &UserAttributeValue{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.NextPageToken != that.NextPageToken { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ListUserAttributeValuesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ListUserAttributeValuesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetUserAttributeValueRequest) EqualVT(that *GetUserAttributeValueRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.UserAttributeValueId != that.UserAttributeValueId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetUserAttributeValueRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetUserAttributeValueRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GetUserAttributeValueResponse) EqualVT(that *GetUserAttributeValueResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.UserAttributeValue.EqualVT(that.UserAttributeValue) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GetUserAttributeValueResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GetUserAttributeValueResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchiveUserAttributeValuesRequest) EqualVT(that *ArchiveUserAttributeValuesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.UserAttributeValueIds) != len(that.UserAttributeValueIds) { + return false + } + for i, vx := range this.UserAttributeValueIds { + vy := that.UserAttributeValueIds[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchiveUserAttributeValuesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchiveUserAttributeValuesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ArchiveUserAttributeValuesResponse) EqualVT(that *ArchiveUserAttributeValuesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ArchiveUserAttributeValuesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ArchiveUserAttributeValuesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UnarchiveUserAttributeValuesRequest) EqualVT(that *UnarchiveUserAttributeValuesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.UserAttributeValueIds) != len(that.UserAttributeValueIds) { + return false + } + for i, vx := range this.UserAttributeValueIds { + vy := that.UserAttributeValueIds[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UnarchiveUserAttributeValuesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UnarchiveUserAttributeValuesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UnarchiveUserAttributeValuesResponse) EqualVT(that *UnarchiveUserAttributeValuesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UnarchiveUserAttributeValuesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UnarchiveUserAttributeValuesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// UserAttributesServiceClient is the client API for UserAttributesService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type UserAttributesServiceClient interface { + // Creates a user attribute key. + CreateUserAttributeKey(ctx context.Context, in *CreateUserAttributeKeyRequest, opts ...grpc.CallOption) (*CreateUserAttributeKeyResponse, error) + // Retrieves a user attribute key. + GetUserAttributeKey(ctx context.Context, in *GetUserAttributeKeyRequest, opts ...grpc.CallOption) (*GetUserAttributeKeyResponse, error) + // Lists user attribute keys, respecting the provided filter. + ListUserAttributeKeys(ctx context.Context, in *ListUserAttributeKeysRequest, opts ...grpc.CallOption) (*ListUserAttributeKeysResponse, error) + // Updates an existing user attribute key. + UpdateUserAttributeKey(ctx context.Context, in *UpdateUserAttributeKeyRequest, opts ...grpc.CallOption) (*UpdateUserAttributeKeyResponse, error) + // Batch archives user attribute keys AND all their associated user attribute values. + ArchiveUserAttributeKeys(ctx context.Context, in *ArchiveUserAttributeKeysRequest, opts ...grpc.CallOption) (*ArchiveUserAttributeKeysResponse, error) + // Batch unarchives user attribute keys. + UnarchiveUserAttributeKeys(ctx context.Context, in *UnarchiveUserAttributeKeysRequest, opts ...grpc.CallOption) (*UnarchiveUserAttributeKeysResponse, error) + // Creates a user attribute value. + CreateUserAttributeValue(ctx context.Context, in *CreateUserAttributeValueRequest, opts ...grpc.CallOption) (*CreateUserAttributeValueResponse, error) + // Creates a user attribute value for multiple users in a single operation. + BatchCreateUserAttributeValue(ctx context.Context, in *BatchCreateUserAttributeValueRequest, opts ...grpc.CallOption) (*BatchCreateUserAttributeValueResponse, error) + // Retrieves a user attribute value. + GetUserAttributeValue(ctx context.Context, in *GetUserAttributeValueRequest, opts ...grpc.CallOption) (*GetUserAttributeValueResponse, error) + // Lists user attribute values for a given user attribute key, respecting the provided filter. + ListUserAttributeKeyValues(ctx context.Context, in *ListUserAttributeKeyValuesRequest, opts ...grpc.CallOption) (*ListUserAttributeKeyValuesResponse, error) + // List user attributes values, respecting the provided filter. + ListUserAttributeValues(ctx context.Context, in *ListUserAttributeValuesRequest, opts ...grpc.CallOption) (*ListUserAttributeValuesResponse, error) + // Batch archives user attribute values. + ArchiveUserAttributeValues(ctx context.Context, in *ArchiveUserAttributeValuesRequest, opts ...grpc.CallOption) (*ArchiveUserAttributeValuesResponse, error) + // Batch unarchives user attribute values. + UnarchiveUserAttributeValues(ctx context.Context, in *UnarchiveUserAttributeValuesRequest, opts ...grpc.CallOption) (*UnarchiveUserAttributeValuesResponse, error) +} + +type userAttributesServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewUserAttributesServiceClient(cc grpc.ClientConnInterface) UserAttributesServiceClient { + return &userAttributesServiceClient{cc} +} + +func (c *userAttributesServiceClient) CreateUserAttributeKey(ctx context.Context, in *CreateUserAttributeKeyRequest, opts ...grpc.CallOption) (*CreateUserAttributeKeyResponse, error) { + out := new(CreateUserAttributeKeyResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) GetUserAttributeKey(ctx context.Context, in *GetUserAttributeKeyRequest, opts ...grpc.CallOption) (*GetUserAttributeKeyResponse, error) { + out := new(GetUserAttributeKeyResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) ListUserAttributeKeys(ctx context.Context, in *ListUserAttributeKeysRequest, opts ...grpc.CallOption) (*ListUserAttributeKeysResponse, error) { + out := new(ListUserAttributeKeysResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) UpdateUserAttributeKey(ctx context.Context, in *UpdateUserAttributeKeyRequest, opts ...grpc.CallOption) (*UpdateUserAttributeKeyResponse, error) { + out := new(UpdateUserAttributeKeyResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/UpdateUserAttributeKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) ArchiveUserAttributeKeys(ctx context.Context, in *ArchiveUserAttributeKeysRequest, opts ...grpc.CallOption) (*ArchiveUserAttributeKeysResponse, error) { + out := new(ArchiveUserAttributeKeysResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) UnarchiveUserAttributeKeys(ctx context.Context, in *UnarchiveUserAttributeKeysRequest, opts ...grpc.CallOption) (*UnarchiveUserAttributeKeysResponse, error) { + out := new(UnarchiveUserAttributeKeysResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) CreateUserAttributeValue(ctx context.Context, in *CreateUserAttributeValueRequest, opts ...grpc.CallOption) (*CreateUserAttributeValueResponse, error) { + out := new(CreateUserAttributeValueResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) BatchCreateUserAttributeValue(ctx context.Context, in *BatchCreateUserAttributeValueRequest, opts ...grpc.CallOption) (*BatchCreateUserAttributeValueResponse, error) { + out := new(BatchCreateUserAttributeValueResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/BatchCreateUserAttributeValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) GetUserAttributeValue(ctx context.Context, in *GetUserAttributeValueRequest, opts ...grpc.CallOption) (*GetUserAttributeValueResponse, error) { + out := new(GetUserAttributeValueResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) ListUserAttributeKeyValues(ctx context.Context, in *ListUserAttributeKeyValuesRequest, opts ...grpc.CallOption) (*ListUserAttributeKeyValuesResponse, error) { + out := new(ListUserAttributeKeyValuesResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeyValues", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) ListUserAttributeValues(ctx context.Context, in *ListUserAttributeValuesRequest, opts ...grpc.CallOption) (*ListUserAttributeValuesResponse, error) { + out := new(ListUserAttributeValuesResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeValues", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) ArchiveUserAttributeValues(ctx context.Context, in *ArchiveUserAttributeValuesRequest, opts ...grpc.CallOption) (*ArchiveUserAttributeValuesResponse, error) { + out := new(ArchiveUserAttributeValuesResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeValues", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAttributesServiceClient) UnarchiveUserAttributeValues(ctx context.Context, in *UnarchiveUserAttributeValuesRequest, opts ...grpc.CallOption) (*UnarchiveUserAttributeValuesResponse, error) { + out := new(UnarchiveUserAttributeValuesResponse) + err := c.cc.Invoke(ctx, "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeValues", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// UserAttributesServiceServer is the server API for UserAttributesService service. +// All implementations must embed UnimplementedUserAttributesServiceServer +// for forward compatibility +type UserAttributesServiceServer interface { + // Creates a user attribute key. + CreateUserAttributeKey(context.Context, *CreateUserAttributeKeyRequest) (*CreateUserAttributeKeyResponse, error) + // Retrieves a user attribute key. + GetUserAttributeKey(context.Context, *GetUserAttributeKeyRequest) (*GetUserAttributeKeyResponse, error) + // Lists user attribute keys, respecting the provided filter. + ListUserAttributeKeys(context.Context, *ListUserAttributeKeysRequest) (*ListUserAttributeKeysResponse, error) + // Updates an existing user attribute key. + UpdateUserAttributeKey(context.Context, *UpdateUserAttributeKeyRequest) (*UpdateUserAttributeKeyResponse, error) + // Batch archives user attribute keys AND all their associated user attribute values. + ArchiveUserAttributeKeys(context.Context, *ArchiveUserAttributeKeysRequest) (*ArchiveUserAttributeKeysResponse, error) + // Batch unarchives user attribute keys. + UnarchiveUserAttributeKeys(context.Context, *UnarchiveUserAttributeKeysRequest) (*UnarchiveUserAttributeKeysResponse, error) + // Creates a user attribute value. + CreateUserAttributeValue(context.Context, *CreateUserAttributeValueRequest) (*CreateUserAttributeValueResponse, error) + // Creates a user attribute value for multiple users in a single operation. + BatchCreateUserAttributeValue(context.Context, *BatchCreateUserAttributeValueRequest) (*BatchCreateUserAttributeValueResponse, error) + // Retrieves a user attribute value. + GetUserAttributeValue(context.Context, *GetUserAttributeValueRequest) (*GetUserAttributeValueResponse, error) + // Lists user attribute values for a given user attribute key, respecting the provided filter. + ListUserAttributeKeyValues(context.Context, *ListUserAttributeKeyValuesRequest) (*ListUserAttributeKeyValuesResponse, error) + // List user attributes values, respecting the provided filter. + ListUserAttributeValues(context.Context, *ListUserAttributeValuesRequest) (*ListUserAttributeValuesResponse, error) + // Batch archives user attribute values. + ArchiveUserAttributeValues(context.Context, *ArchiveUserAttributeValuesRequest) (*ArchiveUserAttributeValuesResponse, error) + // Batch unarchives user attribute values. + UnarchiveUserAttributeValues(context.Context, *UnarchiveUserAttributeValuesRequest) (*UnarchiveUserAttributeValuesResponse, error) + mustEmbedUnimplementedUserAttributesServiceServer() +} + +// UnimplementedUserAttributesServiceServer must be embedded to have forward compatible implementations. +type UnimplementedUserAttributesServiceServer struct { +} + +func (UnimplementedUserAttributesServiceServer) CreateUserAttributeKey(context.Context, *CreateUserAttributeKeyRequest) (*CreateUserAttributeKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUserAttributeKey not implemented") +} +func (UnimplementedUserAttributesServiceServer) GetUserAttributeKey(context.Context, *GetUserAttributeKeyRequest) (*GetUserAttributeKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserAttributeKey not implemented") +} +func (UnimplementedUserAttributesServiceServer) ListUserAttributeKeys(context.Context, *ListUserAttributeKeysRequest) (*ListUserAttributeKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListUserAttributeKeys not implemented") +} +func (UnimplementedUserAttributesServiceServer) UpdateUserAttributeKey(context.Context, *UpdateUserAttributeKeyRequest) (*UpdateUserAttributeKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateUserAttributeKey not implemented") +} +func (UnimplementedUserAttributesServiceServer) ArchiveUserAttributeKeys(context.Context, *ArchiveUserAttributeKeysRequest) (*ArchiveUserAttributeKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ArchiveUserAttributeKeys not implemented") +} +func (UnimplementedUserAttributesServiceServer) UnarchiveUserAttributeKeys(context.Context, *UnarchiveUserAttributeKeysRequest) (*UnarchiveUserAttributeKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnarchiveUserAttributeKeys not implemented") +} +func (UnimplementedUserAttributesServiceServer) CreateUserAttributeValue(context.Context, *CreateUserAttributeValueRequest) (*CreateUserAttributeValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUserAttributeValue not implemented") +} +func (UnimplementedUserAttributesServiceServer) BatchCreateUserAttributeValue(context.Context, *BatchCreateUserAttributeValueRequest) (*BatchCreateUserAttributeValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchCreateUserAttributeValue not implemented") +} +func (UnimplementedUserAttributesServiceServer) GetUserAttributeValue(context.Context, *GetUserAttributeValueRequest) (*GetUserAttributeValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserAttributeValue not implemented") +} +func (UnimplementedUserAttributesServiceServer) ListUserAttributeKeyValues(context.Context, *ListUserAttributeKeyValuesRequest) (*ListUserAttributeKeyValuesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListUserAttributeKeyValues not implemented") +} +func (UnimplementedUserAttributesServiceServer) ListUserAttributeValues(context.Context, *ListUserAttributeValuesRequest) (*ListUserAttributeValuesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListUserAttributeValues not implemented") +} +func (UnimplementedUserAttributesServiceServer) ArchiveUserAttributeValues(context.Context, *ArchiveUserAttributeValuesRequest) (*ArchiveUserAttributeValuesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ArchiveUserAttributeValues not implemented") +} +func (UnimplementedUserAttributesServiceServer) UnarchiveUserAttributeValues(context.Context, *UnarchiveUserAttributeValuesRequest) (*UnarchiveUserAttributeValuesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnarchiveUserAttributeValues not implemented") +} +func (UnimplementedUserAttributesServiceServer) mustEmbedUnimplementedUserAttributesServiceServer() {} + +// UnsafeUserAttributesServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to UserAttributesServiceServer will +// result in compilation errors. +type UnsafeUserAttributesServiceServer interface { + mustEmbedUnimplementedUserAttributesServiceServer() +} + +func RegisterUserAttributesServiceServer(s grpc.ServiceRegistrar, srv UserAttributesServiceServer) { + s.RegisterService(&UserAttributesService_ServiceDesc, srv) +} + +func _UserAttributesService_CreateUserAttributeKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateUserAttributeKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).CreateUserAttributeKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).CreateUserAttributeKey(ctx, req.(*CreateUserAttributeKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_GetUserAttributeKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserAttributeKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).GetUserAttributeKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).GetUserAttributeKey(ctx, req.(*GetUserAttributeKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_ListUserAttributeKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListUserAttributeKeysRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).ListUserAttributeKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).ListUserAttributeKeys(ctx, req.(*ListUserAttributeKeysRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_UpdateUserAttributeKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserAttributeKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).UpdateUserAttributeKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/UpdateUserAttributeKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).UpdateUserAttributeKey(ctx, req.(*UpdateUserAttributeKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_ArchiveUserAttributeKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ArchiveUserAttributeKeysRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).ArchiveUserAttributeKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).ArchiveUserAttributeKeys(ctx, req.(*ArchiveUserAttributeKeysRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_UnarchiveUserAttributeKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UnarchiveUserAttributeKeysRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).UnarchiveUserAttributeKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).UnarchiveUserAttributeKeys(ctx, req.(*UnarchiveUserAttributeKeysRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_CreateUserAttributeValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateUserAttributeValueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).CreateUserAttributeValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).CreateUserAttributeValue(ctx, req.(*CreateUserAttributeValueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_BatchCreateUserAttributeValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchCreateUserAttributeValueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).BatchCreateUserAttributeValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/BatchCreateUserAttributeValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).BatchCreateUserAttributeValue(ctx, req.(*BatchCreateUserAttributeValueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_GetUserAttributeValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserAttributeValueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).GetUserAttributeValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).GetUserAttributeValue(ctx, req.(*GetUserAttributeValueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_ListUserAttributeKeyValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListUserAttributeKeyValuesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).ListUserAttributeKeyValues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeyValues", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).ListUserAttributeKeyValues(ctx, req.(*ListUserAttributeKeyValuesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_ListUserAttributeValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListUserAttributeValuesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).ListUserAttributeValues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeValues", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).ListUserAttributeValues(ctx, req.(*ListUserAttributeValuesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_ArchiveUserAttributeValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ArchiveUserAttributeValuesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).ArchiveUserAttributeValues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeValues", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).ArchiveUserAttributeValues(ctx, req.(*ArchiveUserAttributeValuesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAttributesService_UnarchiveUserAttributeValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UnarchiveUserAttributeValuesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAttributesServiceServer).UnarchiveUserAttributeValues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeValues", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAttributesServiceServer).UnarchiveUserAttributeValues(ctx, req.(*UnarchiveUserAttributeValuesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// UserAttributesService_ServiceDesc is the grpc.ServiceDesc for UserAttributesService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var UserAttributesService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "sift.user_attributes.v1.UserAttributesService", + HandlerType: (*UserAttributesServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateUserAttributeKey", + Handler: _UserAttributesService_CreateUserAttributeKey_Handler, + }, + { + MethodName: "GetUserAttributeKey", + Handler: _UserAttributesService_GetUserAttributeKey_Handler, + }, + { + MethodName: "ListUserAttributeKeys", + Handler: _UserAttributesService_ListUserAttributeKeys_Handler, + }, + { + MethodName: "UpdateUserAttributeKey", + Handler: _UserAttributesService_UpdateUserAttributeKey_Handler, + }, + { + MethodName: "ArchiveUserAttributeKeys", + Handler: _UserAttributesService_ArchiveUserAttributeKeys_Handler, + }, + { + MethodName: "UnarchiveUserAttributeKeys", + Handler: _UserAttributesService_UnarchiveUserAttributeKeys_Handler, + }, + { + MethodName: "CreateUserAttributeValue", + Handler: _UserAttributesService_CreateUserAttributeValue_Handler, + }, + { + MethodName: "BatchCreateUserAttributeValue", + Handler: _UserAttributesService_BatchCreateUserAttributeValue_Handler, + }, + { + MethodName: "GetUserAttributeValue", + Handler: _UserAttributesService_GetUserAttributeValue_Handler, + }, + { + MethodName: "ListUserAttributeKeyValues", + Handler: _UserAttributesService_ListUserAttributeKeyValues_Handler, + }, + { + MethodName: "ListUserAttributeValues", + Handler: _UserAttributesService_ListUserAttributeValues_Handler, + }, + { + MethodName: "ArchiveUserAttributeValues", + Handler: _UserAttributesService_ArchiveUserAttributeValues_Handler, + }, + { + MethodName: "UnarchiveUserAttributeValues", + Handler: _UserAttributesService_UnarchiveUserAttributeValues_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "sift/user_attributes/v1/user_attributes.proto", +} + +func (m *UserAttributeKey) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserAttributeKey) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UserAttributeKey) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + if len(m.ModifiedByUserId) > 0 { + i -= len(m.ModifiedByUserId) + copy(dAtA[i:], m.ModifiedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + i-- + dAtA[i] = 0x4a + } + if m.ModifiedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x3a + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.Type != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x28 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateUserAttributeKeyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateUserAttributeKeyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateUserAttributeKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Type != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x18 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateUserAttributeKeyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateUserAttributeKeyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateUserAttributeKeyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UserAttributeKey != nil { + size, err := m.UserAttributeKey.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateUserAttributeKeyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateUserAttributeKeyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UpdateUserAttributeKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UpdateMask != nil { + size, err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateUserAttributeKeyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateUserAttributeKeyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UpdateUserAttributeKeyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UserAttributeKey != nil { + size, err := m.UserAttributeKey.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetUserAttributeKeyRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetUserAttributeKeyRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetUserAttributeKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetUserAttributeKeyResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetUserAttributeKeyResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetUserAttributeKeyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UserAttributeKey != nil { + size, err := m.UserAttributeKey.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeKeysRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeKeysRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListUserAttributeKeysRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x2a + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeKeysResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeKeysResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListUserAttributeKeysResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeKeys) > 0 { + for iNdEx := len(m.UserAttributeKeys) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.UserAttributeKeys[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ArchiveUserAttributeKeysRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveUserAttributeKeysRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchiveUserAttributeKeysRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeKeyIds) > 0 { + for iNdEx := len(m.UserAttributeKeyIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserAttributeKeyIds[iNdEx]) + copy(dAtA[i:], m.UserAttributeKeyIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ArchiveUserAttributeKeysResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveUserAttributeKeysResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchiveUserAttributeKeysResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveUserAttributeKeysRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveUserAttributeKeysRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UnarchiveUserAttributeKeysRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeKeyIds) > 0 { + for iNdEx := len(m.UserAttributeKeyIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserAttributeKeyIds[iNdEx]) + copy(dAtA[i:], m.UserAttributeKeyIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveUserAttributeKeysResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveUserAttributeKeysResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UnarchiveUserAttributeKeysResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UserAttributeValue) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserAttributeValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UserAttributeValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if vtmsg, ok := m.Value.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if m.Key != nil { + size, err := m.Key.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x62 + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x42 + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x22 + } + if len(m.UserId) > 0 { + i -= len(m.UserId) + copy(dAtA[i:], m.UserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserId))) + i-- + dAtA[i] = 0x1a + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeValueId) > 0 { + i -= len(m.UserAttributeValueId) + copy(dAtA[i:], m.UserAttributeValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UserAttributeValue_StringValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UserAttributeValue_StringValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.StringValue) + copy(dAtA[i:], m.StringValue) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StringValue))) + i-- + dAtA[i] = 0x2a + return len(dAtA) - i, nil +} +func (m *UserAttributeValue_NumberValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UserAttributeValue_NumberValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x31 + return len(dAtA) - i, nil +} +func (m *UserAttributeValue_BooleanValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UserAttributeValue_BooleanValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + return len(dAtA) - i, nil +} +func (m *CreateUserAttributeValueRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateUserAttributeValueRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateUserAttributeValueRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if vtmsg, ok := m.Value.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if len(m.UserId) > 0 { + i -= len(m.UserId) + copy(dAtA[i:], m.UserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserId))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateUserAttributeValueRequest_StringValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateUserAttributeValueRequest_StringValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.StringValue) + copy(dAtA[i:], m.StringValue) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StringValue))) + i-- + dAtA[i] = 0x22 + return len(dAtA) - i, nil +} +func (m *CreateUserAttributeValueRequest_NumberValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateUserAttributeValueRequest_NumberValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x29 + return len(dAtA) - i, nil +} +func (m *CreateUserAttributeValueRequest_BooleanValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateUserAttributeValueRequest_BooleanValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + return len(dAtA) - i, nil +} +func (m *CreateUserAttributeValueResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateUserAttributeValueResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CreateUserAttributeValueResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UserAttributeValue != nil { + size, err := m.UserAttributeValue.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchCreateUserAttributeValueRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchCreateUserAttributeValueRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchCreateUserAttributeValueRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if vtmsg, ok := m.Value.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if len(m.UserIds) > 0 { + for iNdEx := len(m.UserIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserIds[iNdEx]) + copy(dAtA[i:], m.UserIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchCreateUserAttributeValueRequest_StringValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchCreateUserAttributeValueRequest_StringValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.StringValue) + copy(dAtA[i:], m.StringValue) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StringValue))) + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} +func (m *BatchCreateUserAttributeValueRequest_NumberValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchCreateUserAttributeValueRequest_NumberValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x21 + return len(dAtA) - i, nil +} +func (m *BatchCreateUserAttributeValueRequest_BooleanValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchCreateUserAttributeValueRequest_BooleanValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + return len(dAtA) - i, nil +} +func (m *BatchCreateUserAttributeValueResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchCreateUserAttributeValueResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BatchCreateUserAttributeValueResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeValues) > 0 { + for iNdEx := len(m.UserAttributeValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.UserAttributeValues[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeKeyValuesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeKeyValuesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListUserAttributeKeyValuesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x2a + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x22 + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x1a + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x10 + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeKeyValuesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeKeyValuesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListUserAttributeKeyValuesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeValues) > 0 { + for iNdEx := len(m.UserAttributeValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.UserAttributeValues[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeValuesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeValuesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListUserAttributeValuesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeValuesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeValuesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ListUserAttributeValuesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeValues) > 0 { + for iNdEx := len(m.UserAttributeValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.UserAttributeValues[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetUserAttributeValueRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetUserAttributeValueRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetUserAttributeValueRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeValueId) > 0 { + i -= len(m.UserAttributeValueId) + copy(dAtA[i:], m.UserAttributeValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetUserAttributeValueResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetUserAttributeValueResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetUserAttributeValueResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UserAttributeValue != nil { + size, err := m.UserAttributeValue.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveUserAttributeValuesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveUserAttributeValuesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchiveUserAttributeValuesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeValueIds) > 0 { + for iNdEx := len(m.UserAttributeValueIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserAttributeValueIds[iNdEx]) + copy(dAtA[i:], m.UserAttributeValueIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeValueIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ArchiveUserAttributeValuesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveUserAttributeValuesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ArchiveUserAttributeValuesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveUserAttributeValuesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveUserAttributeValuesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UnarchiveUserAttributeValuesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeValueIds) > 0 { + for iNdEx := len(m.UserAttributeValueIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserAttributeValueIds[iNdEx]) + copy(dAtA[i:], m.UserAttributeValueIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeValueIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveUserAttributeValuesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveUserAttributeValuesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *UnarchiveUserAttributeValuesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UserAttributeKey) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserAttributeKey) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UserAttributeKey) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + if len(m.ModifiedByUserId) > 0 { + i -= len(m.ModifiedByUserId) + copy(dAtA[i:], m.ModifiedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + i-- + dAtA[i] = 0x4a + } + if m.ModifiedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x3a + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.Type != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x28 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateUserAttributeKeyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateUserAttributeKeyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateUserAttributeKeyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Type != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x18 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateUserAttributeKeyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateUserAttributeKeyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateUserAttributeKeyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UserAttributeKey != nil { + size, err := m.UserAttributeKey.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateUserAttributeKeyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateUserAttributeKeyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UpdateUserAttributeKeyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UpdateMask != nil { + size, err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateUserAttributeKeyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateUserAttributeKeyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UpdateUserAttributeKeyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UserAttributeKey != nil { + size, err := m.UserAttributeKey.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetUserAttributeKeyRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetUserAttributeKeyRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetUserAttributeKeyRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetUserAttributeKeyResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetUserAttributeKeyResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetUserAttributeKeyResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UserAttributeKey != nil { + size, err := m.UserAttributeKey.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeKeysRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeKeysRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListUserAttributeKeysRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x2a + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeKeysResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeKeysResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListUserAttributeKeysResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeKeys) > 0 { + for iNdEx := len(m.UserAttributeKeys) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.UserAttributeKeys[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ArchiveUserAttributeKeysRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveUserAttributeKeysRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchiveUserAttributeKeysRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeKeyIds) > 0 { + for iNdEx := len(m.UserAttributeKeyIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserAttributeKeyIds[iNdEx]) + copy(dAtA[i:], m.UserAttributeKeyIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ArchiveUserAttributeKeysResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveUserAttributeKeysResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchiveUserAttributeKeysResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveUserAttributeKeysRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveUserAttributeKeysRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UnarchiveUserAttributeKeysRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeKeyIds) > 0 { + for iNdEx := len(m.UserAttributeKeyIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserAttributeKeyIds[iNdEx]) + copy(dAtA[i:], m.UserAttributeKeyIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveUserAttributeKeysResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveUserAttributeKeysResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UnarchiveUserAttributeKeysResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UserAttributeValue) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserAttributeValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UserAttributeValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Key != nil { + size, err := m.Key.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x62 + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.ArchivedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ArchivedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x42 + } + if msg, ok := m.Value.(*UserAttributeValue_BooleanValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*UserAttributeValue_NumberValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*UserAttributeValue_StringValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x22 + } + if len(m.UserId) > 0 { + i -= len(m.UserId) + copy(dAtA[i:], m.UserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserId))) + i-- + dAtA[i] = 0x1a + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeValueId) > 0 { + i -= len(m.UserAttributeValueId) + copy(dAtA[i:], m.UserAttributeValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UserAttributeValue_StringValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UserAttributeValue_StringValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.StringValue) + copy(dAtA[i:], m.StringValue) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StringValue))) + i-- + dAtA[i] = 0x2a + return len(dAtA) - i, nil +} +func (m *UserAttributeValue_NumberValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UserAttributeValue_NumberValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x31 + return len(dAtA) - i, nil +} +func (m *UserAttributeValue_BooleanValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UserAttributeValue_BooleanValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + return len(dAtA) - i, nil +} +func (m *CreateUserAttributeValueRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateUserAttributeValueRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateUserAttributeValueRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if msg, ok := m.Value.(*CreateUserAttributeValueRequest_BooleanValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*CreateUserAttributeValueRequest_NumberValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*CreateUserAttributeValueRequest_StringValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if len(m.UserId) > 0 { + i -= len(m.UserId) + copy(dAtA[i:], m.UserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserId))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateUserAttributeValueRequest_StringValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateUserAttributeValueRequest_StringValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.StringValue) + copy(dAtA[i:], m.StringValue) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StringValue))) + i-- + dAtA[i] = 0x22 + return len(dAtA) - i, nil +} +func (m *CreateUserAttributeValueRequest_NumberValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateUserAttributeValueRequest_NumberValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x29 + return len(dAtA) - i, nil +} +func (m *CreateUserAttributeValueRequest_BooleanValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateUserAttributeValueRequest_BooleanValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + return len(dAtA) - i, nil +} +func (m *CreateUserAttributeValueResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateUserAttributeValueResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CreateUserAttributeValueResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UserAttributeValue != nil { + size, err := m.UserAttributeValue.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchCreateUserAttributeValueRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchCreateUserAttributeValueRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchCreateUserAttributeValueRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if msg, ok := m.Value.(*BatchCreateUserAttributeValueRequest_BooleanValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*BatchCreateUserAttributeValueRequest_NumberValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if msg, ok := m.Value.(*BatchCreateUserAttributeValueRequest_StringValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if len(m.UserIds) > 0 { + for iNdEx := len(m.UserIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserIds[iNdEx]) + copy(dAtA[i:], m.UserIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchCreateUserAttributeValueRequest_StringValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchCreateUserAttributeValueRequest_StringValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.StringValue) + copy(dAtA[i:], m.StringValue) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StringValue))) + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} +func (m *BatchCreateUserAttributeValueRequest_NumberValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchCreateUserAttributeValueRequest_NumberValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumberValue)))) + i-- + dAtA[i] = 0x21 + return len(dAtA) - i, nil +} +func (m *BatchCreateUserAttributeValueRequest_BooleanValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchCreateUserAttributeValueRequest_BooleanValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BooleanValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + return len(dAtA) - i, nil +} +func (m *BatchCreateUserAttributeValueResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BatchCreateUserAttributeValueResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *BatchCreateUserAttributeValueResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeValues) > 0 { + for iNdEx := len(m.UserAttributeValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.UserAttributeValues[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeKeyValuesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeKeyValuesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListUserAttributeKeyValuesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.IncludeArchived { + i-- + if m.IncludeArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x2a + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x22 + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x1a + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x10 + } + if len(m.UserAttributeKeyId) > 0 { + i -= len(m.UserAttributeKeyId) + copy(dAtA[i:], m.UserAttributeKeyId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeKeyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeKeyValuesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeKeyValuesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListUserAttributeKeyValuesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeValues) > 0 { + for iNdEx := len(m.UserAttributeValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.UserAttributeValues[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeValuesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeValuesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListUserAttributeValuesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.OrderBy) > 0 { + i -= len(m.OrderBy) + copy(dAtA[i:], m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderBy))) + i-- + dAtA[i] = 0x22 + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 + } + if m.PageSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ListUserAttributeValuesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListUserAttributeValuesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ListUserAttributeValuesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserAttributeValues) > 0 { + for iNdEx := len(m.UserAttributeValues) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.UserAttributeValues[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetUserAttributeValueRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetUserAttributeValueRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetUserAttributeValueRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeValueId) > 0 { + i -= len(m.UserAttributeValueId) + copy(dAtA[i:], m.UserAttributeValueId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeValueId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetUserAttributeValueResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetUserAttributeValueResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *GetUserAttributeValueResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.UserAttributeValue != nil { + size, err := m.UserAttributeValue.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArchiveUserAttributeValuesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveUserAttributeValuesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchiveUserAttributeValuesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeValueIds) > 0 { + for iNdEx := len(m.UserAttributeValueIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserAttributeValueIds[iNdEx]) + copy(dAtA[i:], m.UserAttributeValueIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeValueIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ArchiveUserAttributeValuesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveUserAttributeValuesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ArchiveUserAttributeValuesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveUserAttributeValuesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveUserAttributeValuesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UnarchiveUserAttributeValuesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.UserAttributeValueIds) > 0 { + for iNdEx := len(m.UserAttributeValueIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserAttributeValueIds[iNdEx]) + copy(dAtA[i:], m.UserAttributeValueIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UserAttributeValueIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UnarchiveUserAttributeValuesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnarchiveUserAttributeValuesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UnarchiveUserAttributeValuesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *UserAttributeKey) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrganizationId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Type != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Type)) + } + if m.CreatedDate != nil { + l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CreatedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ModifiedDate != nil { + l = (*timestamppb1.Timestamp)(m.ModifiedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ModifiedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ArchivedDate != nil { + l = (*timestamppb1.Timestamp)(m.ArchivedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IsArchived { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *CreateUserAttributeKeyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Type != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Type)) + } + n += len(m.unknownFields) + return n +} + +func (m *CreateUserAttributeKeyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserAttributeKey != nil { + l = m.UserAttributeKey.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateUserAttributeKeyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.UpdateMask != nil { + l = (*fieldmaskpb1.FieldMask)(m.UpdateMask).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateUserAttributeKeyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserAttributeKey != nil { + l = m.UserAttributeKey.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *GetUserAttributeKeyRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *GetUserAttributeKeyResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserAttributeKey != nil { + l = m.UserAttributeKey.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ListUserAttributeKeysRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Filter) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrderBy) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrganizationId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IncludeArchived { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *ListUserAttributeKeysResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UserAttributeKeys) > 0 { + for _, e := range m.UserAttributeKeys { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ArchiveUserAttributeKeysRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UserAttributeKeyIds) > 0 { + for _, s := range m.UserAttributeKeyIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ArchiveUserAttributeKeysResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *UnarchiveUserAttributeKeysRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UserAttributeKeyIds) > 0 { + for _, s := range m.UserAttributeKeyIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *UnarchiveUserAttributeKeysResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *UserAttributeValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserAttributeValueId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.UserAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.UserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrganizationId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if vtmsg, ok := m.Value.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + l = len(m.CreatedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.CreatedDate != nil { + l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ArchivedDate != nil { + l = (*timestamppb1.Timestamp)(m.ArchivedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IsArchived { + n += 2 + } + if m.Key != nil { + l = m.Key.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UserAttributeValue_StringValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StringValue) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return n +} +func (m *UserAttributeValue_NumberValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} +func (m *UserAttributeValue_BooleanValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *CreateUserAttributeValueRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.UserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if vtmsg, ok := m.Value.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + n += len(m.unknownFields) + return n +} + +func (m *CreateUserAttributeValueRequest_StringValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StringValue) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return n +} +func (m *CreateUserAttributeValueRequest_NumberValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} +func (m *CreateUserAttributeValueRequest_BooleanValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *CreateUserAttributeValueResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserAttributeValue != nil { + l = m.UserAttributeValue.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *BatchCreateUserAttributeValueRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.UserIds) > 0 { + for _, s := range m.UserIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if vtmsg, ok := m.Value.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + n += len(m.unknownFields) + return n +} + +func (m *BatchCreateUserAttributeValueRequest_StringValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StringValue) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return n +} +func (m *BatchCreateUserAttributeValueRequest_NumberValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} +func (m *BatchCreateUserAttributeValueRequest_BooleanValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *BatchCreateUserAttributeValueResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UserAttributeValues) > 0 { + for _, e := range m.UserAttributeValues { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ListUserAttributeKeyValuesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserAttributeKeyId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.PageSize != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Filter) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrderBy) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IncludeArchived { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *ListUserAttributeKeyValuesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UserAttributeValues) > 0 { + for _, e := range m.UserAttributeValues { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ListUserAttributeValuesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Filter) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrderBy) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ListUserAttributeValuesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UserAttributeValues) > 0 { + for _, e := range m.UserAttributeValues { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *GetUserAttributeValueRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserAttributeValueId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *GetUserAttributeValueResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UserAttributeValue != nil { + l = m.UserAttributeValue.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ArchiveUserAttributeValuesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UserAttributeValueIds) > 0 { + for _, s := range m.UserAttributeValueIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ArchiveUserAttributeValuesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *UnarchiveUserAttributeValuesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UserAttributeValueIds) > 0 { + for _, s := range m.UserAttributeValueIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *UnarchiveUserAttributeValuesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *UserAttributeKey) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserAttributeKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserAttributeKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrganizationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= UserAttributeValueType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ModifiedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateUserAttributeKeyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateUserAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateUserAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= UserAttributeValueType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateUserAttributeKeyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateUserAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateUserAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserAttributeKey == nil { + m.UserAttributeKey = &UserAttributeKey{} + } + if err := m.UserAttributeKey.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateUserAttributeKeyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateUserAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateUserAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateMask == nil { + m.UpdateMask = &fieldmaskpb.FieldMask{} + } + if err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateUserAttributeKeyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateUserAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateUserAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserAttributeKey == nil { + m.UserAttributeKey = &UserAttributeKey{} + } + if err := m.UserAttributeKey.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserAttributeKeyRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserAttributeKeyResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserAttributeKey == nil { + m.UserAttributeKey = &UserAttributeKey{} + } + if err := m.UserAttributeKey.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeKeysRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Filter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrderBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrganizationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeKeysResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeys", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeKeys = append(m.UserAttributeKeys, &UserAttributeKey{}) + if err := m.UserAttributeKeys[len(m.UserAttributeKeys)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveUserAttributeKeysRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveUserAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveUserAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeKeyIds = append(m.UserAttributeKeyIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveUserAttributeKeysResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveUserAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveUserAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveUserAttributeKeysRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveUserAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveUserAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeKeyIds = append(m.UserAttributeKeyIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveUserAttributeKeysResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveUserAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveUserAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserAttributeValue) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeValueId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrganizationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = &UserAttributeValue_StringValue{StringValue: string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 6: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &UserAttributeValue_NumberValue{NumberValue: float64(math.Float64frombits(v))} + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &UserAttributeValue_BooleanValue{BooleanValue: b} + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Key == nil { + m.Key = &UserAttributeKey{} + } + if err := m.Key.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateUserAttributeValueRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateUserAttributeValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateUserAttributeValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = &CreateUserAttributeValueRequest_StringValue{StringValue: string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 5: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &CreateUserAttributeValueRequest_NumberValue{NumberValue: float64(math.Float64frombits(v))} + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &CreateUserAttributeValueRequest_BooleanValue{BooleanValue: b} + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateUserAttributeValueResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateUserAttributeValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateUserAttributeValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserAttributeValue == nil { + m.UserAttributeValue = &UserAttributeValue{} + } + if err := m.UserAttributeValue.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchCreateUserAttributeValueRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchCreateUserAttributeValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchCreateUserAttributeValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserIds = append(m.UserIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = &BatchCreateUserAttributeValueRequest_StringValue{StringValue: string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 4: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &BatchCreateUserAttributeValueRequest_NumberValue{NumberValue: float64(math.Float64frombits(v))} + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &BatchCreateUserAttributeValueRequest_BooleanValue{BooleanValue: b} + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchCreateUserAttributeValueResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchCreateUserAttributeValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchCreateUserAttributeValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeValues = append(m.UserAttributeValues, &UserAttributeValue{}) + if err := m.UserAttributeValues[len(m.UserAttributeValues)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeKeyValuesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeKeyValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeKeyValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeKeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Filter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrderBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeKeyValuesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeKeyValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeKeyValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeValues = append(m.UserAttributeValues, &UserAttributeValue{}) + if err := m.UserAttributeValues[len(m.UserAttributeValues)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeValuesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Filter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrderBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeValuesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeValues = append(m.UserAttributeValues, &UserAttributeValue{}) + if err := m.UserAttributeValues[len(m.UserAttributeValues)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserAttributeValueRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserAttributeValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserAttributeValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeValueId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserAttributeValueResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserAttributeValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserAttributeValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserAttributeValue == nil { + m.UserAttributeValue = &UserAttributeValue{} + } + if err := m.UserAttributeValue.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveUserAttributeValuesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveUserAttributeValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveUserAttributeValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValueIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeValueIds = append(m.UserAttributeValueIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveUserAttributeValuesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveUserAttributeValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveUserAttributeValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveUserAttributeValuesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveUserAttributeValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveUserAttributeValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValueIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeValueIds = append(m.UserAttributeValueIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveUserAttributeValuesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveUserAttributeValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveUserAttributeValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserAttributeKey) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserAttributeKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserAttributeKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeKeyId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrganizationId = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Name = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Description = stringValue + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= UserAttributeValueType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.CreatedByUserId = stringValue + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ModifiedByUserId = stringValue + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateUserAttributeKeyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateUserAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateUserAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Name = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Description = stringValue + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= UserAttributeValueType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateUserAttributeKeyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateUserAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateUserAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserAttributeKey == nil { + m.UserAttributeKey = &UserAttributeKey{} + } + if err := m.UserAttributeKey.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateUserAttributeKeyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateUserAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateUserAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeKeyId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Name = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Description = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateMask == nil { + m.UpdateMask = &fieldmaskpb.FieldMask{} + } + if err := (*fieldmaskpb1.FieldMask)(m.UpdateMask).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateUserAttributeKeyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateUserAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateUserAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserAttributeKey == nil { + m.UserAttributeKey = &UserAttributeKey{} + } + if err := m.UserAttributeKey.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserAttributeKeyRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserAttributeKeyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserAttributeKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeKeyId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserAttributeKeyResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserAttributeKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserAttributeKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserAttributeKey == nil { + m.UserAttributeKey = &UserAttributeKey{} + } + if err := m.UserAttributeKey.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeKeysRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PageToken = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Filter = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrderBy = stringValue + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrganizationId = stringValue + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeKeysResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeys", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeKeys = append(m.UserAttributeKeys, &UserAttributeKey{}) + if err := m.UserAttributeKeys[len(m.UserAttributeKeys)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.NextPageToken = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveUserAttributeKeysRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveUserAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveUserAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeKeyIds = append(m.UserAttributeKeyIds, stringValue) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveUserAttributeKeysResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveUserAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveUserAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveUserAttributeKeysRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveUserAttributeKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveUserAttributeKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeKeyIds = append(m.UserAttributeKeyIds, stringValue) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveUserAttributeKeysResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveUserAttributeKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveUserAttributeKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserAttributeValue) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeValueId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeKeyId = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserId = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrganizationId = stringValue + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Value = &UserAttributeValue_StringValue{StringValue: stringValue} + iNdEx = postIndex + case 6: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &UserAttributeValue_NumberValue{NumberValue: float64(math.Float64frombits(v))} + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &UserAttributeValue_BooleanValue{BooleanValue: b} + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.CreatedByUserId = stringValue + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchivedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchivedDate == nil { + m.ArchivedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ArchivedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Key == nil { + m.Key = &UserAttributeKey{} + } + if err := m.Key.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateUserAttributeValueRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateUserAttributeValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateUserAttributeValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeKeyId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserId = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Value = &CreateUserAttributeValueRequest_StringValue{StringValue: stringValue} + iNdEx = postIndex + case 5: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &CreateUserAttributeValueRequest_NumberValue{NumberValue: float64(math.Float64frombits(v))} + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &CreateUserAttributeValueRequest_BooleanValue{BooleanValue: b} + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateUserAttributeValueResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateUserAttributeValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateUserAttributeValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserAttributeValue == nil { + m.UserAttributeValue = &UserAttributeValue{} + } + if err := m.UserAttributeValue.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchCreateUserAttributeValueRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchCreateUserAttributeValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchCreateUserAttributeValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeKeyId = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserIds = append(m.UserIds, stringValue) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Value = &BatchCreateUserAttributeValueRequest_StringValue{StringValue: stringValue} + iNdEx = postIndex + case 4: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &BatchCreateUserAttributeValueRequest_NumberValue{NumberValue: float64(math.Float64frombits(v))} + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &BatchCreateUserAttributeValueRequest_BooleanValue{BooleanValue: b} + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchCreateUserAttributeValueResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchCreateUserAttributeValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchCreateUserAttributeValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeValues = append(m.UserAttributeValues, &UserAttributeValue{}) + if err := m.UserAttributeValues[len(m.UserAttributeValues)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeKeyValuesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeKeyValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeKeyValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeKeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeKeyId = stringValue + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PageToken = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Filter = stringValue + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrderBy = stringValue + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeKeyValuesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeKeyValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeKeyValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeValues = append(m.UserAttributeValues, &UserAttributeValue{}) + if err := m.UserAttributeValues[len(m.UserAttributeValues)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.NextPageToken = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeValuesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.PageToken = stringValue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Filter = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrderBy = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListUserAttributeValuesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListUserAttributeValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUserAttributeValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserAttributeValues = append(m.UserAttributeValues, &UserAttributeValue{}) + if err := m.UserAttributeValues[len(m.UserAttributeValues)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.NextPageToken = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserAttributeValueRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserAttributeValueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserAttributeValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValueId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeValueId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserAttributeValueResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserAttributeValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserAttributeValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserAttributeValue == nil { + m.UserAttributeValue = &UserAttributeValue{} + } + if err := m.UserAttributeValue.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveUserAttributeValuesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveUserAttributeValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveUserAttributeValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValueIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeValueIds = append(m.UserAttributeValueIds, stringValue) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArchiveUserAttributeValuesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveUserAttributeValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveUserAttributeValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveUserAttributeValuesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveUserAttributeValuesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveUserAttributeValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserAttributeValueIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.UserAttributeValueIds = append(m.UserAttributeValueIds, stringValue) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnarchiveUserAttributeValuesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnarchiveUserAttributeValuesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnarchiveUserAttributeValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} diff --git a/protos/buf.lock b/protos/buf.lock index e1d2b21cf..8c8dc41d3 100644 --- a/protos/buf.lock +++ b/protos/buf.lock @@ -9,8 +9,8 @@ deps: - remote: buf.build owner: googleapis repository: googleapis - commit: 72c8614f3bd0466ea67931ef2c43d608 - digest: shake256:b3ac4d383db09f92ab0ca85d12bff8c49eddf7031bd3a854c260b6ac4ed6a2bb85b52b3393c316d28f8038bf3b8e70cb3d16470e8cc4423007678fb6d89d36d4 + commit: 004180b77378443887d3b55cabc00384 + digest: shake256:d26c7c2fd95f0873761af33ca4a0c0d92c8577122b6feb74eb3b0a57ebe47a98ab24a209a0e91945ac4c77204e9da0c2de0020b2cedc27bdbcdea6c431eec69b - remote: buf.build owner: grpc-ecosystem repository: grpc-gateway diff --git a/protos/sift/policies/v1/policies.proto b/protos/sift/policies/v1/policies.proto new file mode 100644 index 000000000..c5f391153 --- /dev/null +++ b/protos/sift/policies/v1/policies.proto @@ -0,0 +1,213 @@ +syntax = "proto3"; + +package sift.policies.v1; + +import "buf/validate/validate.proto"; +import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "protoc-gen-openapiv2/options/annotations.proto"; + +option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { + info: {title: "Policy service"} +}; + +service PolicyService { + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_tag) = {description: "Service to manage ABAC policies."}; + + // Retrieve a policy + rpc GetPolicy(GetPolicyRequest) returns (GetPolicyResponse) { + option (google.api.http) = {get: "/api/v1/policies/{policy_id}"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "GetPolicy" + description: "Retrieve a policy." + operation_id: "PolicyService_GetPolicy" + }; + } + + // Retrieve policies using an optional filter. + rpc ListPolicies(ListPoliciesRequest) returns (ListPoliciesResponse) { + option (google.api.http) = {get: "/api/v1/policies"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "ListPolicies" + description: "Retrieve policies using an optional filter." + operation_id: "PolicyService_ListPolicies" + }; + } + + // Create a policy + rpc CreatePolicy(CreatePolicyRequest) returns (CreatePolicyResponse) { + option (google.api.http) = { + post: "/api/v1/policies" + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "CreatePolicy" + description: "Create a new policy." + operation_id: "PolicyService_CreatePolicy" + }; + } + + // Update a policy + rpc UpdatePolicy(UpdatePolicyRequest) returns (UpdatePolicyResponse) { + option (google.api.http) = { + patch: "/api/v1/policies" + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "UpdatePolicy" + description: "Update a policy." + operation_id: "PolicyService_UpdatePolicy" + }; + } + + // Archive a policy + rpc ArchivePolicy(ArchivePolicyRequest) returns (ArchivePolicyResponse) { + option (google.api.http) = {post: "/api/v1/policies/{policy_id}/archive"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "ArchivePolicy" + description: "Archive a policy." + operation_id: "PolicyService_ArchivePolicy" + }; + } +} + +message Policy { + string policy_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string name = 2 [(google.api.field_behavior) = REQUIRED]; + optional string description = 3 [(google.api.field_behavior) = OPTIONAL]; + string organization_id = 4 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string created_by_user_id = 5 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string modified_by_user_id = 6 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + google.protobuf.Timestamp created_date = 7 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.Timestamp modified_date = 8 [(google.api.field_behavior) = REQUIRED]; + // Policy rules/configuration + PolicyConfiguration configuration = 9 [(google.api.field_behavior) = REQUIRED]; + // Reference to the current policy version ID + string policy_version_id = 10 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + // The date the policy was archived. + google.protobuf.Timestamp archived_date = 11 [(google.api.field_behavior) = OPTIONAL]; + bool is_archived = 12 [(google.api.field_behavior) = REQUIRED]; + // Optional version number for this policy + optional int32 version = 13 [(google.api.field_behavior) = OPTIONAL]; + // Optional notes for this version + optional string version_notes = 14 [(google.api.field_behavior) = OPTIONAL]; + // Auto-generated change message for this version + optional string generated_change_message = 15 [(google.api.field_behavior) = OPTIONAL]; +} + +// PolicyConfiguration represents the configuration and rules for a policy. +// Expects a string containing a policy in the Cedar format +// https://docs.cedarpolicy.com/policies/syntax-policy.html +message PolicyConfiguration { + string cedar_policy = 1; +} + +// The request for a call to `PolicyService_GetPolicy`. +message GetPolicyRequest { + string policy_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +// The response of a call to `PolicyService_GetPolicy`. +message GetPolicyResponse { + Policy policy = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The request for a call to `PolicyService_ListPolicies` to retrieve policies. +message ListPoliciesRequest { + // The maximum number of policies to return. The service may return fewer than this value. + // If unspecified, at most 50 policies will be returned. The maximum value is 100; values above + // 100 will be coerced to 100. Optional. + uint32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; + + // A page token, received from a previous `ListPolicies` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListPolicies` must match + // the call that provided the page token. Optional. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are `policy_id`, `organization_id`, `name`, `description`, + // `created_by_user_id`, `modified_by_user_id`, `created_date`, `modified_date`, `archived_date`, and `is_archived`. + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + // For more information about the fields used for filtering, please refer to [this definition](/docs/api/grpc/protocol-buffers/policies#policy). Optional. + string filter = 3 [(google.api.field_behavior) = OPTIONAL]; + + // How to order the retrieved policies. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date`, `modified_date`, and `name`. + // If left empty, items are ordered by `created_date` in descending order (newest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "created_date desc,modified_date" + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Whether to include archived policies in the response. If false or unset, archived policies are excluded. + bool include_archived = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// The result of a call to `PolicyService_ListPolicies`. +message ListPoliciesResponse { + repeated Policy policies = 1; + string next_page_token = 2; +} + +// The request for a call to `PolicyService_CreatePolicy` to create a new policy. +message CreatePolicyRequest { + string name = 1 [(google.api.field_behavior) = REQUIRED]; + optional string description = 2 [(google.api.field_behavior) = OPTIONAL]; + // Policy rules/configuration + PolicyConfiguration configuration = 3 [(google.api.field_behavior) = REQUIRED]; + // Optional notes for this version + optional string version_notes = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response of a call to `PolicyService_CreatePolicy`. +message CreatePolicyResponse { + Policy policy = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The request for a call to `PolicyService_UpdatePolicy` to update a policy. +message UpdatePolicyRequest { + Policy policy = 1 [(google.api.field_behavior) = REQUIRED]; + // The list of fields to be updated. The fields available to be updated are `name`, `description`, `configuration`, and `is_archived`. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Optional notes for the new policy version when configuration changes + optional string version_notes = 3; +} + +// The response of a call to `PolicyService_UpdatePolicy`. +message UpdatePolicyResponse { + Policy policy = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The request for a call to `PolicyService_ArchivePolicy` to archive a policy. +message ArchivePolicyRequest { + string policy_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +// The response of a call to `PolicyService_ArchivePolicy`. +message ArchivePolicyResponse { + Policy policy = 1 [(google.api.field_behavior) = REQUIRED]; +} + diff --git a/protos/sift/resource_attribute/v1/resource_attribute.proto b/protos/sift/resource_attribute/v1/resource_attribute.proto new file mode 100644 index 000000000..260d78ace --- /dev/null +++ b/protos/sift/resource_attribute/v1/resource_attribute.proto @@ -0,0 +1,693 @@ +syntax = "proto3"; + +package sift.resource_attribute.v1; + +import "buf/validate/validate.proto"; +import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "protoc-gen-openapiv2/options/annotations.proto"; + +option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { + info: {title: "Resource Attribute service"} +}; + +service ResourceAttributeService { + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_tag) = {description: "Service to manage ABAC resource attributes (entity attributes)."}; + + rpc CreateResourceAttributeKey(CreateResourceAttributeKeyRequest) returns (CreateResourceAttributeKeyResponse) { + option (google.api.http) = { + post: "/api/v1/resource-attribute-keys" + body: "*" + }; + } + + rpc GetResourceAttributeKey(GetResourceAttributeKeyRequest) returns (GetResourceAttributeKeyResponse) { + option (google.api.http) = {get: "/api/v1/resource-attribute-keys/{resource_attribute_key_id}"}; + } + + rpc ListResourceAttributeKeys(ListResourceAttributeKeysRequest) returns (ListResourceAttributeKeysResponse) { + option (google.api.http) = {get: "/api/v1/resource-attribute-keys"}; + } + + rpc UpdateResourceAttributeKey(UpdateResourceAttributeKeyRequest) returns (UpdateResourceAttributeKeyResponse) { + option (google.api.http) = { + patch: "/api/v1/resource-attribute-keys/{resource_attribute_key_id}" + body: "*" + }; + } + + // Archives a resource_attribute key AND all its associated enum values AND all its associated resource-attributes. + rpc ArchiveResourceAttributeKey(ArchiveResourceAttributeKeyRequest) returns (ArchiveResourceAttributeKeyResponse) { + option (google.api.http) = {post: "/api/v1/resource-attribute-keys/{resource_attribute_key_id}/archive"}; + } + + // Unarchives a resource_attribute key BUT NOT its associated enum values OR resource-attributes. + rpc UnarchiveResourceAttributeKey(UnarchiveResourceAttributeKeyRequest) returns (UnarchiveResourceAttributeKeyResponse) { + option (google.api.http) = {post: "/api/v1/resource-attribute-keys/{resource_attribute_key_id}/unarchive"}; + } + + // Archives multiple resource_attribute keys AND all their associated enum values AND all their associated resource-attributes. + rpc BatchArchiveResourceAttributeKeys(BatchArchiveResourceAttributeKeysRequest) returns (BatchArchiveResourceAttributeKeysResponse) { + option (google.api.http) = { + post: "/api/v1/resource-attribute-keys/batch-archive" + body: "*" + }; + } + + // Unarchives multiple resource_attribute keys BUT NOT their associated enum values OR resource-attributes. + rpc BatchUnarchiveResourceAttributeKeys(BatchUnarchiveResourceAttributeKeysRequest) returns (BatchUnarchiveResourceAttributeKeysResponse) { + option (google.api.http) = { + post: "/api/v1/resource-attribute-keys/batch-unarchive" + body: "*" + }; + } + + rpc CreateResourceAttributeEnumValue(CreateResourceAttributeEnumValueRequest) returns (CreateResourceAttributeEnumValueResponse) { + option (google.api.http) = { + post: "/api/v1/resource-attribute-enum-values" + body: "*" + }; + } + + rpc GetResourceAttributeEnumValue(GetResourceAttributeEnumValueRequest) returns (GetResourceAttributeEnumValueResponse) { + option (google.api.http) = {get: "/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}"}; + } + + rpc ListResourceAttributeEnumValues(ListResourceAttributeEnumValuesRequest) returns (ListResourceAttributeEnumValuesResponse) { + option (google.api.http) = {get: "/api/v1/resource-attribute-keys/{resource_attribute_key_id}/enum-values"}; + } + + rpc UpdateResourceAttributeEnumValue(UpdateResourceAttributeEnumValueRequest) returns (UpdateResourceAttributeEnumValueResponse) { + option (google.api.http) = { + patch: "/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}" + body: "*" + }; + } + + // Archives an enum value and migrates all resource-attributes with that value to a replacement value. + rpc ArchiveResourceAttributeEnumValue(ArchiveResourceAttributeEnumValueRequest) returns (ArchiveResourceAttributeEnumValueResponse) { + option (google.api.http) = { + post: "/api/v1/resource-attribute-enum-values/{archived_enum_value_id}/archive" + body: "*" + }; + } + + // Unarchives an enum value BUT DOES NOT migrate resource-attributes with a replacement value back to the original value. + rpc UnarchiveResourceAttributeEnumValue(UnarchiveResourceAttributeEnumValueRequest) returns (UnarchiveResourceAttributeEnumValueResponse) { + option (google.api.http) = {post: "/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}/unarchive"}; + } + + // Archives multiple enum values and migrates all resource-attributes with those values to their respective replacement values. + rpc BatchArchiveResourceAttributeEnumValues(BatchArchiveResourceAttributeEnumValuesRequest) returns (BatchArchiveResourceAttributeEnumValuesResponse) { + option (google.api.http) = { + post: "/api/v1/resource-attribute-enum-values/batch-archive" + body: "*" + }; + } + + // Unarchives multiple enum values BUT DOES NOT migrate resource-attributes with a replacement value back to the original value. + rpc BatchUnarchiveResourceAttributeEnumValues(BatchUnarchiveResourceAttributeEnumValuesRequest) returns (BatchUnarchiveResourceAttributeEnumValuesResponse) { + option (google.api.http) = { + post: "/api/v1/resource-attribute-enum-values/batch-unarchive" + body: "*" + }; + } + + // Creates relation between an Entity and a ResourceAttribute Key and Value. + rpc CreateResourceAttribute(CreateResourceAttributeRequest) returns (CreateResourceAttributeResponse) { + option (google.api.http) = { + post: "/api/v1/resource-attributes" + body: "*" + }; + } + + // Creates resource-attributes for multiple entities with the same key-value pair. + rpc BatchCreateResourceAttributes(BatchCreateResourceAttributesRequest) returns (BatchCreateResourceAttributesResponse) { + option (google.api.http) = { + post: "/api/v1/resource-attributes/batch" + body: "*" + }; + } + + rpc GetResourceAttribute(GetResourceAttributeRequest) returns (GetResourceAttributeResponse) { + option (google.api.http) = {get: "/api/v1/resource-attributes/{resource_attribute_id}"}; + } + + rpc ListResourceAttributes(ListResourceAttributesRequest) returns (ListResourceAttributesResponse) { + option (google.api.http) = {get: "/api/v1/resource-attributes"}; + } + + // Lists all resource-attributes for a specific entity. Excludes archived by default. + rpc ListResourceAttributesByEntity(ListResourceAttributesByEntityRequest) returns (ListResourceAttributesByEntityResponse) { + option (google.api.http) = {get: "/api/v1/entities/{entity.entity_id}/resource-attributes"}; + } + + rpc ArchiveResourceAttribute(ArchiveResourceAttributeRequest) returns (ArchiveResourceAttributeResponse) { + option (google.api.http) = {post: "/api/v1/resource-attributes/{resource_attribute_id}/archive"}; + } + + rpc UnarchiveResourceAttribute(UnarchiveResourceAttributeRequest) returns (UnarchiveResourceAttributeResponse) { + option (google.api.http) = {post: "/api/v1/resource-attributes/{resource_attribute_id}/unarchive"}; + } + + // Archives multiple resource-attributes. + rpc BatchArchiveResourceAttributes(BatchArchiveResourceAttributesRequest) returns (BatchArchiveResourceAttributesResponse) { + option (google.api.http) = { + post: "/api/v1/resource-attributes/batch-archive" + body: "*" + }; + } + + // Unarchives multiple resource-attributes. + rpc BatchUnarchiveResourceAttributes(BatchUnarchiveResourceAttributesRequest) returns (BatchUnarchiveResourceAttributesResponse) { + option (google.api.http) = { + post: "/api/v1/resource-attributes/batch-unarchive" + body: "*" + }; + } +} + +// Values become selectable enumerable options. +enum ResourceAttributeKeyType { + RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED = 0; + RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM = 1; + RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN = 2; + RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER = 3; + RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM = 4; +} + +// A ResourceAttribute Key defines an attribute that can be assigned to Entities for the purpose of attribute based access control (ABAC). +message ResourceAttributeKey { + string resource_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string organization_id = 2 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + ResourceAttributeKeyType type = 5 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.Timestamp created_date = 6 [(google.api.field_behavior) = REQUIRED]; + string created_by_user_id = 7 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + google.protobuf.Timestamp modified_date = 8 [(google.api.field_behavior) = REQUIRED]; + string modified_by_user_id = 9 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + google.protobuf.Timestamp archived_date = 10 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a possible enumerable value for ENUM type resource_attribute keys. +// Users can add new enum values as needed. +message ResourceAttributeEnumValue { + string resource_attribute_enum_value_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string resource_attribute_key_id = 2 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Timestamp created_date = 5 [(google.api.field_behavior) = REQUIRED]; + string created_by_user_id = 6 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + google.protobuf.Timestamp modified_date = 7 [(google.api.field_behavior) = REQUIRED]; + string modified_by_user_id = 8 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + google.protobuf.Timestamp archived_date = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +enum ResourceAttributeEntityType { + RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED = 0; + RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET = 1; + RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL = 2; +} + +// Represents the assignment of a resource_attribute key-value pair to an entity (asset or channel). +message ResourceAttribute { + string resource_attribute_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string organization_id = 2 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + ResourceAttributeEntityIdentifier entity = 3 [(google.api.field_behavior) = REQUIRED]; + string resource_attribute_key_id = 4 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + // Populated in responses with full key details. + ResourceAttributeKey key = 5 [(google.api.field_behavior) = OPTIONAL]; + oneof value { + string resource_attribute_enum_value_id = 6 [(buf.validate.field).string.uuid = true]; + bool boolean_value = 7; + double number_value = 8; + } + // Populated in responses with full enum value details. + ResourceAttributeEnumValue enum_value_details = 9 [(google.api.field_behavior) = OPTIONAL]; + // The timestamp when the relation between the Entity and ResourceAttribute Key and Value was created. + google.protobuf.Timestamp created_date = 10 [(google.api.field_behavior) = REQUIRED]; + string created_by_user_id = 11 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + google.protobuf.Timestamp archived_date = 12 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents an entity to which a resource_attribute will be assigned. +message ResourceAttributeEntityIdentifier { + string entity_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + ResourceAttributeEntityType entity_type = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// ResourceAttribute Key RPC messages +message CreateResourceAttributeKeyRequest { + string display_name = 1 [(google.api.field_behavior) = REQUIRED]; + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + ResourceAttributeKeyType type = 3 [(google.api.field_behavior) = REQUIRED]; + // Optional initial enum values to create alongside the key. Only applicable for ENUM type keys. + repeated InitialEnumValue initial_enum_values = 4 [ + (google.api.field_behavior) = OPTIONAL, + (buf.validate.field).repeated.max_items = 100 + ]; + + // Nested message for initial enum values in create requests. + message InitialEnumValue { + string display_name = 1 [(google.api.field_behavior) = REQUIRED]; + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + } +} + +message CreateResourceAttributeKeyResponse { + ResourceAttributeKey resource_attribute_key = 1 [(google.api.field_behavior) = REQUIRED]; + // The enum values created alongside the key, if any were provided in the request. + repeated ResourceAttributeEnumValue enum_values = 2; +} + +message GetResourceAttributeKeyRequest { + string resource_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +message GetResourceAttributeKeyResponse { + ResourceAttributeKey resource_attribute_key = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message ListResourceAttributeKeysRequest { + // The maximum number of resource_attribute keys to return. The service may return fewer than this value. + // If unspecified, at most 50 resource_attribute keys will be returned. The maximum value is 100; values above + // 100 will be coerced to 100. + uint32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; + + // A page token, received from a previous `ListResourceAttributeKeys` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListResourceAttributeKeys` must match + // the call that provided the page token. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are `resource_attribute_key_id`, `name`, `description`, `type`, + // `created_by_user_id`, `modified_by_user_id`, `created_date`, `modified_date`, and `archived_date`. + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + string filter = 3 [(google.api.field_behavior) = OPTIONAL]; + + // How to order the retrieved resource_attribute keys. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date`, `modified_date`, and `name`. + // If left empty, items are ordered by `created_date` in descending order (newest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "created_date desc,name" + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Whether to include archived resource_attribute keys. Defaults to false. + bool include_archived = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +message ListResourceAttributeKeysResponse { + repeated ResourceAttributeKey resource_attribute_keys = 1; + string next_page_token = 2; +} + +message UpdateResourceAttributeKeyRequest { + string resource_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + // The list of fields to be updated. The fields available to be updated are `display_name`, `description`, and `archived_date`. + google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; +} + +message UpdateResourceAttributeKeyResponse { + ResourceAttributeKey resource_attribute_key = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message ArchiveResourceAttributeKeyRequest { + string resource_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +message ArchiveResourceAttributeKeyResponse {} + +message UnarchiveResourceAttributeKeyRequest { + string resource_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +message UnarchiveResourceAttributeKeyResponse {} + +message BatchArchiveResourceAttributeKeysRequest { + repeated string resource_attribute_key_ids = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).repeated.min_items = 1, + (buf.validate.field).repeated.max_items = 5000, + (buf.validate.field).repeated.items.string.uuid = true + ]; +} + +message BatchArchiveResourceAttributeKeysResponse {} + +message BatchUnarchiveResourceAttributeKeysRequest { + repeated string resource_attribute_key_ids = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).repeated.min_items = 1, + (buf.validate.field).repeated.max_items = 5000, + (buf.validate.field).repeated.items.string.uuid = true + ]; +} + +message BatchUnarchiveResourceAttributeKeysResponse {} + +// ResourceAttribute Enum Value RPC messages +message CreateResourceAttributeEnumValueRequest { + string resource_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + string description = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +message CreateResourceAttributeEnumValueResponse { + ResourceAttributeEnumValue resource_attribute_enum_value = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message GetResourceAttributeEnumValueRequest { + string resource_attribute_enum_value_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +message GetResourceAttributeEnumValueResponse { + ResourceAttributeEnumValue resource_attribute_enum_value = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message ListResourceAttributeEnumValuesRequest { + string resource_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + + // The maximum number of enum values to return. The service may return fewer than this value. + // If unspecified, at most 50 enum values will be returned. The maximum value is 100; values above + // 100 will be coerced to 100. + uint32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // A page token, received from a previous `ListResourceAttributeEnumValues` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListResourceAttributeEnumValues` must match + // the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are `resource_attribute_enum_value_id`, `name`, `description`, + // `created_by_user_id`, `modified_by_user_id`, `created_date`, `modified_date`, and `archived_date`. + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // How to order the retrieved enum values. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date`, `modified_date`, and `name`. + // If left empty, items are ordered by `created_date` in descending order (newest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "name,created_date desc" + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Whether to include archived enum values. Defaults to false. + bool include_archived = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +message ListResourceAttributeEnumValuesResponse { + repeated ResourceAttributeEnumValue resource_attribute_enum_values = 1; + string next_page_token = 2; +} + +message UpdateResourceAttributeEnumValueRequest { + string resource_attribute_enum_value_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + // The list of fields to be updated. The fields available to be updated are `display_name`, `description`, and `archived_date`. + google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; +} + +message UpdateResourceAttributeEnumValueResponse { + ResourceAttributeEnumValue resource_attribute_enum_value = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message ArchiveResourceAttributeEnumValueRequest { + string archived_enum_value_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + // When the archived_enum_value_id is archived all resource-attributes that reference it will be migrated to the replacement_enum_value_id. + string replacement_enum_value_id = 2 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +message ArchiveResourceAttributeEnumValueResponse { + // Total number of resource-attributes migrated to the replacement enum value. + int32 resource_attributes_migrated = 1; +} + +message UnarchiveResourceAttributeEnumValueRequest { + string resource_attribute_enum_value_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +message UnarchiveResourceAttributeEnumValueResponse {} + +message BatchArchiveResourceAttributeEnumValuesRequest { + message EnumValueArchival { + // The enum value ID to archive. + string archived_enum_value_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + // The enum value ID to migrate resource-attributes to. + string replacement_enum_value_id = 2 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + } + + repeated EnumValueArchival archival_requests = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).repeated.min_items = 1, + (buf.validate.field).repeated.max_items = 5000 + ]; +} + +message BatchArchiveResourceAttributeEnumValuesResponse { + // Total number of resource-attributes migrated across all archived enum values. + int32 total_resource_attributes_migrated = 1; +} + +message BatchUnarchiveResourceAttributeEnumValuesRequest { + repeated string resource_attribute_enum_value_ids = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).repeated.min_items = 1, + (buf.validate.field).repeated.max_items = 5000, + (buf.validate.field).repeated.items.string.uuid = true + ]; +} + +message BatchUnarchiveResourceAttributeEnumValuesResponse {} + +// ResourceAttribute RPC messages +message CreateResourceAttributeRequest { + ResourceAttributeEntityIdentifier entity = 1 [(google.api.field_behavior) = REQUIRED]; + string resource_attribute_key_id = 2 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + oneof value { + string resource_attribute_enum_value_id = 3 [(buf.validate.field).string.uuid = true]; + bool boolean_value = 4; + double number_value = 5; + } +} + +message CreateResourceAttributeResponse { + ResourceAttribute resource_attribute = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message BatchCreateResourceAttributesRequest { + string resource_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + oneof value { + string resource_attribute_enum_value_id = 2 [(buf.validate.field).string.uuid = true]; + bool boolean_value = 3; + double number_value = 4; + } + repeated ResourceAttributeEntityIdentifier entities = 5 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).repeated.min_items = 1, + (buf.validate.field).repeated.max_items = 5000 + ]; +} + +message BatchCreateResourceAttributesResponse { + repeated ResourceAttribute resource_attributes = 1; +} + +message GetResourceAttributeRequest { + string resource_attribute_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +message GetResourceAttributeResponse { + ResourceAttribute resource_attribute = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message ListResourceAttributesRequest { + // The maximum number of resource-attributes to return. The service may return fewer than this value. + // If unspecified, at most 50 resource-attributes will be returned. The maximum value is 100; values above + // 100 will be coerced to 100. + uint32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; + + // A page token, received from a previous `ListResourceAttributes` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListResourceAttributes` must match + // the call that provided the page token. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are `resource_attribute_id`, `entity_id`, `entity_type`, `resource_attribute_key_id`, `created_by_user_id`, + // `resource_attribute_enum_value_id`, `boolean_value`, `number_value`, `created_by_user_id`, `created_date`, and `archived_date`. + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + string filter = 3 [(google.api.field_behavior) = OPTIONAL]; + + // How to order the retrieved resource-attributes. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date` and `entity.entity_id`. + // If left empty, items are ordered by `created_date` in descending order (newest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "entity.entity_id,created_date desc" + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Whether to include archived resource-attributes. Defaults to false. + bool include_archived = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +message ListResourceAttributesResponse { + repeated ResourceAttribute resource_attributes = 1; + string next_page_token = 2; +} + +message ListResourceAttributesByEntityRequest { + ResourceAttributeEntityIdentifier entity = 1 [(google.api.field_behavior) = REQUIRED]; + + // Whether to include archived resource-attributes. Defaults to false. + bool include_archived = 2 [(google.api.field_behavior) = OPTIONAL]; + + // The maximum number of resource-attributes to return. The service may return fewer than this value. + // If unspecified, at most 50 resource-attributes will be returned. The maximum value is 100; values above + // 100 will be coerced to 100. + uint32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // A page token, received from a previous `ListResourceAttributesByEntity` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListResourceAttributesByEntity` must match + // the call that provided the page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +message ListResourceAttributesByEntityResponse { + repeated ResourceAttribute resource_attributes = 1; + string next_page_token = 2; +} + +message ArchiveResourceAttributeRequest { + string resource_attribute_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +message ArchiveResourceAttributeResponse {} + +message UnarchiveResourceAttributeRequest { + string resource_attribute_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +message UnarchiveResourceAttributeResponse {} + +message BatchArchiveResourceAttributesRequest { + repeated string resource_attribute_ids = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).repeated.min_items = 1, + (buf.validate.field).repeated.max_items = 5000, + (buf.validate.field).repeated.items.string.uuid = true + ]; +} + +message BatchArchiveResourceAttributesResponse {} + +message BatchUnarchiveResourceAttributesRequest { + repeated string resource_attribute_ids = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).repeated.min_items = 1, + (buf.validate.field).repeated.max_items = 5000, + (buf.validate.field).repeated.items.string.uuid = true + ]; +} + +message BatchUnarchiveResourceAttributesResponse {} + diff --git a/protos/sift/user_attributes/v1/user_attributes.proto b/protos/sift/user_attributes/v1/user_attributes.proto new file mode 100644 index 000000000..47579f1c5 --- /dev/null +++ b/protos/sift/user_attributes/v1/user_attributes.proto @@ -0,0 +1,457 @@ +syntax = "proto3"; + +package sift.user_attributes.v1; + +import "buf/validate/validate.proto"; +import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "protoc-gen-openapiv2/options/annotations.proto"; + +option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { + info: {title: "User attributes service"} +}; + +service UserAttributesService { + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_tag) = {description: "Service to manage ABAC user attributes (principal attributes)."}; + + // Creates a user attribute key. + rpc CreateUserAttributeKey(CreateUserAttributeKeyRequest) returns (CreateUserAttributeKeyResponse) { + option (google.api.http) = { + post: "/api/v1/user-attribute-keys" + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "CreateUserAttributeKey", + description: "Create a user attribute key." + }; + } + + // Retrieves a user attribute key. + rpc GetUserAttributeKey(GetUserAttributeKeyRequest) returns (GetUserAttributeKeyResponse) { + option (google.api.http) = {get: "/api/v1/user-attribute-keys/{user_attribute_key_id}"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "GetUserAttributeKey", + description: "Retrieves a user attribute key." + }; + } + + // Lists user attribute keys, respecting the provided filter. + rpc ListUserAttributeKeys(ListUserAttributeKeysRequest) returns (ListUserAttributeKeysResponse) { + option (google.api.http) = {get: "/api/v1/user-attribute-keys"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "ListUserAttributeKeys", + description: "Lists user attribute keys." + }; + } + + // Updates an existing user attribute key. + rpc UpdateUserAttributeKey(UpdateUserAttributeKeyRequest) returns (UpdateUserAttributeKeyResponse) { + option (google.api.http) = { + patch: "/api/v1/user-attribute-keys/{user_attribute_key_id}" + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "UpdateUserAttributeKey", + description: "Updates an existing user attribute key." + }; + } + + // Batch archives user attribute keys AND all their associated user attribute values. + rpc ArchiveUserAttributeKeys(ArchiveUserAttributeKeysRequest) returns (ArchiveUserAttributeKeysResponse) { + option (google.api.http) = { + post: "/api/v1/user-attribute-keys/archive", + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "ArchiveUserAttributeKeys", + description: "Archive user attribute keys." + }; + } + + // Batch unarchives user attribute keys. + rpc UnarchiveUserAttributeKeys(UnarchiveUserAttributeKeysRequest) returns (UnarchiveUserAttributeKeysResponse) { + option (google.api.http) = { + post: "/api/v1/user-attribute-keys/unarchive", + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "UnarchiveUserAttributeKeys", + description: "Unarchive user attribute keys." + }; + } + + // Creates a user attribute value. + rpc CreateUserAttributeValue(CreateUserAttributeValueRequest) returns (CreateUserAttributeValueResponse) { + option (google.api.http) = { + post: "/api/v1/user-attribute-values" + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "CreateUserAttributeValue", + description: "Create a user attribute value." + }; + } + + // Creates a user attribute value for multiple users in a single operation. + rpc BatchCreateUserAttributeValue(BatchCreateUserAttributeValueRequest) returns (BatchCreateUserAttributeValueResponse) { + option (google.api.http) = { + post: "/api/v1/user-attribute-values/batch" + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "BatchCreateUserAttributeValue", + description: "Creates a user attribute value for multiple users in a single operation." + }; + } + + // Retrieves a user attribute value. + rpc GetUserAttributeValue(GetUserAttributeValueRequest) returns (GetUserAttributeValueResponse) { + option (google.api.http) = {get: "/api/v1/user-attribute-values/{user_attribute_value_id}"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "GetUserAttributeValue", + description: "Retrieves a user attribute value." + }; + } + + // Lists user attribute values for a given user attribute key, respecting the provided filter. + rpc ListUserAttributeKeyValues(ListUserAttributeKeyValuesRequest) returns (ListUserAttributeKeyValuesResponse) { + option (google.api.http) = {get: "/api/v1/user-attribute-keys/{user_attribute_key_id}/user-attribute-values"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "ListUserAttributeKeyValues", + description: "Lists user attribute values for a given user attribute key." + }; + } + + // List user attributes values, respecting the provided filter. + rpc ListUserAttributeValues(ListUserAttributeValuesRequest) returns (ListUserAttributeValuesResponse) { + option (google.api.http) = {get: "/api/v1/user-attribute-values"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "ListUserAttributeValues", + description: "Lists user attribute values." + }; + } + + // Batch archives user attribute values. + rpc ArchiveUserAttributeValues(ArchiveUserAttributeValuesRequest) returns (ArchiveUserAttributeValuesResponse) { + option (google.api.http) = { + post: "/api/v1/user-attribute-values/archive", + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "ArchiveUserAttributeValues", + description: "Archive user attribute values." + }; + } + + // Batch unarchives user attribute values. + rpc UnarchiveUserAttributeValues(UnarchiveUserAttributeValuesRequest) returns (UnarchiveUserAttributeValuesResponse) { + option (google.api.http) = { + post: "/api/v1/user-attribute-values/unarchive", + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "UnarchiveUserAttributeValues", + description: "Unarchive user attribute values." + }; + } +} + +// UserAttributeValueType enumerates the supported value types for a user attribute key. +enum UserAttributeValueType { + USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED = 0; + USER_ATTRIBUTE_VALUE_TYPE_STRING = 1; + USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN = 2; + USER_ATTRIBUTE_VALUE_TYPE_NUMBER = 3; + USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING = 4; +} + +message UserAttributeKey { + string user_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string organization_id = 2 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string name = 3 [(google.api.field_behavior) = REQUIRED]; + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + UserAttributeValueType type = 5 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.Timestamp created_date = 6 [(google.api.field_behavior) = REQUIRED]; + string created_by_user_id = 7 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + google.protobuf.Timestamp modified_date = 8 [(google.api.field_behavior) = REQUIRED]; + string modified_by_user_id = 9 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + google.protobuf.Timestamp archived_date = 10 [(google.api.field_behavior) = OPTIONAL]; + // Whether or not the user attribute key is archived. This is inferred from whether archived_date is set. + bool is_archived = 11 [(google.api.field_behavior) = OPTIONAL]; +} + +// CreateUserAttributeKeyRequest is used to create a new user attribute key. +message CreateUserAttributeKeyRequest { + string name = 1 [(google.api.field_behavior) = REQUIRED]; + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + UserAttributeValueType type = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// CreateUserAttributeKeyResponse returns the user attribute key from a CreateUserAttributeKey call. +message CreateUserAttributeKeyResponse { + UserAttributeKey user_attribute_key = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// UpdateUserAttributeKeyRequest is used to update an existing user attribute key. +message UpdateUserAttributeKeyRequest { + string user_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string name = 2 [(google.api.field_behavior) = OPTIONAL]; + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + // The list of fields to be updated. The fields available to be updated are `name` and 'description'. + google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// UpdateUserAttributeKeyResponse returns the user attribute key from a UpdateUserAttributeKey call. +message UpdateUserAttributeKeyResponse { + UserAttributeKey user_attribute_key = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// GetUserAttributeKeyRequest is used to retrieve a user attribute key. +message GetUserAttributeKeyRequest { + string user_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +// GetUserAttributeKeyResponse returns a user attribute key from a GetUserAttributeKey call. +message GetUserAttributeKeyResponse { + UserAttributeKey user_attribute_key = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// ListUserAttributeKeysRequest is used to list user attribute keys with the provided filter. +message ListUserAttributeKeysRequest { + // The maximum number of user attribute keys to return. The service may return fewer than this value. + // If unspecified, at most 50 user attribute keys will be returned. The maximum value is 1000. Values + // above 1000 will be coerced to 1000. Optional. + uint32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; + // A page token, received from a previous `ListUserAttributeKeys` call. + // Provide this to retrieve a subsequent page of user attribute keys. + // When paginating, all other parameters provided to `ListUserAttributeKeys` must match the previous call + // that provided the page token. Optional. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are: + // 'user_attribute_key_id', 'name', 'value_type', 'created_by_user_id', 'created_date', 'modified_by_user_id, 'modified_date' + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + // For more information about the fields used for filtering, please refer to this definition. Optional. + string filter = 3 [(google.api.field_behavior) = OPTIONAL]; + // How to order the retrieved user attribute keys. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date`, 'modified_date', 'name', 'user_attribute_key_id', 'value_type', 'description' + // If left empty, items are ordered by `created_date` in ascending order (oldest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "created_date desc,modified_date" + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + string organization_id = 5 [(google.api.field_behavior) = OPTIONAL]; + // If true, includes archived keys. Defaulta to false. Optional. + bool include_archived = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// ListUserAttributeKeysResponse returns the list of user attribute keys from a ListUserAttributeKeys call. +message ListUserAttributeKeysResponse { + repeated UserAttributeKey user_attribute_keys = 1 [(google.api.field_behavior) = REQUIRED]; + string next_page_token = 2; +} + +// ArchiveUserAttributeKeysRequest is used to batch archive user attribute keys by id. +message ArchiveUserAttributeKeysRequest { + repeated string user_attribute_key_ids = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message ArchiveUserAttributeKeysResponse {} + +// UnarchiveUserAttributeKeysRequest is used to batch unarchive user attribute keys by id. +message UnarchiveUserAttributeKeysRequest { + repeated string user_attribute_key_ids = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message UnarchiveUserAttributeKeysResponse {} + +message UserAttributeValue { + string user_attribute_value_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string user_attribute_key_id = 2 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string user_id = 3 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string organization_id = 4 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + oneof value { + string string_value = 5; + double number_value = 6; + bool boolean_value = 7; + } + string created_by_user_id = 8 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + google.protobuf.Timestamp created_date = 9 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.Timestamp archived_date = 10 [(google.api.field_behavior) = OPTIONAL]; + // Whether or not the user attribute value is archived. This is inferred from whether archived_date is set. + bool is_archived = 11 [(google.api.field_behavior) = OPTIONAL]; + // The full user attribute key is populated in the response. + UserAttributeKey key = 12 [(google.api.field_behavior) = REQUIRED]; +} + +// CreateUserAttributeValueRequest is used to create a new user attribute value. +message CreateUserAttributeValueRequest { + string user_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + string user_id = 2 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + oneof value { + string string_value = 4; + double number_value = 5; + bool boolean_value = 6; + } +} + +// CreateUserAttributeValueResponse returns the user attribute value from a CreateUserAttributeValue call. +message CreateUserAttributeValueResponse { + UserAttributeValue user_attribute_value = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// BatchCreateUserAttributeValueRequest is used to batch create new user attribute values. +message BatchCreateUserAttributeValueRequest { + string user_attribute_key_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; + repeated string user_ids = 2 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).repeated.min_items = 1, + (buf.validate.field).repeated.max_items = 5000 + ]; + oneof value { + string string_value = 3; + double number_value = 4; + bool boolean_value = 5; + } +} + +// +// BatchCreateUserAttributeValueResponse returns the user attribute value from a BatchCreateUserAttributeValue call. +message BatchCreateUserAttributeValueResponse { + repeated UserAttributeValue user_attribute_values = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// ListUserAttributeKeyValues is used to list user attribute values for a given user attribute key with the provided filter. +message ListUserAttributeKeyValuesRequest { + // The id of the user attribute key to list values for. + string user_attribute_key_id = 1 [(google.api.field_behavior) = REQUIRED]; + // The maximum number of user attribute values to return. The service may return fewer than this value. + // If unspecified, at most 50 user attribute values will be returned. The maximum value is 1000. Values + // above 1000 will be coerced to 1000. Optional. + uint32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + // A page token, received from a previous `ListUserAttributeKeyValues` call. + // Provide this to retrieve a subsequent page of user attribute values. + // When paginating, all other parameters provided to `ListUserAttributeValues` must match the previous call + // that provided the page token. Optional. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are: + // 'user_attribute_value_id', 'user_attribute_key_id', 'string_value', 'number_value', 'boolean_value', 'created_date', 'created_by_user_id' and 'user_id' + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + // For more information about the fields used for filtering, please refer to this definition. Optional. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + // How to order the retrieved user attribute values. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date` + // If left empty, items are ordered by `created_date` in ascending order (oldest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "created_date desc" + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + // If true, include archived values. Defaults to false. Optional. + bool include_archived = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// ListUserAttributeKeyValuesResponse returns the list of user attribute values from a ListUserAttributeKeyValues call. +message ListUserAttributeKeyValuesResponse { + repeated UserAttributeValue user_attribute_values = 1 [(google.api.field_behavior) = REQUIRED]; + string next_page_token = 2; +} + +message ListUserAttributeValuesRequest { + // The maximum number of user attribute values to return. The service may return fewer than this value. + // If unspecified, at most 50 user attribute values will be returned. The maximum value is 1000. Values + // above 1000 will be coerced to 1000. Optional. + uint32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; + // A page token, received from a previous `ListUserAttributeValues` call. + // Provide this to retrieve a subsequent page of user attribute values. + // When paginating, all other parameters provided to `ListUserAttributeValues` must match the previous call + // that provided the page token. Optional. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + // Available fields to filter by are: + // 'user_attribute_value_id', 'user_attribute_key_id', 'string_value', 'number_value', 'boolean_value', 'created_date', 'created_by_user_id', 'archived_date' and 'user_id' + // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + // For more information about the fields used for filtering, please refer to this definition. Optional. + string filter = 3 [(google.api.field_behavior) = OPTIONAL]; + // How to order the retrieved user attribute values. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + // Available fields to order_by are `created_date` + // If left empty, items are ordered by `created_date` in ascending order (oldest-first). + // For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + // Example: "created_date desc" + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +message ListUserAttributeValuesResponse { + repeated UserAttributeValue user_attribute_values = 1 [(google.api.field_behavior) = REQUIRED]; + string next_page_token = 2; +} + +// GetUserAttributeValueRequest is used to retrieve a user attribute value. +message GetUserAttributeValueRequest { + string user_attribute_value_id = 1 [ + (google.api.field_behavior) = REQUIRED, + (buf.validate.field).string.uuid = true + ]; +} + +// GetUserAttributeValueResponse returns a user attribute value from a GetUserAttributeValue call. +message GetUserAttributeValueResponse { + UserAttributeValue user_attribute_value = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// ArchiveUserAttributeValuesRequest is used to batch archive user attribute values by id. +message ArchiveUserAttributeValuesRequest { + repeated string user_attribute_value_ids = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message ArchiveUserAttributeValuesResponse {} + +// UnarchiveUserAttributeValuesRequest is used to batch unarchive user attribute values by id. +message UnarchiveUserAttributeValuesRequest { + repeated string user_attribute_value_ids = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message UnarchiveUserAttributeValuesResponse {} + diff --git a/python/lib/sift/policies/__init__.py b/python/lib/sift/policies/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/python/lib/sift/policies/v1/__init__.py b/python/lib/sift/policies/v1/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/python/lib/sift/policies/v1/policies_pb2.py b/python/lib/sift/policies/v1/policies_pb2.py new file mode 100644 index 000000000..0e1e5a255 --- /dev/null +++ b/python/lib/sift/policies/v1/policies_pb2.py @@ -0,0 +1,133 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: sift/policies/v1/policies.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fsift/policies/v1/policies.proto\x12\x10sift.policies.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x86\x07\n\x06Policy\x12(\n\tpolicy_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x08policyId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x12*\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00R\x0b\x64\x65scription\x88\x01\x01\x12\x34\n\x0forganization_id\x18\x04 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0eorganizationId\x12\x38\n\x12\x63reated_by_user_id\x18\x05 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0f\x63reatedByUserId\x12:\n\x13modified_by_user_id\x18\x06 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x10modifiedByUserId\x12\x42\n\x0c\x63reated_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12P\n\rconfiguration\x18\t \x01(\x0b\x32%.sift.policies.v1.PolicyConfigurationB\x03\xe0\x41\x02R\rconfiguration\x12\x37\n\x11policy_version_id\x18\n \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0fpolicyVersionId\x12\x44\n\rarchived_date\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01R\x0c\x61rchivedDate\x12$\n\x0bis_archived\x18\x0c \x01(\x08\x42\x03\xe0\x41\x02R\nisArchived\x12\"\n\x07version\x18\r \x01(\x05\x42\x03\xe0\x41\x01H\x01R\x07version\x88\x01\x01\x12-\n\rversion_notes\x18\x0e \x01(\tB\x03\xe0\x41\x01H\x02R\x0cversionNotes\x88\x01\x01\x12\x42\n\x18generated_change_message\x18\x0f \x01(\tB\x03\xe0\x41\x01H\x03R\x16generatedChangeMessage\x88\x01\x01\x42\x0e\n\x0c_descriptionB\n\n\x08_versionB\x10\n\x0e_version_notesB\x1b\n\x19_generated_change_message\"8\n\x13PolicyConfiguration\x12!\n\x0c\x63\x65\x64\x61r_policy\x18\x01 \x01(\tR\x0b\x63\x65\x64\x61rPolicy\"<\n\x10GetPolicyRequest\x12(\n\tpolicy_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x08policyId\"J\n\x11GetPolicyResponse\x12\x35\n\x06policy\x18\x01 \x01(\x0b\x32\x18.sift.policies.v1.PolicyB\x03\xe0\x41\x02R\x06policy\"\xc8\x01\n\x13ListPoliciesRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\x12\x1e\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x07orderBy\x12.\n\x10include_archived\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01R\x0fincludeArchived\"t\n\x14ListPoliciesResponse\x12\x34\n\x08policies\x18\x01 \x03(\x0b\x32\x18.sift.policies.v1.PolicyR\x08policies\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xfd\x01\n\x13\x43reatePolicyRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12*\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00R\x0b\x64\x65scription\x88\x01\x01\x12P\n\rconfiguration\x18\x03 \x01(\x0b\x32%.sift.policies.v1.PolicyConfigurationB\x03\xe0\x41\x02R\rconfiguration\x12-\n\rversion_notes\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x01R\x0cversionNotes\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x10\n\x0e_version_notes\"M\n\x14\x43reatePolicyResponse\x12\x35\n\x06policy\x18\x01 \x01(\x0b\x32\x18.sift.policies.v1.PolicyB\x03\xe0\x41\x02R\x06policy\"\xca\x01\n\x13UpdatePolicyRequest\x12\x35\n\x06policy\x18\x01 \x01(\x0b\x32\x18.sift.policies.v1.PolicyB\x03\xe0\x41\x02R\x06policy\x12@\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02R\nupdateMask\x12(\n\rversion_notes\x18\x03 \x01(\tH\x00R\x0cversionNotes\x88\x01\x01\x42\x10\n\x0e_version_notes\"M\n\x14UpdatePolicyResponse\x12\x35\n\x06policy\x18\x01 \x01(\x0b\x32\x18.sift.policies.v1.PolicyB\x03\xe0\x41\x02R\x06policy\"@\n\x14\x41rchivePolicyRequest\x12(\n\tpolicy_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x08policyId\"N\n\x15\x41rchivePolicyResponse\x12\x35\n\x06policy\x18\x01 \x01(\x0b\x32\x18.sift.policies.v1.PolicyB\x03\xe0\x41\x02R\x06policy2\x91\x08\n\rPolicyService\x12\xb5\x01\n\tGetPolicy\x12\".sift.policies.v1.GetPolicyRequest\x1a#.sift.policies.v1.GetPolicyResponse\"_\x92\x41\x38\x12\tGetPolicy\x1a\x12Retrieve a policy.*\x17PolicyService_GetPolicy\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/v1/policies/{policy_id}\x12\xd1\x01\n\x0cListPolicies\x12%.sift.policies.v1.ListPoliciesRequest\x1a&.sift.policies.v1.ListPoliciesResponse\"r\x92\x41W\x12\x0cListPolicies\x1a+Retrieve policies using an optional filter.*\x1aPolicyService_ListPolicies\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v1/policies\x12\xbd\x01\n\x0c\x43reatePolicy\x12%.sift.policies.v1.CreatePolicyRequest\x1a&.sift.policies.v1.CreatePolicyResponse\"^\x92\x41@\x12\x0c\x43reatePolicy\x1a\x14\x43reate a new policy.*\x1aPolicyService_CreatePolicy\x82\xd3\xe4\x93\x02\x15\"\x10/api/v1/policies:\x01*\x12\xb9\x01\n\x0cUpdatePolicy\x12%.sift.policies.v1.UpdatePolicyRequest\x1a&.sift.policies.v1.UpdatePolicyResponse\"Z\x92\x41<\x12\x0cUpdatePolicy\x1a\x10Update a policy.*\x1aPolicyService_UpdatePolicy\x82\xd3\xe4\x93\x02\x15\x32\x10/api/v1/policies:\x01*\x12\xd0\x01\n\rArchivePolicy\x12&.sift.policies.v1.ArchivePolicyRequest\x1a\'.sift.policies.v1.ArchivePolicyResponse\"n\x92\x41?\x12\rArchivePolicy\x1a\x11\x41rchive a policy.*\x1bPolicyService_ArchivePolicy\x82\xd3\xe4\x93\x02&\"$/api/v1/policies/{policy_id}/archive\x1a%\x92\x41\"\x12 Service to manage ABAC policies.B\x9c\x01\n\x14\x63om.sift.policies.v1B\rPoliciesProtoP\x01\xa2\x02\x03SPX\xaa\x02\x10Sift.Policies.V1\xca\x02\x10Sift\\Policies\\V1\xe2\x02\x1cSift\\Policies\\V1\\GPBMetadata\xea\x02\x12Sift::Policies::V1\x92\x41\x12\x12\x10\n\x0ePolicy serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.policies.v1.policies_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.sift.policies.v1B\rPoliciesProtoP\001\242\002\003SPX\252\002\020Sift.Policies.V1\312\002\020Sift\\Policies\\V1\342\002\034Sift\\Policies\\V1\\GPBMetadata\352\002\022Sift::Policies::V1\222A\022\022\020\n\016Policy service' + _globals['_POLICY'].fields_by_name['policy_id']._loaded_options = None + _globals['_POLICY'].fields_by_name['policy_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_POLICY'].fields_by_name['name']._loaded_options = None + _globals['_POLICY'].fields_by_name['name']._serialized_options = b'\340A\002' + _globals['_POLICY'].fields_by_name['description']._loaded_options = None + _globals['_POLICY'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_POLICY'].fields_by_name['organization_id']._loaded_options = None + _globals['_POLICY'].fields_by_name['organization_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_POLICY'].fields_by_name['created_by_user_id']._loaded_options = None + _globals['_POLICY'].fields_by_name['created_by_user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_POLICY'].fields_by_name['modified_by_user_id']._loaded_options = None + _globals['_POLICY'].fields_by_name['modified_by_user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_POLICY'].fields_by_name['created_date']._loaded_options = None + _globals['_POLICY'].fields_by_name['created_date']._serialized_options = b'\340A\002' + _globals['_POLICY'].fields_by_name['modified_date']._loaded_options = None + _globals['_POLICY'].fields_by_name['modified_date']._serialized_options = b'\340A\002' + _globals['_POLICY'].fields_by_name['configuration']._loaded_options = None + _globals['_POLICY'].fields_by_name['configuration']._serialized_options = b'\340A\002' + _globals['_POLICY'].fields_by_name['policy_version_id']._loaded_options = None + _globals['_POLICY'].fields_by_name['policy_version_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_POLICY'].fields_by_name['archived_date']._loaded_options = None + _globals['_POLICY'].fields_by_name['archived_date']._serialized_options = b'\340A\001' + _globals['_POLICY'].fields_by_name['is_archived']._loaded_options = None + _globals['_POLICY'].fields_by_name['is_archived']._serialized_options = b'\340A\002' + _globals['_POLICY'].fields_by_name['version']._loaded_options = None + _globals['_POLICY'].fields_by_name['version']._serialized_options = b'\340A\001' + _globals['_POLICY'].fields_by_name['version_notes']._loaded_options = None + _globals['_POLICY'].fields_by_name['version_notes']._serialized_options = b'\340A\001' + _globals['_POLICY'].fields_by_name['generated_change_message']._loaded_options = None + _globals['_POLICY'].fields_by_name['generated_change_message']._serialized_options = b'\340A\001' + _globals['_GETPOLICYREQUEST'].fields_by_name['policy_id']._loaded_options = None + _globals['_GETPOLICYREQUEST'].fields_by_name['policy_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_GETPOLICYRESPONSE'].fields_by_name['policy']._loaded_options = None + _globals['_GETPOLICYRESPONSE'].fields_by_name['policy']._serialized_options = b'\340A\002' + _globals['_LISTPOLICIESREQUEST'].fields_by_name['page_size']._loaded_options = None + _globals['_LISTPOLICIESREQUEST'].fields_by_name['page_size']._serialized_options = b'\340A\001' + _globals['_LISTPOLICIESREQUEST'].fields_by_name['page_token']._loaded_options = None + _globals['_LISTPOLICIESREQUEST'].fields_by_name['page_token']._serialized_options = b'\340A\001' + _globals['_LISTPOLICIESREQUEST'].fields_by_name['filter']._loaded_options = None + _globals['_LISTPOLICIESREQUEST'].fields_by_name['filter']._serialized_options = b'\340A\001' + _globals['_LISTPOLICIESREQUEST'].fields_by_name['order_by']._loaded_options = None + _globals['_LISTPOLICIESREQUEST'].fields_by_name['order_by']._serialized_options = b'\340A\001' + _globals['_LISTPOLICIESREQUEST'].fields_by_name['include_archived']._loaded_options = None + _globals['_LISTPOLICIESREQUEST'].fields_by_name['include_archived']._serialized_options = b'\340A\001' + _globals['_CREATEPOLICYREQUEST'].fields_by_name['name']._loaded_options = None + _globals['_CREATEPOLICYREQUEST'].fields_by_name['name']._serialized_options = b'\340A\002' + _globals['_CREATEPOLICYREQUEST'].fields_by_name['description']._loaded_options = None + _globals['_CREATEPOLICYREQUEST'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_CREATEPOLICYREQUEST'].fields_by_name['configuration']._loaded_options = None + _globals['_CREATEPOLICYREQUEST'].fields_by_name['configuration']._serialized_options = b'\340A\002' + _globals['_CREATEPOLICYREQUEST'].fields_by_name['version_notes']._loaded_options = None + _globals['_CREATEPOLICYREQUEST'].fields_by_name['version_notes']._serialized_options = b'\340A\001' + _globals['_CREATEPOLICYRESPONSE'].fields_by_name['policy']._loaded_options = None + _globals['_CREATEPOLICYRESPONSE'].fields_by_name['policy']._serialized_options = b'\340A\002' + _globals['_UPDATEPOLICYREQUEST'].fields_by_name['policy']._loaded_options = None + _globals['_UPDATEPOLICYREQUEST'].fields_by_name['policy']._serialized_options = b'\340A\002' + _globals['_UPDATEPOLICYREQUEST'].fields_by_name['update_mask']._loaded_options = None + _globals['_UPDATEPOLICYREQUEST'].fields_by_name['update_mask']._serialized_options = b'\340A\002' + _globals['_UPDATEPOLICYRESPONSE'].fields_by_name['policy']._loaded_options = None + _globals['_UPDATEPOLICYRESPONSE'].fields_by_name['policy']._serialized_options = b'\340A\002' + _globals['_ARCHIVEPOLICYREQUEST'].fields_by_name['policy_id']._loaded_options = None + _globals['_ARCHIVEPOLICYREQUEST'].fields_by_name['policy_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_ARCHIVEPOLICYRESPONSE'].fields_by_name['policy']._loaded_options = None + _globals['_ARCHIVEPOLICYRESPONSE'].fields_by_name['policy']._serialized_options = b'\340A\002' + _globals['_POLICYSERVICE']._loaded_options = None + _globals['_POLICYSERVICE']._serialized_options = b'\222A\"\022 Service to manage ABAC policies.' + _globals['_POLICYSERVICE'].methods_by_name['GetPolicy']._loaded_options = None + _globals['_POLICYSERVICE'].methods_by_name['GetPolicy']._serialized_options = b'\222A8\022\tGetPolicy\032\022Retrieve a policy.*\027PolicyService_GetPolicy\202\323\344\223\002\036\022\034/api/v1/policies/{policy_id}' + _globals['_POLICYSERVICE'].methods_by_name['ListPolicies']._loaded_options = None + _globals['_POLICYSERVICE'].methods_by_name['ListPolicies']._serialized_options = b'\222AW\022\014ListPolicies\032+Retrieve policies using an optional filter.*\032PolicyService_ListPolicies\202\323\344\223\002\022\022\020/api/v1/policies' + _globals['_POLICYSERVICE'].methods_by_name['CreatePolicy']._loaded_options = None + _globals['_POLICYSERVICE'].methods_by_name['CreatePolicy']._serialized_options = b'\222A@\022\014CreatePolicy\032\024Create a new policy.*\032PolicyService_CreatePolicy\202\323\344\223\002\025\"\020/api/v1/policies:\001*' + _globals['_POLICYSERVICE'].methods_by_name['UpdatePolicy']._loaded_options = None + _globals['_POLICYSERVICE'].methods_by_name['UpdatePolicy']._serialized_options = b'\222A<\022\014UpdatePolicy\032\020Update a policy.*\032PolicyService_UpdatePolicy\202\323\344\223\002\0252\020/api/v1/policies:\001*' + _globals['_POLICYSERVICE'].methods_by_name['ArchivePolicy']._loaded_options = None + _globals['_POLICYSERVICE'].methods_by_name['ArchivePolicy']._serialized_options = b'\222A?\022\rArchivePolicy\032\021Archive a policy.*\033PolicyService_ArchivePolicy\202\323\344\223\002&\"$/api/v1/policies/{policy_id}/archive' + _globals['_POLICY']._serialized_start=261 + _globals['_POLICY']._serialized_end=1163 + _globals['_POLICYCONFIGURATION']._serialized_start=1165 + _globals['_POLICYCONFIGURATION']._serialized_end=1221 + _globals['_GETPOLICYREQUEST']._serialized_start=1223 + _globals['_GETPOLICYREQUEST']._serialized_end=1283 + _globals['_GETPOLICYRESPONSE']._serialized_start=1285 + _globals['_GETPOLICYRESPONSE']._serialized_end=1359 + _globals['_LISTPOLICIESREQUEST']._serialized_start=1362 + _globals['_LISTPOLICIESREQUEST']._serialized_end=1562 + _globals['_LISTPOLICIESRESPONSE']._serialized_start=1564 + _globals['_LISTPOLICIESRESPONSE']._serialized_end=1680 + _globals['_CREATEPOLICYREQUEST']._serialized_start=1683 + _globals['_CREATEPOLICYREQUEST']._serialized_end=1936 + _globals['_CREATEPOLICYRESPONSE']._serialized_start=1938 + _globals['_CREATEPOLICYRESPONSE']._serialized_end=2015 + _globals['_UPDATEPOLICYREQUEST']._serialized_start=2018 + _globals['_UPDATEPOLICYREQUEST']._serialized_end=2220 + _globals['_UPDATEPOLICYRESPONSE']._serialized_start=2222 + _globals['_UPDATEPOLICYRESPONSE']._serialized_end=2299 + _globals['_ARCHIVEPOLICYREQUEST']._serialized_start=2301 + _globals['_ARCHIVEPOLICYREQUEST']._serialized_end=2365 + _globals['_ARCHIVEPOLICYRESPONSE']._serialized_start=2367 + _globals['_ARCHIVEPOLICYRESPONSE']._serialized_end=2445 + _globals['_POLICYSERVICE']._serialized_start=2448 + _globals['_POLICYSERVICE']._serialized_end=3489 +# @@protoc_insertion_point(module_scope) diff --git a/python/lib/sift/policies/v1/policies_pb2.pyi b/python/lib/sift/policies/v1/policies_pb2.pyi new file mode 100644 index 000000000..975c23c0d --- /dev/null +++ b/python/lib/sift/policies/v1/policies_pb2.pyi @@ -0,0 +1,360 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.field_mask_pb2 +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class Policy(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POLICY_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + ORGANIZATION_ID_FIELD_NUMBER: builtins.int + CREATED_BY_USER_ID_FIELD_NUMBER: builtins.int + MODIFIED_BY_USER_ID_FIELD_NUMBER: builtins.int + CREATED_DATE_FIELD_NUMBER: builtins.int + MODIFIED_DATE_FIELD_NUMBER: builtins.int + CONFIGURATION_FIELD_NUMBER: builtins.int + POLICY_VERSION_ID_FIELD_NUMBER: builtins.int + ARCHIVED_DATE_FIELD_NUMBER: builtins.int + IS_ARCHIVED_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + VERSION_NOTES_FIELD_NUMBER: builtins.int + GENERATED_CHANGE_MESSAGE_FIELD_NUMBER: builtins.int + policy_id: builtins.str + name: builtins.str + description: builtins.str + organization_id: builtins.str + created_by_user_id: builtins.str + modified_by_user_id: builtins.str + policy_version_id: builtins.str + """Reference to the current policy version ID""" + is_archived: builtins.bool + version: builtins.int + """Optional version number for this policy""" + version_notes: builtins.str + """Optional notes for this version""" + generated_change_message: builtins.str + """Auto-generated change message for this version""" + @property + def created_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def modified_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def configuration(self) -> global___PolicyConfiguration: + """Policy rules/configuration""" + + @property + def archived_date(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The date the policy was archived.""" + + def __init__( + self, + *, + policy_id: builtins.str = ..., + name: builtins.str = ..., + description: builtins.str | None = ..., + organization_id: builtins.str = ..., + created_by_user_id: builtins.str = ..., + modified_by_user_id: builtins.str = ..., + created_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + modified_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + configuration: global___PolicyConfiguration | None = ..., + policy_version_id: builtins.str = ..., + archived_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + is_archived: builtins.bool = ..., + version: builtins.int | None = ..., + version_notes: builtins.str | None = ..., + generated_change_message: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_description", b"_description", "_generated_change_message", b"_generated_change_message", "_version", b"_version", "_version_notes", b"_version_notes", "archived_date", b"archived_date", "configuration", b"configuration", "created_date", b"created_date", "description", b"description", "generated_change_message", b"generated_change_message", "modified_date", b"modified_date", "version", b"version", "version_notes", b"version_notes"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_description", b"_description", "_generated_change_message", b"_generated_change_message", "_version", b"_version", "_version_notes", b"_version_notes", "archived_date", b"archived_date", "configuration", b"configuration", "created_by_user_id", b"created_by_user_id", "created_date", b"created_date", "description", b"description", "generated_change_message", b"generated_change_message", "is_archived", b"is_archived", "modified_by_user_id", b"modified_by_user_id", "modified_date", b"modified_date", "name", b"name", "organization_id", b"organization_id", "policy_id", b"policy_id", "policy_version_id", b"policy_version_id", "version", b"version", "version_notes", b"version_notes"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_description", b"_description"]) -> typing.Literal["description"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_generated_change_message", b"_generated_change_message"]) -> typing.Literal["generated_change_message"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_version", b"_version"]) -> typing.Literal["version"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_version_notes", b"_version_notes"]) -> typing.Literal["version_notes"] | None: ... + +global___Policy = Policy + +@typing.final +class PolicyConfiguration(google.protobuf.message.Message): + """PolicyConfiguration represents the configuration and rules for a policy. + Expects a string containing a policy in the Cedar format + https://docs.cedarpolicy.com/policies/syntax-policy.html + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CEDAR_POLICY_FIELD_NUMBER: builtins.int + cedar_policy: builtins.str + def __init__( + self, + *, + cedar_policy: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["cedar_policy", b"cedar_policy"]) -> None: ... + +global___PolicyConfiguration = PolicyConfiguration + +@typing.final +class GetPolicyRequest(google.protobuf.message.Message): + """The request for a call to `PolicyService_GetPolicy`.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POLICY_ID_FIELD_NUMBER: builtins.int + policy_id: builtins.str + def __init__( + self, + *, + policy_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["policy_id", b"policy_id"]) -> None: ... + +global___GetPolicyRequest = GetPolicyRequest + +@typing.final +class GetPolicyResponse(google.protobuf.message.Message): + """The response of a call to `PolicyService_GetPolicy`.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POLICY_FIELD_NUMBER: builtins.int + @property + def policy(self) -> global___Policy: ... + def __init__( + self, + *, + policy: global___Policy | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["policy", b"policy"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["policy", b"policy"]) -> None: ... + +global___GetPolicyResponse = GetPolicyResponse + +@typing.final +class ListPoliciesRequest(google.protobuf.message.Message): + """The request for a call to `PolicyService_ListPolicies` to retrieve policies.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGE_SIZE_FIELD_NUMBER: builtins.int + PAGE_TOKEN_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + INCLUDE_ARCHIVED_FIELD_NUMBER: builtins.int + page_size: builtins.int + """The maximum number of policies to return. The service may return fewer than this value. + If unspecified, at most 50 policies will be returned. The maximum value is 100; values above + 100 will be coerced to 100. Optional. + """ + page_token: builtins.str + """A page token, received from a previous `ListPolicies` call. + Provide this to retrieve the subsequent page. + When paginating, all other parameters provided to `ListPolicies` must match + the call that provided the page token. Optional. + """ + filter: builtins.str + """A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + Available fields to filter by are `policy_id`, `organization_id`, `name`, `description`, + `created_by_user_id`, `modified_by_user_id`, `created_date`, `modified_date`, `archived_date`, and `is_archived`. + For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + For more information about the fields used for filtering, please refer to [this definition](/docs/api/grpc/protocol-buffers/policies#policy). Optional. + """ + order_by: builtins.str + """How to order the retrieved policies. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + Available fields to order_by are `created_date`, `modified_date`, and `name`. + If left empty, items are ordered by `created_date` in descending order (newest-first). + For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + Example: "created_date desc,modified_date" + """ + include_archived: builtins.bool + """Whether to include archived policies in the response. If false or unset, archived policies are excluded.""" + def __init__( + self, + *, + page_size: builtins.int = ..., + page_token: builtins.str = ..., + filter: builtins.str = ..., + order_by: builtins.str = ..., + include_archived: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "include_archived", b"include_archived", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ... + +global___ListPoliciesRequest = ListPoliciesRequest + +@typing.final +class ListPoliciesResponse(google.protobuf.message.Message): + """The result of a call to `PolicyService_ListPolicies`.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POLICIES_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + @property + def policies(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Policy]: ... + def __init__( + self, + *, + policies: collections.abc.Iterable[global___Policy] | None = ..., + next_page_token: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "policies", b"policies"]) -> None: ... + +global___ListPoliciesResponse = ListPoliciesResponse + +@typing.final +class CreatePolicyRequest(google.protobuf.message.Message): + """The request for a call to `PolicyService_CreatePolicy` to create a new policy.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + CONFIGURATION_FIELD_NUMBER: builtins.int + VERSION_NOTES_FIELD_NUMBER: builtins.int + name: builtins.str + description: builtins.str + version_notes: builtins.str + """Optional notes for this version""" + @property + def configuration(self) -> global___PolicyConfiguration: + """Policy rules/configuration""" + + def __init__( + self, + *, + name: builtins.str = ..., + description: builtins.str | None = ..., + configuration: global___PolicyConfiguration | None = ..., + version_notes: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_description", b"_description", "_version_notes", b"_version_notes", "configuration", b"configuration", "description", b"description", "version_notes", b"version_notes"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_description", b"_description", "_version_notes", b"_version_notes", "configuration", b"configuration", "description", b"description", "name", b"name", "version_notes", b"version_notes"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_description", b"_description"]) -> typing.Literal["description"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_version_notes", b"_version_notes"]) -> typing.Literal["version_notes"] | None: ... + +global___CreatePolicyRequest = CreatePolicyRequest + +@typing.final +class CreatePolicyResponse(google.protobuf.message.Message): + """The response of a call to `PolicyService_CreatePolicy`.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POLICY_FIELD_NUMBER: builtins.int + @property + def policy(self) -> global___Policy: ... + def __init__( + self, + *, + policy: global___Policy | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["policy", b"policy"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["policy", b"policy"]) -> None: ... + +global___CreatePolicyResponse = CreatePolicyResponse + +@typing.final +class UpdatePolicyRequest(google.protobuf.message.Message): + """The request for a call to `PolicyService_UpdatePolicy` to update a policy.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POLICY_FIELD_NUMBER: builtins.int + UPDATE_MASK_FIELD_NUMBER: builtins.int + VERSION_NOTES_FIELD_NUMBER: builtins.int + version_notes: builtins.str + """Optional notes for the new policy version when configuration changes""" + @property + def policy(self) -> global___Policy: ... + @property + def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: + """The list of fields to be updated. The fields available to be updated are `name`, `description`, `configuration`, and `is_archived`.""" + + def __init__( + self, + *, + policy: global___Policy | None = ..., + update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ..., + version_notes: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_version_notes", b"_version_notes", "policy", b"policy", "update_mask", b"update_mask", "version_notes", b"version_notes"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_version_notes", b"_version_notes", "policy", b"policy", "update_mask", b"update_mask", "version_notes", b"version_notes"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_version_notes", b"_version_notes"]) -> typing.Literal["version_notes"] | None: ... + +global___UpdatePolicyRequest = UpdatePolicyRequest + +@typing.final +class UpdatePolicyResponse(google.protobuf.message.Message): + """The response of a call to `PolicyService_UpdatePolicy`.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POLICY_FIELD_NUMBER: builtins.int + @property + def policy(self) -> global___Policy: ... + def __init__( + self, + *, + policy: global___Policy | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["policy", b"policy"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["policy", b"policy"]) -> None: ... + +global___UpdatePolicyResponse = UpdatePolicyResponse + +@typing.final +class ArchivePolicyRequest(google.protobuf.message.Message): + """The request for a call to `PolicyService_ArchivePolicy` to archive a policy.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POLICY_ID_FIELD_NUMBER: builtins.int + policy_id: builtins.str + def __init__( + self, + *, + policy_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["policy_id", b"policy_id"]) -> None: ... + +global___ArchivePolicyRequest = ArchivePolicyRequest + +@typing.final +class ArchivePolicyResponse(google.protobuf.message.Message): + """The response of a call to `PolicyService_ArchivePolicy`.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POLICY_FIELD_NUMBER: builtins.int + @property + def policy(self) -> global___Policy: ... + def __init__( + self, + *, + policy: global___Policy | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["policy", b"policy"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["policy", b"policy"]) -> None: ... + +global___ArchivePolicyResponse = ArchivePolicyResponse diff --git a/python/lib/sift/policies/v1/policies_pb2_grpc.py b/python/lib/sift/policies/v1/policies_pb2_grpc.py new file mode 100644 index 000000000..2166aa316 --- /dev/null +++ b/python/lib/sift/policies/v1/policies_pb2_grpc.py @@ -0,0 +1,203 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from sift.policies.v1 import policies_pb2 as sift_dot_policies_dot_v1_dot_policies__pb2 + + +class PolicyServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetPolicy = channel.unary_unary( + '/sift.policies.v1.PolicyService/GetPolicy', + request_serializer=sift_dot_policies_dot_v1_dot_policies__pb2.GetPolicyRequest.SerializeToString, + response_deserializer=sift_dot_policies_dot_v1_dot_policies__pb2.GetPolicyResponse.FromString, + ) + self.ListPolicies = channel.unary_unary( + '/sift.policies.v1.PolicyService/ListPolicies', + request_serializer=sift_dot_policies_dot_v1_dot_policies__pb2.ListPoliciesRequest.SerializeToString, + response_deserializer=sift_dot_policies_dot_v1_dot_policies__pb2.ListPoliciesResponse.FromString, + ) + self.CreatePolicy = channel.unary_unary( + '/sift.policies.v1.PolicyService/CreatePolicy', + request_serializer=sift_dot_policies_dot_v1_dot_policies__pb2.CreatePolicyRequest.SerializeToString, + response_deserializer=sift_dot_policies_dot_v1_dot_policies__pb2.CreatePolicyResponse.FromString, + ) + self.UpdatePolicy = channel.unary_unary( + '/sift.policies.v1.PolicyService/UpdatePolicy', + request_serializer=sift_dot_policies_dot_v1_dot_policies__pb2.UpdatePolicyRequest.SerializeToString, + response_deserializer=sift_dot_policies_dot_v1_dot_policies__pb2.UpdatePolicyResponse.FromString, + ) + self.ArchivePolicy = channel.unary_unary( + '/sift.policies.v1.PolicyService/ArchivePolicy', + request_serializer=sift_dot_policies_dot_v1_dot_policies__pb2.ArchivePolicyRequest.SerializeToString, + response_deserializer=sift_dot_policies_dot_v1_dot_policies__pb2.ArchivePolicyResponse.FromString, + ) + + +class PolicyServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def GetPolicy(self, request, context): + """Retrieve a policy + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListPolicies(self, request, context): + """Retrieve policies using an optional filter. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreatePolicy(self, request, context): + """Create a policy + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdatePolicy(self, request, context): + """Update a policy + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ArchivePolicy(self, request, context): + """Archive a policy + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_PolicyServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetPolicy': grpc.unary_unary_rpc_method_handler( + servicer.GetPolicy, + request_deserializer=sift_dot_policies_dot_v1_dot_policies__pb2.GetPolicyRequest.FromString, + response_serializer=sift_dot_policies_dot_v1_dot_policies__pb2.GetPolicyResponse.SerializeToString, + ), + 'ListPolicies': grpc.unary_unary_rpc_method_handler( + servicer.ListPolicies, + request_deserializer=sift_dot_policies_dot_v1_dot_policies__pb2.ListPoliciesRequest.FromString, + response_serializer=sift_dot_policies_dot_v1_dot_policies__pb2.ListPoliciesResponse.SerializeToString, + ), + 'CreatePolicy': grpc.unary_unary_rpc_method_handler( + servicer.CreatePolicy, + request_deserializer=sift_dot_policies_dot_v1_dot_policies__pb2.CreatePolicyRequest.FromString, + response_serializer=sift_dot_policies_dot_v1_dot_policies__pb2.CreatePolicyResponse.SerializeToString, + ), + 'UpdatePolicy': grpc.unary_unary_rpc_method_handler( + servicer.UpdatePolicy, + request_deserializer=sift_dot_policies_dot_v1_dot_policies__pb2.UpdatePolicyRequest.FromString, + response_serializer=sift_dot_policies_dot_v1_dot_policies__pb2.UpdatePolicyResponse.SerializeToString, + ), + 'ArchivePolicy': grpc.unary_unary_rpc_method_handler( + servicer.ArchivePolicy, + request_deserializer=sift_dot_policies_dot_v1_dot_policies__pb2.ArchivePolicyRequest.FromString, + response_serializer=sift_dot_policies_dot_v1_dot_policies__pb2.ArchivePolicyResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'sift.policies.v1.PolicyService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class PolicyService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def GetPolicy(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.policies.v1.PolicyService/GetPolicy', + sift_dot_policies_dot_v1_dot_policies__pb2.GetPolicyRequest.SerializeToString, + sift_dot_policies_dot_v1_dot_policies__pb2.GetPolicyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListPolicies(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.policies.v1.PolicyService/ListPolicies', + sift_dot_policies_dot_v1_dot_policies__pb2.ListPoliciesRequest.SerializeToString, + sift_dot_policies_dot_v1_dot_policies__pb2.ListPoliciesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreatePolicy(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.policies.v1.PolicyService/CreatePolicy', + sift_dot_policies_dot_v1_dot_policies__pb2.CreatePolicyRequest.SerializeToString, + sift_dot_policies_dot_v1_dot_policies__pb2.CreatePolicyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdatePolicy(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.policies.v1.PolicyService/UpdatePolicy', + sift_dot_policies_dot_v1_dot_policies__pb2.UpdatePolicyRequest.SerializeToString, + sift_dot_policies_dot_v1_dot_policies__pb2.UpdatePolicyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ArchivePolicy(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.policies.v1.PolicyService/ArchivePolicy', + sift_dot_policies_dot_v1_dot_policies__pb2.ArchivePolicyRequest.SerializeToString, + sift_dot_policies_dot_v1_dot_policies__pb2.ArchivePolicyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/python/lib/sift/policies/v1/policies_pb2_grpc.pyi b/python/lib/sift/policies/v1/policies_pb2_grpc.pyi new file mode 100644 index 000000000..3296d8b1a --- /dev/null +++ b/python/lib/sift/policies/v1/policies_pb2_grpc.pyi @@ -0,0 +1,124 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import abc +import collections.abc +import grpc +import grpc.aio +import sift.policies.v1.policies_pb2 +import typing + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ... + +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... + +class PolicyServiceStub: + def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ... + GetPolicy: grpc.UnaryUnaryMultiCallable[ + sift.policies.v1.policies_pb2.GetPolicyRequest, + sift.policies.v1.policies_pb2.GetPolicyResponse, + ] + """Retrieve a policy""" + + ListPolicies: grpc.UnaryUnaryMultiCallable[ + sift.policies.v1.policies_pb2.ListPoliciesRequest, + sift.policies.v1.policies_pb2.ListPoliciesResponse, + ] + """Retrieve policies using an optional filter.""" + + CreatePolicy: grpc.UnaryUnaryMultiCallable[ + sift.policies.v1.policies_pb2.CreatePolicyRequest, + sift.policies.v1.policies_pb2.CreatePolicyResponse, + ] + """Create a policy""" + + UpdatePolicy: grpc.UnaryUnaryMultiCallable[ + sift.policies.v1.policies_pb2.UpdatePolicyRequest, + sift.policies.v1.policies_pb2.UpdatePolicyResponse, + ] + """Update a policy""" + + ArchivePolicy: grpc.UnaryUnaryMultiCallable[ + sift.policies.v1.policies_pb2.ArchivePolicyRequest, + sift.policies.v1.policies_pb2.ArchivePolicyResponse, + ] + """Archive a policy""" + +class PolicyServiceAsyncStub: + GetPolicy: grpc.aio.UnaryUnaryMultiCallable[ + sift.policies.v1.policies_pb2.GetPolicyRequest, + sift.policies.v1.policies_pb2.GetPolicyResponse, + ] + """Retrieve a policy""" + + ListPolicies: grpc.aio.UnaryUnaryMultiCallable[ + sift.policies.v1.policies_pb2.ListPoliciesRequest, + sift.policies.v1.policies_pb2.ListPoliciesResponse, + ] + """Retrieve policies using an optional filter.""" + + CreatePolicy: grpc.aio.UnaryUnaryMultiCallable[ + sift.policies.v1.policies_pb2.CreatePolicyRequest, + sift.policies.v1.policies_pb2.CreatePolicyResponse, + ] + """Create a policy""" + + UpdatePolicy: grpc.aio.UnaryUnaryMultiCallable[ + sift.policies.v1.policies_pb2.UpdatePolicyRequest, + sift.policies.v1.policies_pb2.UpdatePolicyResponse, + ] + """Update a policy""" + + ArchivePolicy: grpc.aio.UnaryUnaryMultiCallable[ + sift.policies.v1.policies_pb2.ArchivePolicyRequest, + sift.policies.v1.policies_pb2.ArchivePolicyResponse, + ] + """Archive a policy""" + +class PolicyServiceServicer(metaclass=abc.ABCMeta): + @abc.abstractmethod + def GetPolicy( + self, + request: sift.policies.v1.policies_pb2.GetPolicyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.policies.v1.policies_pb2.GetPolicyResponse, collections.abc.Awaitable[sift.policies.v1.policies_pb2.GetPolicyResponse]]: + """Retrieve a policy""" + + @abc.abstractmethod + def ListPolicies( + self, + request: sift.policies.v1.policies_pb2.ListPoliciesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.policies.v1.policies_pb2.ListPoliciesResponse, collections.abc.Awaitable[sift.policies.v1.policies_pb2.ListPoliciesResponse]]: + """Retrieve policies using an optional filter.""" + + @abc.abstractmethod + def CreatePolicy( + self, + request: sift.policies.v1.policies_pb2.CreatePolicyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.policies.v1.policies_pb2.CreatePolicyResponse, collections.abc.Awaitable[sift.policies.v1.policies_pb2.CreatePolicyResponse]]: + """Create a policy""" + + @abc.abstractmethod + def UpdatePolicy( + self, + request: sift.policies.v1.policies_pb2.UpdatePolicyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.policies.v1.policies_pb2.UpdatePolicyResponse, collections.abc.Awaitable[sift.policies.v1.policies_pb2.UpdatePolicyResponse]]: + """Update a policy""" + + @abc.abstractmethod + def ArchivePolicy( + self, + request: sift.policies.v1.policies_pb2.ArchivePolicyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.policies.v1.policies_pb2.ArchivePolicyResponse, collections.abc.Awaitable[sift.policies.v1.policies_pb2.ArchivePolicyResponse]]: + """Archive a policy""" + +def add_PolicyServiceServicer_to_server(servicer: PolicyServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ... diff --git a/python/lib/sift/resource_attribute/__init__.py b/python/lib/sift/resource_attribute/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/python/lib/sift/resource_attribute/v1/__init__.py b/python/lib/sift/resource_attribute/v1/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/python/lib/sift/resource_attribute/v1/resource_attribute_pb2.py b/python/lib/sift/resource_attribute/v1/resource_attribute_pb2.py new file mode 100644 index 000000000..2eedef1e1 --- /dev/null +++ b/python/lib/sift/resource_attribute/v1/resource_attribute_pb2.py @@ -0,0 +1,401 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: sift/resource_attribute/v1/resource_attribute.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3sift/resource_attribute/v1/resource_attribute.proto\x12\x1asift.resource_attribute.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xf8\x04\n\x14ResourceAttributeKey\x12\x46\n\x19resource_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16resourceAttributeKeyId\x12\x34\n\x0forganization_id\x18\x02 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0eorganizationId\x12&\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x0b\x64isplayName\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12M\n\x04type\x18\x05 \x01(\x0e\x32\x34.sift.resource_attribute.v1.ResourceAttributeKeyTypeB\x03\xe0\x41\x02R\x04type\x12\x42\n\x0c\x63reated_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x38\n\x12\x63reated_by_user_id\x18\x07 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0f\x63reatedByUserId\x12\x44\n\rmodified_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12:\n\x13modified_by_user_id\x18\t \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x10modifiedByUserId\x12\x44\n\rarchived_date\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01R\x0c\x61rchivedDate\"\xce\x04\n\x1aResourceAttributeEnumValue\x12S\n resource_attribute_enum_value_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x1cresourceAttributeEnumValueId\x12\x46\n\x19resource_attribute_key_id\x18\x02 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16resourceAttributeKeyId\x12&\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x0b\x64isplayName\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12\x42\n\x0c\x63reated_date\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x38\n\x12\x63reated_by_user_id\x18\x06 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0f\x63reatedByUserId\x12\x44\n\rmodified_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12:\n\x13modified_by_user_id\x18\x08 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x10modifiedByUserId\x12\x44\n\rarchived_date\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01R\x0c\x61rchivedDate\"\xcf\x06\n\x11ResourceAttribute\x12?\n\x15resource_attribute_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x13resourceAttributeId\x12\x34\n\x0forganization_id\x18\x02 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0eorganizationId\x12Z\n\x06\x65ntity\x18\x03 \x01(\x0b\x32=.sift.resource_attribute.v1.ResourceAttributeEntityIdentifierB\x03\xe0\x41\x02R\x06\x65ntity\x12\x46\n\x19resource_attribute_key_id\x18\x04 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16resourceAttributeKeyId\x12G\n\x03key\x18\x05 \x01(\x0b\x32\x30.sift.resource_attribute.v1.ResourceAttributeKeyB\x03\xe0\x41\x01R\x03key\x12R\n resource_attribute_enum_value_id\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x00R\x1cresourceAttributeEnumValueId\x12%\n\rboolean_value\x18\x07 \x01(\x08H\x00R\x0c\x62ooleanValue\x12#\n\x0cnumber_value\x18\x08 \x01(\x01H\x00R\x0bnumberValue\x12i\n\x12\x65num_value_details\x18\t \x01(\x0b\x32\x36.sift.resource_attribute.v1.ResourceAttributeEnumValueB\x03\xe0\x41\x01R\x10\x65numValueDetails\x12\x42\n\x0c\x63reated_date\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x38\n\x12\x63reated_by_user_id\x18\x0b \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0f\x63reatedByUserId\x12\x44\n\rarchived_date\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01R\x0c\x61rchivedDateB\x07\n\x05value\"\xac\x01\n!ResourceAttributeEntityIdentifier\x12(\n\tentity_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x08\x65ntityId\x12]\n\x0b\x65ntity_type\x18\x02 \x01(\x0e\x32\x37.sift.resource_attribute.v1.ResourceAttributeEntityTypeB\x03\xe0\x41\x02R\nentityType\"\xb2\x03\n!CreateResourceAttributeKeyRequest\x12&\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0b\x64isplayName\x12%\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12M\n\x04type\x18\x03 \x01(\x0e\x32\x34.sift.resource_attribute.v1.ResourceAttributeKeyTypeB\x03\xe0\x41\x02R\x04type\x12\x8b\x01\n\x13initial_enum_values\x18\x04 \x03(\x0b\x32N.sift.resource_attribute.v1.CreateResourceAttributeKeyRequest.InitialEnumValueB\x0b\xe0\x41\x01\xbaH\x05\x92\x01\x02\x10\x64R\x11initialEnumValues\x1a\x61\n\x10InitialEnumValue\x12&\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0b\x64isplayName\x12%\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\"\xea\x01\n\"CreateResourceAttributeKeyResponse\x12k\n\x16resource_attribute_key\x18\x01 \x01(\x0b\x32\x30.sift.resource_attribute.v1.ResourceAttributeKeyB\x03\xe0\x41\x02R\x14resourceAttributeKey\x12W\n\x0b\x65num_values\x18\x02 \x03(\x0b\x32\x36.sift.resource_attribute.v1.ResourceAttributeEnumValueR\nenumValues\"h\n\x1eGetResourceAttributeKeyRequest\x12\x46\n\x19resource_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16resourceAttributeKeyId\"\x8e\x01\n\x1fGetResourceAttributeKeyResponse\x12k\n\x16resource_attribute_key\x18\x01 \x01(\x0b\x32\x30.sift.resource_attribute.v1.ResourceAttributeKeyB\x03\xe0\x41\x02R\x14resourceAttributeKey\"\xd5\x01\n ListResourceAttributeKeysRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\x12\x1e\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x07orderBy\x12.\n\x10include_archived\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01R\x0fincludeArchived\"\xb5\x01\n!ListResourceAttributeKeysResponse\x12h\n\x17resource_attribute_keys\x18\x01 \x03(\x0b\x32\x30.sift.resource_attribute.v1.ResourceAttributeKeyR\x15resourceAttributeKeys\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xfc\x01\n!UpdateResourceAttributeKeyRequest\x12\x46\n\x19resource_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16resourceAttributeKeyId\x12&\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01R\x0b\x64isplayName\x12%\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12@\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02R\nupdateMask\"\x91\x01\n\"UpdateResourceAttributeKeyResponse\x12k\n\x16resource_attribute_key\x18\x01 \x01(\x0b\x32\x30.sift.resource_attribute.v1.ResourceAttributeKeyB\x03\xe0\x41\x02R\x14resourceAttributeKey\"l\n\"ArchiveResourceAttributeKeyRequest\x12\x46\n\x19resource_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16resourceAttributeKeyId\"%\n#ArchiveResourceAttributeKeyResponse\"n\n$UnarchiveResourceAttributeKeyRequest\x12\x46\n\x19resource_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16resourceAttributeKeyId\"\'\n%UnarchiveResourceAttributeKeyResponse\"~\n(BatchArchiveResourceAttributeKeysRequest\x12R\n\x1aresource_attribute_key_ids\x18\x01 \x03(\tB\x15\xe0\x41\x02\xbaH\x0f\x92\x01\x0c\x08\x01\x10\x88\'\"\x05r\x03\xb0\x01\x01R\x17resourceAttributeKeyIds\"+\n)BatchArchiveResourceAttributeKeysResponse\"\x80\x01\n*BatchUnarchiveResourceAttributeKeysRequest\x12R\n\x1aresource_attribute_key_ids\x18\x01 \x03(\tB\x15\xe0\x41\x02\xbaH\x0f\x92\x01\x0c\x08\x01\x10\x88\'\"\x05r\x03\xb0\x01\x01R\x17resourceAttributeKeyIds\"-\n+BatchUnarchiveResourceAttributeKeysResponse\"\xc0\x01\n\'CreateResourceAttributeEnumValueRequest\x12\x46\n\x19resource_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16resourceAttributeKeyId\x12&\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0b\x64isplayName\x12%\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\"\xaa\x01\n(CreateResourceAttributeEnumValueResponse\x12~\n\x1dresource_attribute_enum_value\x18\x01 \x01(\x0b\x32\x36.sift.resource_attribute.v1.ResourceAttributeEnumValueB\x03\xe0\x41\x02R\x1aresourceAttributeEnumValue\"{\n$GetResourceAttributeEnumValueRequest\x12S\n resource_attribute_enum_value_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x1cresourceAttributeEnumValueId\"\xa7\x01\n%GetResourceAttributeEnumValueResponse\x12~\n\x1dresource_attribute_enum_value\x18\x01 \x01(\x0b\x32\x36.sift.resource_attribute.v1.ResourceAttributeEnumValueB\x03\xe0\x41\x02R\x1aresourceAttributeEnumValue\"\xa3\x02\n&ListResourceAttributeEnumValuesRequest\x12\x46\n\x19resource_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16resourceAttributeKeyId\x12 \n\tpage_size\x18\x02 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\x12\x1e\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01R\x07orderBy\x12.\n\x10include_archived\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01R\x0fincludeArchived\"\xce\x01\n\'ListResourceAttributeEnumValuesResponse\x12{\n\x1eresource_attribute_enum_values\x18\x01 \x03(\x0b\x32\x36.sift.resource_attribute.v1.ResourceAttributeEnumValueR\x1bresourceAttributeEnumValues\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x8f\x02\n\'UpdateResourceAttributeEnumValueRequest\x12S\n resource_attribute_enum_value_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x1cresourceAttributeEnumValueId\x12&\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01R\x0b\x64isplayName\x12%\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12@\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02R\nupdateMask\"\xaa\x01\n(UpdateResourceAttributeEnumValueResponse\x12~\n\x1dresource_attribute_enum_value\x18\x01 \x01(\x0b\x32\x36.sift.resource_attribute.v1.ResourceAttributeEnumValueB\x03\xe0\x41\x02R\x1aresourceAttributeEnumValue\"\xb4\x01\n(ArchiveResourceAttributeEnumValueRequest\x12@\n\x16\x61rchived_enum_value_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x13\x61rchivedEnumValueId\x12\x46\n\x19replacement_enum_value_id\x18\x02 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16replacementEnumValueId\"m\n)ArchiveResourceAttributeEnumValueResponse\x12@\n\x1cresource_attributes_migrated\x18\x01 \x01(\x05R\x1aresourceAttributesMigrated\"\x81\x01\n*UnarchiveResourceAttributeEnumValueRequest\x12S\n resource_attribute_enum_value_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x1cresourceAttributeEnumValueId\"-\n+UnarchiveResourceAttributeEnumValueResponse\"\xec\x02\n.BatchArchiveResourceAttributeEnumValuesRequest\x12\x99\x01\n\x11\x61rchival_requests\x18\x01 \x03(\x0b\x32\\.sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest.EnumValueArchivalB\x0e\xe0\x41\x02\xbaH\x08\x92\x01\x05\x08\x01\x10\x88\'R\x10\x61rchivalRequests\x1a\x9d\x01\n\x11\x45numValueArchival\x12@\n\x16\x61rchived_enum_value_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x13\x61rchivedEnumValueId\x12\x46\n\x19replacement_enum_value_id\x18\x02 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16replacementEnumValueId\"~\n/BatchArchiveResourceAttributeEnumValuesResponse\x12K\n\"total_resource_attributes_migrated\x18\x01 \x01(\x05R\x1ftotalResourceAttributesMigrated\"\x93\x01\n0BatchUnarchiveResourceAttributeEnumValuesRequest\x12_\n!resource_attribute_enum_value_ids\x18\x01 \x03(\tB\x15\xe0\x41\x02\xbaH\x0f\x92\x01\x0c\x08\x01\x10\x88\'\"\x05r\x03\xb0\x01\x01R\x1dresourceAttributeEnumValueIds\"3\n1BatchUnarchiveResourceAttributeEnumValuesResponse\"\xed\x02\n\x1e\x43reateResourceAttributeRequest\x12Z\n\x06\x65ntity\x18\x01 \x01(\x0b\x32=.sift.resource_attribute.v1.ResourceAttributeEntityIdentifierB\x03\xe0\x41\x02R\x06\x65ntity\x12\x46\n\x19resource_attribute_key_id\x18\x02 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16resourceAttributeKeyId\x12R\n resource_attribute_enum_value_id\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x00R\x1cresourceAttributeEnumValueId\x12%\n\rboolean_value\x18\x04 \x01(\x08H\x00R\x0c\x62ooleanValue\x12#\n\x0cnumber_value\x18\x05 \x01(\x01H\x00R\x0bnumberValueB\x07\n\x05value\"\x84\x01\n\x1f\x43reateResourceAttributeResponse\x12\x61\n\x12resource_attribute\x18\x01 \x01(\x0b\x32-.sift.resource_attribute.v1.ResourceAttributeB\x03\xe0\x41\x02R\x11resourceAttribute\"\x82\x03\n$BatchCreateResourceAttributesRequest\x12\x46\n\x19resource_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x16resourceAttributeKeyId\x12R\n resource_attribute_enum_value_id\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x00R\x1cresourceAttributeEnumValueId\x12%\n\rboolean_value\x18\x03 \x01(\x08H\x00R\x0c\x62ooleanValue\x12#\n\x0cnumber_value\x18\x04 \x01(\x01H\x00R\x0bnumberValue\x12i\n\x08\x65ntities\x18\x05 \x03(\x0b\x32=.sift.resource_attribute.v1.ResourceAttributeEntityIdentifierB\x0e\xe0\x41\x02\xbaH\x08\x92\x01\x05\x08\x01\x10\x88\'R\x08\x65ntitiesB\x07\n\x05value\"\x87\x01\n%BatchCreateResourceAttributesResponse\x12^\n\x13resource_attributes\x18\x01 \x03(\x0b\x32-.sift.resource_attribute.v1.ResourceAttributeR\x12resourceAttributes\"^\n\x1bGetResourceAttributeRequest\x12?\n\x15resource_attribute_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x13resourceAttributeId\"\x81\x01\n\x1cGetResourceAttributeResponse\x12\x61\n\x12resource_attribute\x18\x01 \x01(\x0b\x32-.sift.resource_attribute.v1.ResourceAttributeB\x03\xe0\x41\x02R\x11resourceAttribute\"\xd2\x01\n\x1dListResourceAttributesRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\x12\x1e\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x07orderBy\x12.\n\x10include_archived\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01R\x0fincludeArchived\"\xa8\x01\n\x1eListResourceAttributesResponse\x12^\n\x13resource_attributes\x18\x01 \x03(\x0b\x32-.sift.resource_attribute.v1.ResourceAttributeR\x12resourceAttributes\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xf9\x01\n%ListResourceAttributesByEntityRequest\x12Z\n\x06\x65ntity\x18\x01 \x01(\x0b\x32=.sift.resource_attribute.v1.ResourceAttributeEntityIdentifierB\x03\xe0\x41\x02R\x06\x65ntity\x12.\n\x10include_archived\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01R\x0fincludeArchived\x12 \n\tpage_size\x18\x03 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01R\tpageToken\"\xb0\x01\n&ListResourceAttributesByEntityResponse\x12^\n\x13resource_attributes\x18\x01 \x03(\x0b\x32-.sift.resource_attribute.v1.ResourceAttributeR\x12resourceAttributes\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"b\n\x1f\x41rchiveResourceAttributeRequest\x12?\n\x15resource_attribute_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x13resourceAttributeId\"\"\n ArchiveResourceAttributeResponse\"d\n!UnarchiveResourceAttributeRequest\x12?\n\x15resource_attribute_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x13resourceAttributeId\"$\n\"UnarchiveResourceAttributeResponse\"t\n%BatchArchiveResourceAttributesRequest\x12K\n\x16resource_attribute_ids\x18\x01 \x03(\tB\x15\xe0\x41\x02\xbaH\x0f\x92\x01\x0c\x08\x01\x10\x88\'\"\x05r\x03\xb0\x01\x01R\x14resourceAttributeIds\"(\n&BatchArchiveResourceAttributesResponse\"v\n\'BatchUnarchiveResourceAttributesRequest\x12K\n\x16resource_attribute_ids\x18\x01 \x03(\tB\x15\xe0\x41\x02\xbaH\x0f\x92\x01\x0c\x08\x01\x10\x88\'\"\x05r\x03\xb0\x01\x01R\x14resourceAttributeIds\"*\n(BatchUnarchiveResourceAttributesResponse*\xeb\x01\n\x18ResourceAttributeKeyType\x12+\n\'RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED\x10\x00\x12$\n RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM\x10\x01\x12\'\n#RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN\x10\x02\x12&\n\"RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER\x10\x03\x12+\n\'RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM\x10\x04*\xa3\x01\n\x1bResourceAttributeEntityType\x12.\n*RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED\x10\x00\x12(\n$RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET\x10\x01\x12*\n&RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL\x10\x02\x32\x8d.\n\x18ResourceAttributeService\x12\xc7\x01\n\x1a\x43reateResourceAttributeKey\x12=.sift.resource_attribute.v1.CreateResourceAttributeKeyRequest\x1a>.sift.resource_attribute.v1.CreateResourceAttributeKeyResponse\"*\x82\xd3\xe4\x93\x02$\"\x1f/api/v1/resource-attribute-keys:\x01*\x12\xd7\x01\n\x17GetResourceAttributeKey\x12:.sift.resource_attribute.v1.GetResourceAttributeKeyRequest\x1a;.sift.resource_attribute.v1.GetResourceAttributeKeyResponse\"C\x82\xd3\xe4\x93\x02=\x12;/api/v1/resource-attribute-keys/{resource_attribute_key_id}\x12\xc1\x01\n\x19ListResourceAttributeKeys\x12<.sift.resource_attribute.v1.ListResourceAttributeKeysRequest\x1a=.sift.resource_attribute.v1.ListResourceAttributeKeysResponse\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/api/v1/resource-attribute-keys\x12\xe3\x01\n\x1aUpdateResourceAttributeKey\x12=.sift.resource_attribute.v1.UpdateResourceAttributeKeyRequest\x1a>.sift.resource_attribute.v1.UpdateResourceAttributeKeyResponse\"F\x82\xd3\xe4\x93\x02@2;/api/v1/resource-attribute-keys/{resource_attribute_key_id}:\x01*\x12\xeb\x01\n\x1b\x41rchiveResourceAttributeKey\x12>.sift.resource_attribute.v1.ArchiveResourceAttributeKeyRequest\x1a?.sift.resource_attribute.v1.ArchiveResourceAttributeKeyResponse\"K\x82\xd3\xe4\x93\x02\x45\"C/api/v1/resource-attribute-keys/{resource_attribute_key_id}/archive\x12\xf3\x01\n\x1dUnarchiveResourceAttributeKey\x12@.sift.resource_attribute.v1.UnarchiveResourceAttributeKeyRequest\x1a\x41.sift.resource_attribute.v1.UnarchiveResourceAttributeKeyResponse\"M\x82\xd3\xe4\x93\x02G\"E/api/v1/resource-attribute-keys/{resource_attribute_key_id}/unarchive\x12\xea\x01\n!BatchArchiveResourceAttributeKeys\x12\x44.sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysRequest\x1a\x45.sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysResponse\"8\x82\xd3\xe4\x93\x02\x32\"-/api/v1/resource-attribute-keys/batch-archive:\x01*\x12\xf2\x01\n#BatchUnarchiveResourceAttributeKeys\x12\x46.sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysRequest\x1aG.sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysResponse\":\x82\xd3\xe4\x93\x02\x34\"//api/v1/resource-attribute-keys/batch-unarchive:\x01*\x12\xe0\x01\n CreateResourceAttributeEnumValue\x12\x43.sift.resource_attribute.v1.CreateResourceAttributeEnumValueRequest\x1a\x44.sift.resource_attribute.v1.CreateResourceAttributeEnumValueResponse\"1\x82\xd3\xe4\x93\x02+\"&/api/v1/resource-attribute-enum-values:\x01*\x12\xf7\x01\n\x1dGetResourceAttributeEnumValue\x12@.sift.resource_attribute.v1.GetResourceAttributeEnumValueRequest\x1a\x41.sift.resource_attribute.v1.GetResourceAttributeEnumValueResponse\"Q\x82\xd3\xe4\x93\x02K\x12I/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}\x12\xfb\x01\n\x1fListResourceAttributeEnumValues\x12\x42.sift.resource_attribute.v1.ListResourceAttributeEnumValuesRequest\x1a\x43.sift.resource_attribute.v1.ListResourceAttributeEnumValuesResponse\"O\x82\xd3\xe4\x93\x02I\x12G/api/v1/resource-attribute-keys/{resource_attribute_key_id}/enum-values\x12\x83\x02\n UpdateResourceAttributeEnumValue\x12\x43.sift.resource_attribute.v1.UpdateResourceAttributeEnumValueRequest\x1a\x44.sift.resource_attribute.v1.UpdateResourceAttributeEnumValueResponse\"T\x82\xd3\xe4\x93\x02N2I/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}:\x01*\x12\x84\x02\n!ArchiveResourceAttributeEnumValue\x12\x44.sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueRequest\x1a\x45.sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueResponse\"R\x82\xd3\xe4\x93\x02L\"G/api/v1/resource-attribute-enum-values/{archived_enum_value_id}/archive:\x01*\x12\x93\x02\n#UnarchiveResourceAttributeEnumValue\x12\x46.sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueRequest\x1aG.sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueResponse\"[\x82\xd3\xe4\x93\x02U\"S/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}/unarchive\x12\x83\x02\n\'BatchArchiveResourceAttributeEnumValues\x12J.sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest\x1aK.sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/api/v1/resource-attribute-enum-values/batch-archive:\x01*\x12\x8b\x02\n)BatchUnarchiveResourceAttributeEnumValues\x12L.sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesRequest\x1aM.sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesResponse\"A\x82\xd3\xe4\x93\x02;\"6/api/v1/resource-attribute-enum-values/batch-unarchive:\x01*\x12\xba\x01\n\x17\x43reateResourceAttribute\x12:.sift.resource_attribute.v1.CreateResourceAttributeRequest\x1a;.sift.resource_attribute.v1.CreateResourceAttributeResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/api/v1/resource-attributes:\x01*\x12\xd2\x01\n\x1d\x42\x61tchCreateResourceAttributes\x12@.sift.resource_attribute.v1.BatchCreateResourceAttributesRequest\x1a\x41.sift.resource_attribute.v1.BatchCreateResourceAttributesResponse\",\x82\xd3\xe4\x93\x02&\"!/api/v1/resource-attributes/batch:\x01*\x12\xc6\x01\n\x14GetResourceAttribute\x12\x37.sift.resource_attribute.v1.GetResourceAttributeRequest\x1a\x38.sift.resource_attribute.v1.GetResourceAttributeResponse\";\x82\xd3\xe4\x93\x02\x35\x12\x33/api/v1/resource-attributes/{resource_attribute_id}\x12\xb4\x01\n\x16ListResourceAttributes\x12\x39.sift.resource_attribute.v1.ListResourceAttributesRequest\x1a:.sift.resource_attribute.v1.ListResourceAttributesResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/v1/resource-attributes\x12\xe8\x01\n\x1eListResourceAttributesByEntity\x12\x41.sift.resource_attribute.v1.ListResourceAttributesByEntityRequest\x1a\x42.sift.resource_attribute.v1.ListResourceAttributesByEntityResponse\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/api/v1/entities/{entity.entity_id}/resource-attributes\x12\xda\x01\n\x18\x41rchiveResourceAttribute\x12;.sift.resource_attribute.v1.ArchiveResourceAttributeRequest\x1a<.sift.resource_attribute.v1.ArchiveResourceAttributeResponse\"C\x82\xd3\xe4\x93\x02=\";/api/v1/resource-attributes/{resource_attribute_id}/archive\x12\xe2\x01\n\x1aUnarchiveResourceAttribute\x12=.sift.resource_attribute.v1.UnarchiveResourceAttributeRequest\x1a>.sift.resource_attribute.v1.UnarchiveResourceAttributeResponse\"E\x82\xd3\xe4\x93\x02?\"=/api/v1/resource-attributes/{resource_attribute_id}/unarchive\x12\xdd\x01\n\x1e\x42\x61tchArchiveResourceAttributes\x12\x41.sift.resource_attribute.v1.BatchArchiveResourceAttributesRequest\x1a\x42.sift.resource_attribute.v1.BatchArchiveResourceAttributesResponse\"4\x82\xd3\xe4\x93\x02.\")/api/v1/resource-attributes/batch-archive:\x01*\x12\xe5\x01\n BatchUnarchiveResourceAttributes\x12\x43.sift.resource_attribute.v1.BatchUnarchiveResourceAttributesRequest\x1a\x44.sift.resource_attribute.v1.BatchUnarchiveResourceAttributesResponse\"6\x82\xd3\xe4\x93\x02\x30\"+/api/v1/resource-attributes/batch-unarchive:\x01*\x1a\x44\x92\x41\x41\x12?Service to manage ABAC resource attributes (entity attributes).B\xdf\x01\n\x1e\x63om.sift.resource_attribute.v1B\x16ResourceAttributeProtoP\x01\xa2\x02\x03SRX\xaa\x02\x19Sift.ResourceAttribute.V1\xca\x02\x19Sift\\ResourceAttribute\\V1\xe2\x02%Sift\\ResourceAttribute\\V1\\GPBMetadata\xea\x02\x1bSift::ResourceAttribute::V1\x92\x41\x1e\x12\x1c\n\x1aResource Attribute serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.resource_attribute.v1.resource_attribute_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\036com.sift.resource_attribute.v1B\026ResourceAttributeProtoP\001\242\002\003SRX\252\002\031Sift.ResourceAttribute.V1\312\002\031Sift\\ResourceAttribute\\V1\342\002%Sift\\ResourceAttribute\\V1\\GPBMetadata\352\002\033Sift::ResourceAttribute::V1\222A\036\022\034\n\032Resource Attribute service' + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['resource_attribute_key_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['resource_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['organization_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['organization_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['display_name']._loaded_options = None + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['display_name']._serialized_options = b'\340A\002' + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['description']._loaded_options = None + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['type']._loaded_options = None + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['type']._serialized_options = b'\340A\002' + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['created_date']._loaded_options = None + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['created_date']._serialized_options = b'\340A\002' + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['created_by_user_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['created_by_user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['modified_date']._loaded_options = None + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['modified_date']._serialized_options = b'\340A\002' + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['modified_by_user_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['modified_by_user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['archived_date']._loaded_options = None + _globals['_RESOURCEATTRIBUTEKEY'].fields_by_name['archived_date']._serialized_options = b'\340A\001' + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['resource_attribute_enum_value_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['resource_attribute_enum_value_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['resource_attribute_key_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['resource_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['display_name']._loaded_options = None + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['display_name']._serialized_options = b'\340A\002' + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['description']._loaded_options = None + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['created_date']._loaded_options = None + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['created_date']._serialized_options = b'\340A\002' + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['created_by_user_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['created_by_user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['modified_date']._loaded_options = None + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['modified_date']._serialized_options = b'\340A\002' + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['modified_by_user_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['modified_by_user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['archived_date']._loaded_options = None + _globals['_RESOURCEATTRIBUTEENUMVALUE'].fields_by_name['archived_date']._serialized_options = b'\340A\001' + _globals['_RESOURCEATTRIBUTE'].fields_by_name['resource_attribute_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTE'].fields_by_name['resource_attribute_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTE'].fields_by_name['organization_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTE'].fields_by_name['organization_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTE'].fields_by_name['entity']._loaded_options = None + _globals['_RESOURCEATTRIBUTE'].fields_by_name['entity']._serialized_options = b'\340A\002' + _globals['_RESOURCEATTRIBUTE'].fields_by_name['resource_attribute_key_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTE'].fields_by_name['resource_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTE'].fields_by_name['key']._loaded_options = None + _globals['_RESOURCEATTRIBUTE'].fields_by_name['key']._serialized_options = b'\340A\001' + _globals['_RESOURCEATTRIBUTE'].fields_by_name['resource_attribute_enum_value_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTE'].fields_by_name['resource_attribute_enum_value_id']._serialized_options = b'\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTE'].fields_by_name['enum_value_details']._loaded_options = None + _globals['_RESOURCEATTRIBUTE'].fields_by_name['enum_value_details']._serialized_options = b'\340A\001' + _globals['_RESOURCEATTRIBUTE'].fields_by_name['created_date']._loaded_options = None + _globals['_RESOURCEATTRIBUTE'].fields_by_name['created_date']._serialized_options = b'\340A\002' + _globals['_RESOURCEATTRIBUTE'].fields_by_name['created_by_user_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTE'].fields_by_name['created_by_user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTE'].fields_by_name['archived_date']._loaded_options = None + _globals['_RESOURCEATTRIBUTE'].fields_by_name['archived_date']._serialized_options = b'\340A\001' + _globals['_RESOURCEATTRIBUTEENTITYIDENTIFIER'].fields_by_name['entity_id']._loaded_options = None + _globals['_RESOURCEATTRIBUTEENTITYIDENTIFIER'].fields_by_name['entity_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTEENTITYIDENTIFIER'].fields_by_name['entity_type']._loaded_options = None + _globals['_RESOURCEATTRIBUTEENTITYIDENTIFIER'].fields_by_name['entity_type']._serialized_options = b'\340A\002' + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST_INITIALENUMVALUE'].fields_by_name['display_name']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST_INITIALENUMVALUE'].fields_by_name['display_name']._serialized_options = b'\340A\002' + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST_INITIALENUMVALUE'].fields_by_name['description']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST_INITIALENUMVALUE'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['display_name']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['display_name']._serialized_options = b'\340A\002' + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['description']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['type']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['type']._serialized_options = b'\340A\002' + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['initial_enum_values']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['initial_enum_values']._serialized_options = b'\340A\001\272H\005\222\001\002\020d' + _globals['_CREATERESOURCEATTRIBUTEKEYRESPONSE'].fields_by_name['resource_attribute_key']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEKEYRESPONSE'].fields_by_name['resource_attribute_key']._serialized_options = b'\340A\002' + _globals['_GETRESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['resource_attribute_key_id']._loaded_options = None + _globals['_GETRESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['resource_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_GETRESOURCEATTRIBUTEKEYRESPONSE'].fields_by_name['resource_attribute_key']._loaded_options = None + _globals['_GETRESOURCEATTRIBUTEKEYRESPONSE'].fields_by_name['resource_attribute_key']._serialized_options = b'\340A\002' + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['page_size']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['page_size']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['page_token']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['page_token']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['filter']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['filter']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['order_by']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['order_by']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['include_archived']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['include_archived']._serialized_options = b'\340A\001' + _globals['_UPDATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['resource_attribute_key_id']._loaded_options = None + _globals['_UPDATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['resource_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_UPDATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['display_name']._loaded_options = None + _globals['_UPDATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['display_name']._serialized_options = b'\340A\001' + _globals['_UPDATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['description']._loaded_options = None + _globals['_UPDATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_UPDATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['update_mask']._loaded_options = None + _globals['_UPDATERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['update_mask']._serialized_options = b'\340A\002' + _globals['_UPDATERESOURCEATTRIBUTEKEYRESPONSE'].fields_by_name['resource_attribute_key']._loaded_options = None + _globals['_UPDATERESOURCEATTRIBUTEKEYRESPONSE'].fields_by_name['resource_attribute_key']._serialized_options = b'\340A\002' + _globals['_ARCHIVERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['resource_attribute_key_id']._loaded_options = None + _globals['_ARCHIVERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['resource_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_UNARCHIVERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['resource_attribute_key_id']._loaded_options = None + _globals['_UNARCHIVERESOURCEATTRIBUTEKEYREQUEST'].fields_by_name['resource_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_BATCHARCHIVERESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['resource_attribute_key_ids']._loaded_options = None + _globals['_BATCHARCHIVERESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['resource_attribute_key_ids']._serialized_options = b'\340A\002\272H\017\222\001\014\010\001\020\210\'\"\005r\003\260\001\001' + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['resource_attribute_key_ids']._loaded_options = None + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEKEYSREQUEST'].fields_by_name['resource_attribute_key_ids']._serialized_options = b'\340A\002\272H\017\222\001\014\010\001\020\210\'\"\005r\003\260\001\001' + _globals['_CREATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['resource_attribute_key_id']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['resource_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_CREATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['display_name']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['display_name']._serialized_options = b'\340A\002' + _globals['_CREATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['description']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_CREATERESOURCEATTRIBUTEENUMVALUERESPONSE'].fields_by_name['resource_attribute_enum_value']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEENUMVALUERESPONSE'].fields_by_name['resource_attribute_enum_value']._serialized_options = b'\340A\002' + _globals['_GETRESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['resource_attribute_enum_value_id']._loaded_options = None + _globals['_GETRESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['resource_attribute_enum_value_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_GETRESOURCEATTRIBUTEENUMVALUERESPONSE'].fields_by_name['resource_attribute_enum_value']._loaded_options = None + _globals['_GETRESOURCEATTRIBUTEENUMVALUERESPONSE'].fields_by_name['resource_attribute_enum_value']._serialized_options = b'\340A\002' + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['resource_attribute_key_id']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['resource_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['page_size']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['page_size']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['page_token']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['page_token']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['filter']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['filter']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['order_by']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['order_by']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['include_archived']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['include_archived']._serialized_options = b'\340A\001' + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['resource_attribute_enum_value_id']._loaded_options = None + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['resource_attribute_enum_value_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['display_name']._loaded_options = None + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['display_name']._serialized_options = b'\340A\001' + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['description']._loaded_options = None + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['update_mask']._loaded_options = None + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['update_mask']._serialized_options = b'\340A\002' + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUERESPONSE'].fields_by_name['resource_attribute_enum_value']._loaded_options = None + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUERESPONSE'].fields_by_name['resource_attribute_enum_value']._serialized_options = b'\340A\002' + _globals['_ARCHIVERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['archived_enum_value_id']._loaded_options = None + _globals['_ARCHIVERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['archived_enum_value_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_ARCHIVERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['replacement_enum_value_id']._loaded_options = None + _globals['_ARCHIVERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['replacement_enum_value_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_UNARCHIVERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['resource_attribute_enum_value_id']._loaded_options = None + _globals['_UNARCHIVERESOURCEATTRIBUTEENUMVALUEREQUEST'].fields_by_name['resource_attribute_enum_value_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST_ENUMVALUEARCHIVAL'].fields_by_name['archived_enum_value_id']._loaded_options = None + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST_ENUMVALUEARCHIVAL'].fields_by_name['archived_enum_value_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST_ENUMVALUEARCHIVAL'].fields_by_name['replacement_enum_value_id']._loaded_options = None + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST_ENUMVALUEARCHIVAL'].fields_by_name['replacement_enum_value_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['archival_requests']._loaded_options = None + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['archival_requests']._serialized_options = b'\340A\002\272H\010\222\001\005\010\001\020\210\'' + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['resource_attribute_enum_value_ids']._loaded_options = None + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST'].fields_by_name['resource_attribute_enum_value_ids']._serialized_options = b'\340A\002\272H\017\222\001\014\010\001\020\210\'\"\005r\003\260\001\001' + _globals['_CREATERESOURCEATTRIBUTEREQUEST'].fields_by_name['entity']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEREQUEST'].fields_by_name['entity']._serialized_options = b'\340A\002' + _globals['_CREATERESOURCEATTRIBUTEREQUEST'].fields_by_name['resource_attribute_key_id']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEREQUEST'].fields_by_name['resource_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_CREATERESOURCEATTRIBUTEREQUEST'].fields_by_name['resource_attribute_enum_value_id']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTEREQUEST'].fields_by_name['resource_attribute_enum_value_id']._serialized_options = b'\272H\005r\003\260\001\001' + _globals['_CREATERESOURCEATTRIBUTERESPONSE'].fields_by_name['resource_attribute']._loaded_options = None + _globals['_CREATERESOURCEATTRIBUTERESPONSE'].fields_by_name['resource_attribute']._serialized_options = b'\340A\002' + _globals['_BATCHCREATERESOURCEATTRIBUTESREQUEST'].fields_by_name['resource_attribute_key_id']._loaded_options = None + _globals['_BATCHCREATERESOURCEATTRIBUTESREQUEST'].fields_by_name['resource_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_BATCHCREATERESOURCEATTRIBUTESREQUEST'].fields_by_name['resource_attribute_enum_value_id']._loaded_options = None + _globals['_BATCHCREATERESOURCEATTRIBUTESREQUEST'].fields_by_name['resource_attribute_enum_value_id']._serialized_options = b'\272H\005r\003\260\001\001' + _globals['_BATCHCREATERESOURCEATTRIBUTESREQUEST'].fields_by_name['entities']._loaded_options = None + _globals['_BATCHCREATERESOURCEATTRIBUTESREQUEST'].fields_by_name['entities']._serialized_options = b'\340A\002\272H\010\222\001\005\010\001\020\210\'' + _globals['_GETRESOURCEATTRIBUTEREQUEST'].fields_by_name['resource_attribute_id']._loaded_options = None + _globals['_GETRESOURCEATTRIBUTEREQUEST'].fields_by_name['resource_attribute_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_GETRESOURCEATTRIBUTERESPONSE'].fields_by_name['resource_attribute']._loaded_options = None + _globals['_GETRESOURCEATTRIBUTERESPONSE'].fields_by_name['resource_attribute']._serialized_options = b'\340A\002' + _globals['_LISTRESOURCEATTRIBUTESREQUEST'].fields_by_name['page_size']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTESREQUEST'].fields_by_name['page_size']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTESREQUEST'].fields_by_name['page_token']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTESREQUEST'].fields_by_name['page_token']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTESREQUEST'].fields_by_name['filter']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTESREQUEST'].fields_by_name['filter']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTESREQUEST'].fields_by_name['order_by']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTESREQUEST'].fields_by_name['order_by']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTESREQUEST'].fields_by_name['include_archived']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTESREQUEST'].fields_by_name['include_archived']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTESBYENTITYREQUEST'].fields_by_name['entity']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTESBYENTITYREQUEST'].fields_by_name['entity']._serialized_options = b'\340A\002' + _globals['_LISTRESOURCEATTRIBUTESBYENTITYREQUEST'].fields_by_name['include_archived']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTESBYENTITYREQUEST'].fields_by_name['include_archived']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTESBYENTITYREQUEST'].fields_by_name['page_size']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTESBYENTITYREQUEST'].fields_by_name['page_size']._serialized_options = b'\340A\001' + _globals['_LISTRESOURCEATTRIBUTESBYENTITYREQUEST'].fields_by_name['page_token']._loaded_options = None + _globals['_LISTRESOURCEATTRIBUTESBYENTITYREQUEST'].fields_by_name['page_token']._serialized_options = b'\340A\001' + _globals['_ARCHIVERESOURCEATTRIBUTEREQUEST'].fields_by_name['resource_attribute_id']._loaded_options = None + _globals['_ARCHIVERESOURCEATTRIBUTEREQUEST'].fields_by_name['resource_attribute_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_UNARCHIVERESOURCEATTRIBUTEREQUEST'].fields_by_name['resource_attribute_id']._loaded_options = None + _globals['_UNARCHIVERESOURCEATTRIBUTEREQUEST'].fields_by_name['resource_attribute_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_BATCHARCHIVERESOURCEATTRIBUTESREQUEST'].fields_by_name['resource_attribute_ids']._loaded_options = None + _globals['_BATCHARCHIVERESOURCEATTRIBUTESREQUEST'].fields_by_name['resource_attribute_ids']._serialized_options = b'\340A\002\272H\017\222\001\014\010\001\020\210\'\"\005r\003\260\001\001' + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTESREQUEST'].fields_by_name['resource_attribute_ids']._loaded_options = None + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTESREQUEST'].fields_by_name['resource_attribute_ids']._serialized_options = b'\340A\002\272H\017\222\001\014\010\001\020\210\'\"\005r\003\260\001\001' + _globals['_RESOURCEATTRIBUTESERVICE']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE']._serialized_options = b'\222AA\022?Service to manage ABAC resource attributes (entity attributes).' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['CreateResourceAttributeKey']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['CreateResourceAttributeKey']._serialized_options = b'\202\323\344\223\002$\"\037/api/v1/resource-attribute-keys:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['GetResourceAttributeKey']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['GetResourceAttributeKey']._serialized_options = b'\202\323\344\223\002=\022;/api/v1/resource-attribute-keys/{resource_attribute_key_id}' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ListResourceAttributeKeys']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ListResourceAttributeKeys']._serialized_options = b'\202\323\344\223\002!\022\037/api/v1/resource-attribute-keys' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['UpdateResourceAttributeKey']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['UpdateResourceAttributeKey']._serialized_options = b'\202\323\344\223\002@2;/api/v1/resource-attribute-keys/{resource_attribute_key_id}:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ArchiveResourceAttributeKey']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ArchiveResourceAttributeKey']._serialized_options = b'\202\323\344\223\002E\"C/api/v1/resource-attribute-keys/{resource_attribute_key_id}/archive' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['UnarchiveResourceAttributeKey']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['UnarchiveResourceAttributeKey']._serialized_options = b'\202\323\344\223\002G\"E/api/v1/resource-attribute-keys/{resource_attribute_key_id}/unarchive' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchArchiveResourceAttributeKeys']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchArchiveResourceAttributeKeys']._serialized_options = b'\202\323\344\223\0022\"-/api/v1/resource-attribute-keys/batch-archive:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchUnarchiveResourceAttributeKeys']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchUnarchiveResourceAttributeKeys']._serialized_options = b'\202\323\344\223\0024\"//api/v1/resource-attribute-keys/batch-unarchive:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['CreateResourceAttributeEnumValue']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['CreateResourceAttributeEnumValue']._serialized_options = b'\202\323\344\223\002+\"&/api/v1/resource-attribute-enum-values:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['GetResourceAttributeEnumValue']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['GetResourceAttributeEnumValue']._serialized_options = b'\202\323\344\223\002K\022I/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ListResourceAttributeEnumValues']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ListResourceAttributeEnumValues']._serialized_options = b'\202\323\344\223\002I\022G/api/v1/resource-attribute-keys/{resource_attribute_key_id}/enum-values' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['UpdateResourceAttributeEnumValue']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['UpdateResourceAttributeEnumValue']._serialized_options = b'\202\323\344\223\002N2I/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ArchiveResourceAttributeEnumValue']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ArchiveResourceAttributeEnumValue']._serialized_options = b'\202\323\344\223\002L\"G/api/v1/resource-attribute-enum-values/{archived_enum_value_id}/archive:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['UnarchiveResourceAttributeEnumValue']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['UnarchiveResourceAttributeEnumValue']._serialized_options = b'\202\323\344\223\002U\"S/api/v1/resource-attribute-enum-values/{resource_attribute_enum_value_id}/unarchive' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchArchiveResourceAttributeEnumValues']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchArchiveResourceAttributeEnumValues']._serialized_options = b'\202\323\344\223\0029\"4/api/v1/resource-attribute-enum-values/batch-archive:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchUnarchiveResourceAttributeEnumValues']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchUnarchiveResourceAttributeEnumValues']._serialized_options = b'\202\323\344\223\002;\"6/api/v1/resource-attribute-enum-values/batch-unarchive:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['CreateResourceAttribute']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['CreateResourceAttribute']._serialized_options = b'\202\323\344\223\002 \"\033/api/v1/resource-attributes:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchCreateResourceAttributes']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchCreateResourceAttributes']._serialized_options = b'\202\323\344\223\002&\"!/api/v1/resource-attributes/batch:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['GetResourceAttribute']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['GetResourceAttribute']._serialized_options = b'\202\323\344\223\0025\0223/api/v1/resource-attributes/{resource_attribute_id}' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ListResourceAttributes']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ListResourceAttributes']._serialized_options = b'\202\323\344\223\002\035\022\033/api/v1/resource-attributes' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ListResourceAttributesByEntity']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ListResourceAttributesByEntity']._serialized_options = b'\202\323\344\223\0029\0227/api/v1/entities/{entity.entity_id}/resource-attributes' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ArchiveResourceAttribute']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['ArchiveResourceAttribute']._serialized_options = b'\202\323\344\223\002=\";/api/v1/resource-attributes/{resource_attribute_id}/archive' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['UnarchiveResourceAttribute']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['UnarchiveResourceAttribute']._serialized_options = b'\202\323\344\223\002?\"=/api/v1/resource-attributes/{resource_attribute_id}/unarchive' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchArchiveResourceAttributes']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchArchiveResourceAttributes']._serialized_options = b'\202\323\344\223\002.\")/api/v1/resource-attributes/batch-archive:\001*' + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchUnarchiveResourceAttributes']._loaded_options = None + _globals['_RESOURCEATTRIBUTESERVICE'].methods_by_name['BatchUnarchiveResourceAttributes']._serialized_options = b'\202\323\344\223\0020\"+/api/v1/resource-attributes/batch-unarchive:\001*' + _globals['_RESOURCEATTRIBUTEKEYTYPE']._serialized_start=10382 + _globals['_RESOURCEATTRIBUTEKEYTYPE']._serialized_end=10617 + _globals['_RESOURCEATTRIBUTEENTITYTYPE']._serialized_start=10620 + _globals['_RESOURCEATTRIBUTEENTITYTYPE']._serialized_end=10783 + _globals['_RESOURCEATTRIBUTEKEY']._serialized_start=291 + _globals['_RESOURCEATTRIBUTEKEY']._serialized_end=923 + _globals['_RESOURCEATTRIBUTEENUMVALUE']._serialized_start=926 + _globals['_RESOURCEATTRIBUTEENUMVALUE']._serialized_end=1516 + _globals['_RESOURCEATTRIBUTE']._serialized_start=1519 + _globals['_RESOURCEATTRIBUTE']._serialized_end=2366 + _globals['_RESOURCEATTRIBUTEENTITYIDENTIFIER']._serialized_start=2369 + _globals['_RESOURCEATTRIBUTEENTITYIDENTIFIER']._serialized_end=2541 + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST']._serialized_start=2544 + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST']._serialized_end=2978 + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST_INITIALENUMVALUE']._serialized_start=2881 + _globals['_CREATERESOURCEATTRIBUTEKEYREQUEST_INITIALENUMVALUE']._serialized_end=2978 + _globals['_CREATERESOURCEATTRIBUTEKEYRESPONSE']._serialized_start=2981 + _globals['_CREATERESOURCEATTRIBUTEKEYRESPONSE']._serialized_end=3215 + _globals['_GETRESOURCEATTRIBUTEKEYREQUEST']._serialized_start=3217 + _globals['_GETRESOURCEATTRIBUTEKEYREQUEST']._serialized_end=3321 + _globals['_GETRESOURCEATTRIBUTEKEYRESPONSE']._serialized_start=3324 + _globals['_GETRESOURCEATTRIBUTEKEYRESPONSE']._serialized_end=3466 + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST']._serialized_start=3469 + _globals['_LISTRESOURCEATTRIBUTEKEYSREQUEST']._serialized_end=3682 + _globals['_LISTRESOURCEATTRIBUTEKEYSRESPONSE']._serialized_start=3685 + _globals['_LISTRESOURCEATTRIBUTEKEYSRESPONSE']._serialized_end=3866 + _globals['_UPDATERESOURCEATTRIBUTEKEYREQUEST']._serialized_start=3869 + _globals['_UPDATERESOURCEATTRIBUTEKEYREQUEST']._serialized_end=4121 + _globals['_UPDATERESOURCEATTRIBUTEKEYRESPONSE']._serialized_start=4124 + _globals['_UPDATERESOURCEATTRIBUTEKEYRESPONSE']._serialized_end=4269 + _globals['_ARCHIVERESOURCEATTRIBUTEKEYREQUEST']._serialized_start=4271 + _globals['_ARCHIVERESOURCEATTRIBUTEKEYREQUEST']._serialized_end=4379 + _globals['_ARCHIVERESOURCEATTRIBUTEKEYRESPONSE']._serialized_start=4381 + _globals['_ARCHIVERESOURCEATTRIBUTEKEYRESPONSE']._serialized_end=4418 + _globals['_UNARCHIVERESOURCEATTRIBUTEKEYREQUEST']._serialized_start=4420 + _globals['_UNARCHIVERESOURCEATTRIBUTEKEYREQUEST']._serialized_end=4530 + _globals['_UNARCHIVERESOURCEATTRIBUTEKEYRESPONSE']._serialized_start=4532 + _globals['_UNARCHIVERESOURCEATTRIBUTEKEYRESPONSE']._serialized_end=4571 + _globals['_BATCHARCHIVERESOURCEATTRIBUTEKEYSREQUEST']._serialized_start=4573 + _globals['_BATCHARCHIVERESOURCEATTRIBUTEKEYSREQUEST']._serialized_end=4699 + _globals['_BATCHARCHIVERESOURCEATTRIBUTEKEYSRESPONSE']._serialized_start=4701 + _globals['_BATCHARCHIVERESOURCEATTRIBUTEKEYSRESPONSE']._serialized_end=4744 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEKEYSREQUEST']._serialized_start=4747 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEKEYSREQUEST']._serialized_end=4875 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEKEYSRESPONSE']._serialized_start=4877 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEKEYSRESPONSE']._serialized_end=4922 + _globals['_CREATERESOURCEATTRIBUTEENUMVALUEREQUEST']._serialized_start=4925 + _globals['_CREATERESOURCEATTRIBUTEENUMVALUEREQUEST']._serialized_end=5117 + _globals['_CREATERESOURCEATTRIBUTEENUMVALUERESPONSE']._serialized_start=5120 + _globals['_CREATERESOURCEATTRIBUTEENUMVALUERESPONSE']._serialized_end=5290 + _globals['_GETRESOURCEATTRIBUTEENUMVALUEREQUEST']._serialized_start=5292 + _globals['_GETRESOURCEATTRIBUTEENUMVALUEREQUEST']._serialized_end=5415 + _globals['_GETRESOURCEATTRIBUTEENUMVALUERESPONSE']._serialized_start=5418 + _globals['_GETRESOURCEATTRIBUTEENUMVALUERESPONSE']._serialized_end=5585 + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST']._serialized_start=5588 + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESREQUEST']._serialized_end=5879 + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESRESPONSE']._serialized_start=5882 + _globals['_LISTRESOURCEATTRIBUTEENUMVALUESRESPONSE']._serialized_end=6088 + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUEREQUEST']._serialized_start=6091 + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUEREQUEST']._serialized_end=6362 + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUERESPONSE']._serialized_start=6365 + _globals['_UPDATERESOURCEATTRIBUTEENUMVALUERESPONSE']._serialized_end=6535 + _globals['_ARCHIVERESOURCEATTRIBUTEENUMVALUEREQUEST']._serialized_start=6538 + _globals['_ARCHIVERESOURCEATTRIBUTEENUMVALUEREQUEST']._serialized_end=6718 + _globals['_ARCHIVERESOURCEATTRIBUTEENUMVALUERESPONSE']._serialized_start=6720 + _globals['_ARCHIVERESOURCEATTRIBUTEENUMVALUERESPONSE']._serialized_end=6829 + _globals['_UNARCHIVERESOURCEATTRIBUTEENUMVALUEREQUEST']._serialized_start=6832 + _globals['_UNARCHIVERESOURCEATTRIBUTEENUMVALUEREQUEST']._serialized_end=6961 + _globals['_UNARCHIVERESOURCEATTRIBUTEENUMVALUERESPONSE']._serialized_start=6963 + _globals['_UNARCHIVERESOURCEATTRIBUTEENUMVALUERESPONSE']._serialized_end=7008 + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST']._serialized_start=7011 + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST']._serialized_end=7375 + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST_ENUMVALUEARCHIVAL']._serialized_start=7218 + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST_ENUMVALUEARCHIVAL']._serialized_end=7375 + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESRESPONSE']._serialized_start=7377 + _globals['_BATCHARCHIVERESOURCEATTRIBUTEENUMVALUESRESPONSE']._serialized_end=7503 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST']._serialized_start=7506 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEENUMVALUESREQUEST']._serialized_end=7653 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEENUMVALUESRESPONSE']._serialized_start=7655 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTEENUMVALUESRESPONSE']._serialized_end=7706 + _globals['_CREATERESOURCEATTRIBUTEREQUEST']._serialized_start=7709 + _globals['_CREATERESOURCEATTRIBUTEREQUEST']._serialized_end=8074 + _globals['_CREATERESOURCEATTRIBUTERESPONSE']._serialized_start=8077 + _globals['_CREATERESOURCEATTRIBUTERESPONSE']._serialized_end=8209 + _globals['_BATCHCREATERESOURCEATTRIBUTESREQUEST']._serialized_start=8212 + _globals['_BATCHCREATERESOURCEATTRIBUTESREQUEST']._serialized_end=8598 + _globals['_BATCHCREATERESOURCEATTRIBUTESRESPONSE']._serialized_start=8601 + _globals['_BATCHCREATERESOURCEATTRIBUTESRESPONSE']._serialized_end=8736 + _globals['_GETRESOURCEATTRIBUTEREQUEST']._serialized_start=8738 + _globals['_GETRESOURCEATTRIBUTEREQUEST']._serialized_end=8832 + _globals['_GETRESOURCEATTRIBUTERESPONSE']._serialized_start=8835 + _globals['_GETRESOURCEATTRIBUTERESPONSE']._serialized_end=8964 + _globals['_LISTRESOURCEATTRIBUTESREQUEST']._serialized_start=8967 + _globals['_LISTRESOURCEATTRIBUTESREQUEST']._serialized_end=9177 + _globals['_LISTRESOURCEATTRIBUTESRESPONSE']._serialized_start=9180 + _globals['_LISTRESOURCEATTRIBUTESRESPONSE']._serialized_end=9348 + _globals['_LISTRESOURCEATTRIBUTESBYENTITYREQUEST']._serialized_start=9351 + _globals['_LISTRESOURCEATTRIBUTESBYENTITYREQUEST']._serialized_end=9600 + _globals['_LISTRESOURCEATTRIBUTESBYENTITYRESPONSE']._serialized_start=9603 + _globals['_LISTRESOURCEATTRIBUTESBYENTITYRESPONSE']._serialized_end=9779 + _globals['_ARCHIVERESOURCEATTRIBUTEREQUEST']._serialized_start=9781 + _globals['_ARCHIVERESOURCEATTRIBUTEREQUEST']._serialized_end=9879 + _globals['_ARCHIVERESOURCEATTRIBUTERESPONSE']._serialized_start=9881 + _globals['_ARCHIVERESOURCEATTRIBUTERESPONSE']._serialized_end=9915 + _globals['_UNARCHIVERESOURCEATTRIBUTEREQUEST']._serialized_start=9917 + _globals['_UNARCHIVERESOURCEATTRIBUTEREQUEST']._serialized_end=10017 + _globals['_UNARCHIVERESOURCEATTRIBUTERESPONSE']._serialized_start=10019 + _globals['_UNARCHIVERESOURCEATTRIBUTERESPONSE']._serialized_end=10055 + _globals['_BATCHARCHIVERESOURCEATTRIBUTESREQUEST']._serialized_start=10057 + _globals['_BATCHARCHIVERESOURCEATTRIBUTESREQUEST']._serialized_end=10173 + _globals['_BATCHARCHIVERESOURCEATTRIBUTESRESPONSE']._serialized_start=10175 + _globals['_BATCHARCHIVERESOURCEATTRIBUTESRESPONSE']._serialized_end=10215 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTESREQUEST']._serialized_start=10217 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTESREQUEST']._serialized_end=10335 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTESRESPONSE']._serialized_start=10337 + _globals['_BATCHUNARCHIVERESOURCEATTRIBUTESRESPONSE']._serialized_end=10379 + _globals['_RESOURCEATTRIBUTESERVICE']._serialized_start=10786 + _globals['_RESOURCEATTRIBUTESERVICE']._serialized_end=16687 +# @@protoc_insertion_point(module_scope) diff --git a/python/lib/sift/resource_attribute/v1/resource_attribute_pb2.pyi b/python/lib/sift/resource_attribute/v1/resource_attribute_pb2.pyi new file mode 100644 index 000000000..7ce204bc2 --- /dev/null +++ b/python/lib/sift/resource_attribute/v1/resource_attribute_pb2.pyi @@ -0,0 +1,1229 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.field_mask_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _ResourceAttributeKeyType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ResourceAttributeKeyTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResourceAttributeKeyType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED: _ResourceAttributeKeyType.ValueType # 0 + RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM: _ResourceAttributeKeyType.ValueType # 1 + RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN: _ResourceAttributeKeyType.ValueType # 2 + RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER: _ResourceAttributeKeyType.ValueType # 3 + RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM: _ResourceAttributeKeyType.ValueType # 4 + +class ResourceAttributeKeyType(_ResourceAttributeKeyType, metaclass=_ResourceAttributeKeyTypeEnumTypeWrapper): + """Values become selectable enumerable options.""" + +RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED: ResourceAttributeKeyType.ValueType # 0 +RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM: ResourceAttributeKeyType.ValueType # 1 +RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN: ResourceAttributeKeyType.ValueType # 2 +RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER: ResourceAttributeKeyType.ValueType # 3 +RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM: ResourceAttributeKeyType.ValueType # 4 +global___ResourceAttributeKeyType = ResourceAttributeKeyType + +class _ResourceAttributeEntityType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ResourceAttributeEntityTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResourceAttributeEntityType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED: _ResourceAttributeEntityType.ValueType # 0 + RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET: _ResourceAttributeEntityType.ValueType # 1 + RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL: _ResourceAttributeEntityType.ValueType # 2 + +class ResourceAttributeEntityType(_ResourceAttributeEntityType, metaclass=_ResourceAttributeEntityTypeEnumTypeWrapper): ... + +RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED: ResourceAttributeEntityType.ValueType # 0 +RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET: ResourceAttributeEntityType.ValueType # 1 +RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL: ResourceAttributeEntityType.ValueType # 2 +global___ResourceAttributeEntityType = ResourceAttributeEntityType + +@typing.final +class ResourceAttributeKey(google.protobuf.message.Message): + """A ResourceAttribute Key defines an attribute that can be assigned to Entities for the purpose of attribute based access control (ABAC).""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + ORGANIZATION_ID_FIELD_NUMBER: builtins.int + DISPLAY_NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + CREATED_DATE_FIELD_NUMBER: builtins.int + CREATED_BY_USER_ID_FIELD_NUMBER: builtins.int + MODIFIED_DATE_FIELD_NUMBER: builtins.int + MODIFIED_BY_USER_ID_FIELD_NUMBER: builtins.int + ARCHIVED_DATE_FIELD_NUMBER: builtins.int + resource_attribute_key_id: builtins.str + organization_id: builtins.str + display_name: builtins.str + description: builtins.str + type: global___ResourceAttributeKeyType.ValueType + created_by_user_id: builtins.str + modified_by_user_id: builtins.str + @property + def created_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def modified_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def archived_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + resource_attribute_key_id: builtins.str = ..., + organization_id: builtins.str = ..., + display_name: builtins.str = ..., + description: builtins.str = ..., + type: global___ResourceAttributeKeyType.ValueType = ..., + created_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by_user_id: builtins.str = ..., + modified_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + modified_by_user_id: builtins.str = ..., + archived_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["archived_date", b"archived_date", "created_date", b"created_date", "modified_date", b"modified_date"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["archived_date", b"archived_date", "created_by_user_id", b"created_by_user_id", "created_date", b"created_date", "description", b"description", "display_name", b"display_name", "modified_by_user_id", b"modified_by_user_id", "modified_date", b"modified_date", "organization_id", b"organization_id", "resource_attribute_key_id", b"resource_attribute_key_id", "type", b"type"]) -> None: ... + +global___ResourceAttributeKey = ResourceAttributeKey + +@typing.final +class ResourceAttributeEnumValue(google.protobuf.message.Message): + """Represents a possible enumerable value for ENUM type resource_attribute keys. + Users can add new enum values as needed. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ENUM_VALUE_ID_FIELD_NUMBER: builtins.int + RESOURCE_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + DISPLAY_NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + CREATED_DATE_FIELD_NUMBER: builtins.int + CREATED_BY_USER_ID_FIELD_NUMBER: builtins.int + MODIFIED_DATE_FIELD_NUMBER: builtins.int + MODIFIED_BY_USER_ID_FIELD_NUMBER: builtins.int + ARCHIVED_DATE_FIELD_NUMBER: builtins.int + resource_attribute_enum_value_id: builtins.str + resource_attribute_key_id: builtins.str + display_name: builtins.str + description: builtins.str + created_by_user_id: builtins.str + modified_by_user_id: builtins.str + @property + def created_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def modified_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def archived_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + resource_attribute_enum_value_id: builtins.str = ..., + resource_attribute_key_id: builtins.str = ..., + display_name: builtins.str = ..., + description: builtins.str = ..., + created_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by_user_id: builtins.str = ..., + modified_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + modified_by_user_id: builtins.str = ..., + archived_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["archived_date", b"archived_date", "created_date", b"created_date", "modified_date", b"modified_date"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["archived_date", b"archived_date", "created_by_user_id", b"created_by_user_id", "created_date", b"created_date", "description", b"description", "display_name", b"display_name", "modified_by_user_id", b"modified_by_user_id", "modified_date", b"modified_date", "resource_attribute_enum_value_id", b"resource_attribute_enum_value_id", "resource_attribute_key_id", b"resource_attribute_key_id"]) -> None: ... + +global___ResourceAttributeEnumValue = ResourceAttributeEnumValue + +@typing.final +class ResourceAttribute(google.protobuf.message.Message): + """Represents the assignment of a resource_attribute key-value pair to an entity (asset or channel).""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ID_FIELD_NUMBER: builtins.int + ORGANIZATION_ID_FIELD_NUMBER: builtins.int + ENTITY_FIELD_NUMBER: builtins.int + RESOURCE_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + RESOURCE_ATTRIBUTE_ENUM_VALUE_ID_FIELD_NUMBER: builtins.int + BOOLEAN_VALUE_FIELD_NUMBER: builtins.int + NUMBER_VALUE_FIELD_NUMBER: builtins.int + ENUM_VALUE_DETAILS_FIELD_NUMBER: builtins.int + CREATED_DATE_FIELD_NUMBER: builtins.int + CREATED_BY_USER_ID_FIELD_NUMBER: builtins.int + ARCHIVED_DATE_FIELD_NUMBER: builtins.int + resource_attribute_id: builtins.str + organization_id: builtins.str + resource_attribute_key_id: builtins.str + resource_attribute_enum_value_id: builtins.str + boolean_value: builtins.bool + number_value: builtins.float + created_by_user_id: builtins.str + @property + def entity(self) -> global___ResourceAttributeEntityIdentifier: ... + @property + def key(self) -> global___ResourceAttributeKey: + """Populated in responses with full key details.""" + + @property + def enum_value_details(self) -> global___ResourceAttributeEnumValue: + """Populated in responses with full enum value details.""" + + @property + def created_date(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The timestamp when the relation between the Entity and ResourceAttribute Key and Value was created.""" + + @property + def archived_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + resource_attribute_id: builtins.str = ..., + organization_id: builtins.str = ..., + entity: global___ResourceAttributeEntityIdentifier | None = ..., + resource_attribute_key_id: builtins.str = ..., + key: global___ResourceAttributeKey | None = ..., + resource_attribute_enum_value_id: builtins.str = ..., + boolean_value: builtins.bool = ..., + number_value: builtins.float = ..., + enum_value_details: global___ResourceAttributeEnumValue | None = ..., + created_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by_user_id: builtins.str = ..., + archived_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["archived_date", b"archived_date", "boolean_value", b"boolean_value", "created_date", b"created_date", "entity", b"entity", "enum_value_details", b"enum_value_details", "key", b"key", "number_value", b"number_value", "resource_attribute_enum_value_id", b"resource_attribute_enum_value_id", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["archived_date", b"archived_date", "boolean_value", b"boolean_value", "created_by_user_id", b"created_by_user_id", "created_date", b"created_date", "entity", b"entity", "enum_value_details", b"enum_value_details", "key", b"key", "number_value", b"number_value", "organization_id", b"organization_id", "resource_attribute_enum_value_id", b"resource_attribute_enum_value_id", "resource_attribute_id", b"resource_attribute_id", "resource_attribute_key_id", b"resource_attribute_key_id", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["resource_attribute_enum_value_id", "boolean_value", "number_value"] | None: ... + +global___ResourceAttribute = ResourceAttribute + +@typing.final +class ResourceAttributeEntityIdentifier(google.protobuf.message.Message): + """Represents an entity to which a resource_attribute will be assigned.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENTITY_ID_FIELD_NUMBER: builtins.int + ENTITY_TYPE_FIELD_NUMBER: builtins.int + entity_id: builtins.str + entity_type: global___ResourceAttributeEntityType.ValueType + def __init__( + self, + *, + entity_id: builtins.str = ..., + entity_type: global___ResourceAttributeEntityType.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["entity_id", b"entity_id", "entity_type", b"entity_type"]) -> None: ... + +global___ResourceAttributeEntityIdentifier = ResourceAttributeEntityIdentifier + +@typing.final +class CreateResourceAttributeKeyRequest(google.protobuf.message.Message): + """ResourceAttribute Key RPC messages""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class InitialEnumValue(google.protobuf.message.Message): + """Nested message for initial enum values in create requests.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DISPLAY_NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + display_name: builtins.str + description: builtins.str + def __init__( + self, + *, + display_name: builtins.str = ..., + description: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name"]) -> None: ... + + DISPLAY_NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + INITIAL_ENUM_VALUES_FIELD_NUMBER: builtins.int + display_name: builtins.str + description: builtins.str + type: global___ResourceAttributeKeyType.ValueType + @property + def initial_enum_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CreateResourceAttributeKeyRequest.InitialEnumValue]: + """Optional initial enum values to create alongside the key. Only applicable for ENUM type keys.""" + + def __init__( + self, + *, + display_name: builtins.str = ..., + description: builtins.str = ..., + type: global___ResourceAttributeKeyType.ValueType = ..., + initial_enum_values: collections.abc.Iterable[global___CreateResourceAttributeKeyRequest.InitialEnumValue] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "initial_enum_values", b"initial_enum_values", "type", b"type"]) -> None: ... + +global___CreateResourceAttributeKeyRequest = CreateResourceAttributeKeyRequest + +@typing.final +class CreateResourceAttributeKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_FIELD_NUMBER: builtins.int + ENUM_VALUES_FIELD_NUMBER: builtins.int + @property + def resource_attribute_key(self) -> global___ResourceAttributeKey: ... + @property + def enum_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResourceAttributeEnumValue]: + """The enum values created alongside the key, if any were provided in the request.""" + + def __init__( + self, + *, + resource_attribute_key: global___ResourceAttributeKey | None = ..., + enum_values: collections.abc.Iterable[global___ResourceAttributeEnumValue] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resource_attribute_key", b"resource_attribute_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["enum_values", b"enum_values", "resource_attribute_key", b"resource_attribute_key"]) -> None: ... + +global___CreateResourceAttributeKeyResponse = CreateResourceAttributeKeyResponse + +@typing.final +class GetResourceAttributeKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + resource_attribute_key_id: builtins.str + def __init__( + self, + *, + resource_attribute_key_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_key_id", b"resource_attribute_key_id"]) -> None: ... + +global___GetResourceAttributeKeyRequest = GetResourceAttributeKeyRequest + +@typing.final +class GetResourceAttributeKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_FIELD_NUMBER: builtins.int + @property + def resource_attribute_key(self) -> global___ResourceAttributeKey: ... + def __init__( + self, + *, + resource_attribute_key: global___ResourceAttributeKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resource_attribute_key", b"resource_attribute_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_key", b"resource_attribute_key"]) -> None: ... + +global___GetResourceAttributeKeyResponse = GetResourceAttributeKeyResponse + +@typing.final +class ListResourceAttributeKeysRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGE_SIZE_FIELD_NUMBER: builtins.int + PAGE_TOKEN_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + INCLUDE_ARCHIVED_FIELD_NUMBER: builtins.int + page_size: builtins.int + """The maximum number of resource_attribute keys to return. The service may return fewer than this value. + If unspecified, at most 50 resource_attribute keys will be returned. The maximum value is 100; values above + 100 will be coerced to 100. + """ + page_token: builtins.str + """A page token, received from a previous `ListResourceAttributeKeys` call. + Provide this to retrieve the subsequent page. + When paginating, all other parameters provided to `ListResourceAttributeKeys` must match + the call that provided the page token. + """ + filter: builtins.str + """A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + Available fields to filter by are `resource_attribute_key_id`, `name`, `description`, `type`, + `created_by_user_id`, `modified_by_user_id`, `created_date`, `modified_date`, and `archived_date`. + For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + """ + order_by: builtins.str + """How to order the retrieved resource_attribute keys. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + Available fields to order_by are `created_date`, `modified_date`, and `name`. + If left empty, items are ordered by `created_date` in descending order (newest-first). + For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + Example: "created_date desc,name" + """ + include_archived: builtins.bool + """Whether to include archived resource_attribute keys. Defaults to false.""" + def __init__( + self, + *, + page_size: builtins.int = ..., + page_token: builtins.str = ..., + filter: builtins.str = ..., + order_by: builtins.str = ..., + include_archived: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "include_archived", b"include_archived", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ... + +global___ListResourceAttributeKeysRequest = ListResourceAttributeKeysRequest + +@typing.final +class ListResourceAttributeKeysResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEYS_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + @property + def resource_attribute_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResourceAttributeKey]: ... + def __init__( + self, + *, + resource_attribute_keys: collections.abc.Iterable[global___ResourceAttributeKey] | None = ..., + next_page_token: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "resource_attribute_keys", b"resource_attribute_keys"]) -> None: ... + +global___ListResourceAttributeKeysResponse = ListResourceAttributeKeysResponse + +@typing.final +class UpdateResourceAttributeKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + DISPLAY_NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + UPDATE_MASK_FIELD_NUMBER: builtins.int + resource_attribute_key_id: builtins.str + display_name: builtins.str + description: builtins.str + @property + def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: + """The list of fields to be updated. The fields available to be updated are `display_name`, `description`, and `archived_date`.""" + + def __init__( + self, + *, + resource_attribute_key_id: builtins.str = ..., + display_name: builtins.str = ..., + description: builtins.str = ..., + update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["update_mask", b"update_mask"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "resource_attribute_key_id", b"resource_attribute_key_id", "update_mask", b"update_mask"]) -> None: ... + +global___UpdateResourceAttributeKeyRequest = UpdateResourceAttributeKeyRequest + +@typing.final +class UpdateResourceAttributeKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_FIELD_NUMBER: builtins.int + @property + def resource_attribute_key(self) -> global___ResourceAttributeKey: ... + def __init__( + self, + *, + resource_attribute_key: global___ResourceAttributeKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resource_attribute_key", b"resource_attribute_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_key", b"resource_attribute_key"]) -> None: ... + +global___UpdateResourceAttributeKeyResponse = UpdateResourceAttributeKeyResponse + +@typing.final +class ArchiveResourceAttributeKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + resource_attribute_key_id: builtins.str + def __init__( + self, + *, + resource_attribute_key_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_key_id", b"resource_attribute_key_id"]) -> None: ... + +global___ArchiveResourceAttributeKeyRequest = ArchiveResourceAttributeKeyRequest + +@typing.final +class ArchiveResourceAttributeKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___ArchiveResourceAttributeKeyResponse = ArchiveResourceAttributeKeyResponse + +@typing.final +class UnarchiveResourceAttributeKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + resource_attribute_key_id: builtins.str + def __init__( + self, + *, + resource_attribute_key_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_key_id", b"resource_attribute_key_id"]) -> None: ... + +global___UnarchiveResourceAttributeKeyRequest = UnarchiveResourceAttributeKeyRequest + +@typing.final +class UnarchiveResourceAttributeKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___UnarchiveResourceAttributeKeyResponse = UnarchiveResourceAttributeKeyResponse + +@typing.final +class BatchArchiveResourceAttributeKeysRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_IDS_FIELD_NUMBER: builtins.int + @property + def resource_attribute_key_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + resource_attribute_key_ids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_key_ids", b"resource_attribute_key_ids"]) -> None: ... + +global___BatchArchiveResourceAttributeKeysRequest = BatchArchiveResourceAttributeKeysRequest + +@typing.final +class BatchArchiveResourceAttributeKeysResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___BatchArchiveResourceAttributeKeysResponse = BatchArchiveResourceAttributeKeysResponse + +@typing.final +class BatchUnarchiveResourceAttributeKeysRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_IDS_FIELD_NUMBER: builtins.int + @property + def resource_attribute_key_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + resource_attribute_key_ids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_key_ids", b"resource_attribute_key_ids"]) -> None: ... + +global___BatchUnarchiveResourceAttributeKeysRequest = BatchUnarchiveResourceAttributeKeysRequest + +@typing.final +class BatchUnarchiveResourceAttributeKeysResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___BatchUnarchiveResourceAttributeKeysResponse = BatchUnarchiveResourceAttributeKeysResponse + +@typing.final +class CreateResourceAttributeEnumValueRequest(google.protobuf.message.Message): + """ResourceAttribute Enum Value RPC messages""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + DISPLAY_NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + resource_attribute_key_id: builtins.str + display_name: builtins.str + description: builtins.str + def __init__( + self, + *, + resource_attribute_key_id: builtins.str = ..., + display_name: builtins.str = ..., + description: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "resource_attribute_key_id", b"resource_attribute_key_id"]) -> None: ... + +global___CreateResourceAttributeEnumValueRequest = CreateResourceAttributeEnumValueRequest + +@typing.final +class CreateResourceAttributeEnumValueResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ENUM_VALUE_FIELD_NUMBER: builtins.int + @property + def resource_attribute_enum_value(self) -> global___ResourceAttributeEnumValue: ... + def __init__( + self, + *, + resource_attribute_enum_value: global___ResourceAttributeEnumValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resource_attribute_enum_value", b"resource_attribute_enum_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_enum_value", b"resource_attribute_enum_value"]) -> None: ... + +global___CreateResourceAttributeEnumValueResponse = CreateResourceAttributeEnumValueResponse + +@typing.final +class GetResourceAttributeEnumValueRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ENUM_VALUE_ID_FIELD_NUMBER: builtins.int + resource_attribute_enum_value_id: builtins.str + def __init__( + self, + *, + resource_attribute_enum_value_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_enum_value_id", b"resource_attribute_enum_value_id"]) -> None: ... + +global___GetResourceAttributeEnumValueRequest = GetResourceAttributeEnumValueRequest + +@typing.final +class GetResourceAttributeEnumValueResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ENUM_VALUE_FIELD_NUMBER: builtins.int + @property + def resource_attribute_enum_value(self) -> global___ResourceAttributeEnumValue: ... + def __init__( + self, + *, + resource_attribute_enum_value: global___ResourceAttributeEnumValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resource_attribute_enum_value", b"resource_attribute_enum_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_enum_value", b"resource_attribute_enum_value"]) -> None: ... + +global___GetResourceAttributeEnumValueResponse = GetResourceAttributeEnumValueResponse + +@typing.final +class ListResourceAttributeEnumValuesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + PAGE_SIZE_FIELD_NUMBER: builtins.int + PAGE_TOKEN_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + INCLUDE_ARCHIVED_FIELD_NUMBER: builtins.int + resource_attribute_key_id: builtins.str + page_size: builtins.int + """The maximum number of enum values to return. The service may return fewer than this value. + If unspecified, at most 50 enum values will be returned. The maximum value is 100; values above + 100 will be coerced to 100. + """ + page_token: builtins.str + """A page token, received from a previous `ListResourceAttributeEnumValues` call. + Provide this to retrieve the subsequent page. + When paginating, all other parameters provided to `ListResourceAttributeEnumValues` must match + the call that provided the page token. + """ + filter: builtins.str + """A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + Available fields to filter by are `resource_attribute_enum_value_id`, `name`, `description`, + `created_by_user_id`, `modified_by_user_id`, `created_date`, `modified_date`, and `archived_date`. + For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + """ + order_by: builtins.str + """How to order the retrieved enum values. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + Available fields to order_by are `created_date`, `modified_date`, and `name`. + If left empty, items are ordered by `created_date` in descending order (newest-first). + For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + Example: "name,created_date desc" + """ + include_archived: builtins.bool + """Whether to include archived enum values. Defaults to false.""" + def __init__( + self, + *, + resource_attribute_key_id: builtins.str = ..., + page_size: builtins.int = ..., + page_token: builtins.str = ..., + filter: builtins.str = ..., + order_by: builtins.str = ..., + include_archived: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "include_archived", b"include_archived", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token", "resource_attribute_key_id", b"resource_attribute_key_id"]) -> None: ... + +global___ListResourceAttributeEnumValuesRequest = ListResourceAttributeEnumValuesRequest + +@typing.final +class ListResourceAttributeEnumValuesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ENUM_VALUES_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + @property + def resource_attribute_enum_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResourceAttributeEnumValue]: ... + def __init__( + self, + *, + resource_attribute_enum_values: collections.abc.Iterable[global___ResourceAttributeEnumValue] | None = ..., + next_page_token: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "resource_attribute_enum_values", b"resource_attribute_enum_values"]) -> None: ... + +global___ListResourceAttributeEnumValuesResponse = ListResourceAttributeEnumValuesResponse + +@typing.final +class UpdateResourceAttributeEnumValueRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ENUM_VALUE_ID_FIELD_NUMBER: builtins.int + DISPLAY_NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + UPDATE_MASK_FIELD_NUMBER: builtins.int + resource_attribute_enum_value_id: builtins.str + display_name: builtins.str + description: builtins.str + @property + def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: + """The list of fields to be updated. The fields available to be updated are `display_name`, `description`, and `archived_date`.""" + + def __init__( + self, + *, + resource_attribute_enum_value_id: builtins.str = ..., + display_name: builtins.str = ..., + description: builtins.str = ..., + update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["update_mask", b"update_mask"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "resource_attribute_enum_value_id", b"resource_attribute_enum_value_id", "update_mask", b"update_mask"]) -> None: ... + +global___UpdateResourceAttributeEnumValueRequest = UpdateResourceAttributeEnumValueRequest + +@typing.final +class UpdateResourceAttributeEnumValueResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ENUM_VALUE_FIELD_NUMBER: builtins.int + @property + def resource_attribute_enum_value(self) -> global___ResourceAttributeEnumValue: ... + def __init__( + self, + *, + resource_attribute_enum_value: global___ResourceAttributeEnumValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resource_attribute_enum_value", b"resource_attribute_enum_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_enum_value", b"resource_attribute_enum_value"]) -> None: ... + +global___UpdateResourceAttributeEnumValueResponse = UpdateResourceAttributeEnumValueResponse + +@typing.final +class ArchiveResourceAttributeEnumValueRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ARCHIVED_ENUM_VALUE_ID_FIELD_NUMBER: builtins.int + REPLACEMENT_ENUM_VALUE_ID_FIELD_NUMBER: builtins.int + archived_enum_value_id: builtins.str + replacement_enum_value_id: builtins.str + """When the archived_enum_value_id is archived all resource-attributes that reference it will be migrated to the replacement_enum_value_id.""" + def __init__( + self, + *, + archived_enum_value_id: builtins.str = ..., + replacement_enum_value_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["archived_enum_value_id", b"archived_enum_value_id", "replacement_enum_value_id", b"replacement_enum_value_id"]) -> None: ... + +global___ArchiveResourceAttributeEnumValueRequest = ArchiveResourceAttributeEnumValueRequest + +@typing.final +class ArchiveResourceAttributeEnumValueResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTES_MIGRATED_FIELD_NUMBER: builtins.int + resource_attributes_migrated: builtins.int + """Total number of resource-attributes migrated to the replacement enum value.""" + def __init__( + self, + *, + resource_attributes_migrated: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attributes_migrated", b"resource_attributes_migrated"]) -> None: ... + +global___ArchiveResourceAttributeEnumValueResponse = ArchiveResourceAttributeEnumValueResponse + +@typing.final +class UnarchiveResourceAttributeEnumValueRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ENUM_VALUE_ID_FIELD_NUMBER: builtins.int + resource_attribute_enum_value_id: builtins.str + def __init__( + self, + *, + resource_attribute_enum_value_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_enum_value_id", b"resource_attribute_enum_value_id"]) -> None: ... + +global___UnarchiveResourceAttributeEnumValueRequest = UnarchiveResourceAttributeEnumValueRequest + +@typing.final +class UnarchiveResourceAttributeEnumValueResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___UnarchiveResourceAttributeEnumValueResponse = UnarchiveResourceAttributeEnumValueResponse + +@typing.final +class BatchArchiveResourceAttributeEnumValuesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class EnumValueArchival(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ARCHIVED_ENUM_VALUE_ID_FIELD_NUMBER: builtins.int + REPLACEMENT_ENUM_VALUE_ID_FIELD_NUMBER: builtins.int + archived_enum_value_id: builtins.str + """The enum value ID to archive.""" + replacement_enum_value_id: builtins.str + """The enum value ID to migrate resource-attributes to.""" + def __init__( + self, + *, + archived_enum_value_id: builtins.str = ..., + replacement_enum_value_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["archived_enum_value_id", b"archived_enum_value_id", "replacement_enum_value_id", b"replacement_enum_value_id"]) -> None: ... + + ARCHIVAL_REQUESTS_FIELD_NUMBER: builtins.int + @property + def archival_requests(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchArchiveResourceAttributeEnumValuesRequest.EnumValueArchival]: ... + def __init__( + self, + *, + archival_requests: collections.abc.Iterable[global___BatchArchiveResourceAttributeEnumValuesRequest.EnumValueArchival] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["archival_requests", b"archival_requests"]) -> None: ... + +global___BatchArchiveResourceAttributeEnumValuesRequest = BatchArchiveResourceAttributeEnumValuesRequest + +@typing.final +class BatchArchiveResourceAttributeEnumValuesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOTAL_RESOURCE_ATTRIBUTES_MIGRATED_FIELD_NUMBER: builtins.int + total_resource_attributes_migrated: builtins.int + """Total number of resource-attributes migrated across all archived enum values.""" + def __init__( + self, + *, + total_resource_attributes_migrated: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["total_resource_attributes_migrated", b"total_resource_attributes_migrated"]) -> None: ... + +global___BatchArchiveResourceAttributeEnumValuesResponse = BatchArchiveResourceAttributeEnumValuesResponse + +@typing.final +class BatchUnarchiveResourceAttributeEnumValuesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ENUM_VALUE_IDS_FIELD_NUMBER: builtins.int + @property + def resource_attribute_enum_value_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + resource_attribute_enum_value_ids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_enum_value_ids", b"resource_attribute_enum_value_ids"]) -> None: ... + +global___BatchUnarchiveResourceAttributeEnumValuesRequest = BatchUnarchiveResourceAttributeEnumValuesRequest + +@typing.final +class BatchUnarchiveResourceAttributeEnumValuesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___BatchUnarchiveResourceAttributeEnumValuesResponse = BatchUnarchiveResourceAttributeEnumValuesResponse + +@typing.final +class CreateResourceAttributeRequest(google.protobuf.message.Message): + """ResourceAttribute RPC messages""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENTITY_FIELD_NUMBER: builtins.int + RESOURCE_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + RESOURCE_ATTRIBUTE_ENUM_VALUE_ID_FIELD_NUMBER: builtins.int + BOOLEAN_VALUE_FIELD_NUMBER: builtins.int + NUMBER_VALUE_FIELD_NUMBER: builtins.int + resource_attribute_key_id: builtins.str + resource_attribute_enum_value_id: builtins.str + boolean_value: builtins.bool + number_value: builtins.float + @property + def entity(self) -> global___ResourceAttributeEntityIdentifier: ... + def __init__( + self, + *, + entity: global___ResourceAttributeEntityIdentifier | None = ..., + resource_attribute_key_id: builtins.str = ..., + resource_attribute_enum_value_id: builtins.str = ..., + boolean_value: builtins.bool = ..., + number_value: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["boolean_value", b"boolean_value", "entity", b"entity", "number_value", b"number_value", "resource_attribute_enum_value_id", b"resource_attribute_enum_value_id", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["boolean_value", b"boolean_value", "entity", b"entity", "number_value", b"number_value", "resource_attribute_enum_value_id", b"resource_attribute_enum_value_id", "resource_attribute_key_id", b"resource_attribute_key_id", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["resource_attribute_enum_value_id", "boolean_value", "number_value"] | None: ... + +global___CreateResourceAttributeRequest = CreateResourceAttributeRequest + +@typing.final +class CreateResourceAttributeResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_FIELD_NUMBER: builtins.int + @property + def resource_attribute(self) -> global___ResourceAttribute: ... + def __init__( + self, + *, + resource_attribute: global___ResourceAttribute | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resource_attribute", b"resource_attribute"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resource_attribute", b"resource_attribute"]) -> None: ... + +global___CreateResourceAttributeResponse = CreateResourceAttributeResponse + +@typing.final +class BatchCreateResourceAttributesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + RESOURCE_ATTRIBUTE_ENUM_VALUE_ID_FIELD_NUMBER: builtins.int + BOOLEAN_VALUE_FIELD_NUMBER: builtins.int + NUMBER_VALUE_FIELD_NUMBER: builtins.int + ENTITIES_FIELD_NUMBER: builtins.int + resource_attribute_key_id: builtins.str + resource_attribute_enum_value_id: builtins.str + boolean_value: builtins.bool + number_value: builtins.float + @property + def entities(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResourceAttributeEntityIdentifier]: ... + def __init__( + self, + *, + resource_attribute_key_id: builtins.str = ..., + resource_attribute_enum_value_id: builtins.str = ..., + boolean_value: builtins.bool = ..., + number_value: builtins.float = ..., + entities: collections.abc.Iterable[global___ResourceAttributeEntityIdentifier] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["boolean_value", b"boolean_value", "number_value", b"number_value", "resource_attribute_enum_value_id", b"resource_attribute_enum_value_id", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["boolean_value", b"boolean_value", "entities", b"entities", "number_value", b"number_value", "resource_attribute_enum_value_id", b"resource_attribute_enum_value_id", "resource_attribute_key_id", b"resource_attribute_key_id", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["resource_attribute_enum_value_id", "boolean_value", "number_value"] | None: ... + +global___BatchCreateResourceAttributesRequest = BatchCreateResourceAttributesRequest + +@typing.final +class BatchCreateResourceAttributesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTES_FIELD_NUMBER: builtins.int + @property + def resource_attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResourceAttribute]: ... + def __init__( + self, + *, + resource_attributes: collections.abc.Iterable[global___ResourceAttribute] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attributes", b"resource_attributes"]) -> None: ... + +global___BatchCreateResourceAttributesResponse = BatchCreateResourceAttributesResponse + +@typing.final +class GetResourceAttributeRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ID_FIELD_NUMBER: builtins.int + resource_attribute_id: builtins.str + def __init__( + self, + *, + resource_attribute_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_id", b"resource_attribute_id"]) -> None: ... + +global___GetResourceAttributeRequest = GetResourceAttributeRequest + +@typing.final +class GetResourceAttributeResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_FIELD_NUMBER: builtins.int + @property + def resource_attribute(self) -> global___ResourceAttribute: ... + def __init__( + self, + *, + resource_attribute: global___ResourceAttribute | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resource_attribute", b"resource_attribute"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resource_attribute", b"resource_attribute"]) -> None: ... + +global___GetResourceAttributeResponse = GetResourceAttributeResponse + +@typing.final +class ListResourceAttributesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGE_SIZE_FIELD_NUMBER: builtins.int + PAGE_TOKEN_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + INCLUDE_ARCHIVED_FIELD_NUMBER: builtins.int + page_size: builtins.int + """The maximum number of resource-attributes to return. The service may return fewer than this value. + If unspecified, at most 50 resource-attributes will be returned. The maximum value is 100; values above + 100 will be coerced to 100. + """ + page_token: builtins.str + """A page token, received from a previous `ListResourceAttributes` call. + Provide this to retrieve the subsequent page. + When paginating, all other parameters provided to `ListResourceAttributes` must match + the call that provided the page token. + """ + filter: builtins.str + """A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + Available fields to filter by are `resource_attribute_id`, `entity_id`, `entity_type`, `resource_attribute_key_id`, `created_by_user_id`, + `resource_attribute_enum_value_id`, `boolean_value`, `number_value`, `created_by_user_id`, `created_date`, and `archived_date`. + For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + """ + order_by: builtins.str + """How to order the retrieved resource-attributes. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + Available fields to order_by are `created_date` and `entity.entity_id`. + If left empty, items are ordered by `created_date` in descending order (newest-first). + For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + Example: "entity.entity_id,created_date desc" + """ + include_archived: builtins.bool + """Whether to include archived resource-attributes. Defaults to false.""" + def __init__( + self, + *, + page_size: builtins.int = ..., + page_token: builtins.str = ..., + filter: builtins.str = ..., + order_by: builtins.str = ..., + include_archived: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "include_archived", b"include_archived", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ... + +global___ListResourceAttributesRequest = ListResourceAttributesRequest + +@typing.final +class ListResourceAttributesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTES_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + @property + def resource_attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResourceAttribute]: ... + def __init__( + self, + *, + resource_attributes: collections.abc.Iterable[global___ResourceAttribute] | None = ..., + next_page_token: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "resource_attributes", b"resource_attributes"]) -> None: ... + +global___ListResourceAttributesResponse = ListResourceAttributesResponse + +@typing.final +class ListResourceAttributesByEntityRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENTITY_FIELD_NUMBER: builtins.int + INCLUDE_ARCHIVED_FIELD_NUMBER: builtins.int + PAGE_SIZE_FIELD_NUMBER: builtins.int + PAGE_TOKEN_FIELD_NUMBER: builtins.int + include_archived: builtins.bool + """Whether to include archived resource-attributes. Defaults to false.""" + page_size: builtins.int + """The maximum number of resource-attributes to return. The service may return fewer than this value. + If unspecified, at most 50 resource-attributes will be returned. The maximum value is 100; values above + 100 will be coerced to 100. + """ + page_token: builtins.str + """A page token, received from a previous `ListResourceAttributesByEntity` call. + Provide this to retrieve the subsequent page. + When paginating, all other parameters provided to `ListResourceAttributesByEntity` must match + the call that provided the page token. + """ + @property + def entity(self) -> global___ResourceAttributeEntityIdentifier: ... + def __init__( + self, + *, + entity: global___ResourceAttributeEntityIdentifier | None = ..., + include_archived: builtins.bool = ..., + page_size: builtins.int = ..., + page_token: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["entity", b"entity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["entity", b"entity", "include_archived", b"include_archived", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ... + +global___ListResourceAttributesByEntityRequest = ListResourceAttributesByEntityRequest + +@typing.final +class ListResourceAttributesByEntityResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTES_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + @property + def resource_attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResourceAttribute]: ... + def __init__( + self, + *, + resource_attributes: collections.abc.Iterable[global___ResourceAttribute] | None = ..., + next_page_token: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "resource_attributes", b"resource_attributes"]) -> None: ... + +global___ListResourceAttributesByEntityResponse = ListResourceAttributesByEntityResponse + +@typing.final +class ArchiveResourceAttributeRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ID_FIELD_NUMBER: builtins.int + resource_attribute_id: builtins.str + def __init__( + self, + *, + resource_attribute_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_id", b"resource_attribute_id"]) -> None: ... + +global___ArchiveResourceAttributeRequest = ArchiveResourceAttributeRequest + +@typing.final +class ArchiveResourceAttributeResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___ArchiveResourceAttributeResponse = ArchiveResourceAttributeResponse + +@typing.final +class UnarchiveResourceAttributeRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_ID_FIELD_NUMBER: builtins.int + resource_attribute_id: builtins.str + def __init__( + self, + *, + resource_attribute_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_id", b"resource_attribute_id"]) -> None: ... + +global___UnarchiveResourceAttributeRequest = UnarchiveResourceAttributeRequest + +@typing.final +class UnarchiveResourceAttributeResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___UnarchiveResourceAttributeResponse = UnarchiveResourceAttributeResponse + +@typing.final +class BatchArchiveResourceAttributesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_IDS_FIELD_NUMBER: builtins.int + @property + def resource_attribute_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + resource_attribute_ids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_ids", b"resource_attribute_ids"]) -> None: ... + +global___BatchArchiveResourceAttributesRequest = BatchArchiveResourceAttributesRequest + +@typing.final +class BatchArchiveResourceAttributesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___BatchArchiveResourceAttributesResponse = BatchArchiveResourceAttributesResponse + +@typing.final +class BatchUnarchiveResourceAttributesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESOURCE_ATTRIBUTE_IDS_FIELD_NUMBER: builtins.int + @property + def resource_attribute_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + resource_attribute_ids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["resource_attribute_ids", b"resource_attribute_ids"]) -> None: ... + +global___BatchUnarchiveResourceAttributesRequest = BatchUnarchiveResourceAttributesRequest + +@typing.final +class BatchUnarchiveResourceAttributesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___BatchUnarchiveResourceAttributesResponse = BatchUnarchiveResourceAttributesResponse diff --git a/python/lib/sift/resource_attribute/v1/resource_attribute_pb2_grpc.py b/python/lib/sift/resource_attribute/v1/resource_attribute_pb2_grpc.py new file mode 100644 index 000000000..f80dd65ba --- /dev/null +++ b/python/lib/sift/resource_attribute/v1/resource_attribute_pb2_grpc.py @@ -0,0 +1,871 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from sift.resource_attribute.v1 import resource_attribute_pb2 as sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2 + + +class ResourceAttributeServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateResourceAttributeKey = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeKey', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeKeyRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeKeyResponse.FromString, + ) + self.GetResourceAttributeKey = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeKey', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeKeyRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeKeyResponse.FromString, + ) + self.ListResourceAttributeKeys = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeKeys', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeKeysRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeKeysResponse.FromString, + ) + self.UpdateResourceAttributeKey = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeKey', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeKeyRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeKeyResponse.FromString, + ) + self.ArchiveResourceAttributeKey = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeKey', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeKeyRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeKeyResponse.FromString, + ) + self.UnarchiveResourceAttributeKey = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeKey', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeKeyRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeKeyResponse.FromString, + ) + self.BatchArchiveResourceAttributeKeys = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeKeys', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeKeysRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeKeysResponse.FromString, + ) + self.BatchUnarchiveResourceAttributeKeys = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeKeys', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeKeysRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeKeysResponse.FromString, + ) + self.CreateResourceAttributeEnumValue = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeEnumValue', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeEnumValueRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeEnumValueResponse.FromString, + ) + self.GetResourceAttributeEnumValue = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeEnumValue', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeEnumValueRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeEnumValueResponse.FromString, + ) + self.ListResourceAttributeEnumValues = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeEnumValues', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeEnumValuesRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeEnumValuesResponse.FromString, + ) + self.UpdateResourceAttributeEnumValue = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeEnumValue', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeEnumValueRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeEnumValueResponse.FromString, + ) + self.ArchiveResourceAttributeEnumValue = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeEnumValue', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeEnumValueRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeEnumValueResponse.FromString, + ) + self.UnarchiveResourceAttributeEnumValue = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeEnumValue', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeEnumValueRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeEnumValueResponse.FromString, + ) + self.BatchArchiveResourceAttributeEnumValues = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeEnumValues', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeEnumValuesRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeEnumValuesResponse.FromString, + ) + self.BatchUnarchiveResourceAttributeEnumValues = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeEnumValues', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeEnumValuesRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeEnumValuesResponse.FromString, + ) + self.CreateResourceAttribute = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttribute', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeResponse.FromString, + ) + self.BatchCreateResourceAttributes = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/BatchCreateResourceAttributes', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchCreateResourceAttributesRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchCreateResourceAttributesResponse.FromString, + ) + self.GetResourceAttribute = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttribute', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeResponse.FromString, + ) + self.ListResourceAttributes = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributes', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesResponse.FromString, + ) + self.ListResourceAttributesByEntity = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributesByEntity', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesByEntityRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesByEntityResponse.FromString, + ) + self.ArchiveResourceAttribute = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttribute', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeResponse.FromString, + ) + self.UnarchiveResourceAttribute = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttribute', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeResponse.FromString, + ) + self.BatchArchiveResourceAttributes = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributes', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributesRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributesResponse.FromString, + ) + self.BatchUnarchiveResourceAttributes = channel.unary_unary( + '/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributes', + request_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributesRequest.SerializeToString, + response_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributesResponse.FromString, + ) + + +class ResourceAttributeServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def CreateResourceAttributeKey(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetResourceAttributeKey(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListResourceAttributeKeys(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateResourceAttributeKey(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ArchiveResourceAttributeKey(self, request, context): + """Archives a resource_attribute key AND all its associated enum values AND all its associated resource-attributes. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UnarchiveResourceAttributeKey(self, request, context): + """Unarchives a resource_attribute key BUT NOT its associated enum values OR resource-attributes. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BatchArchiveResourceAttributeKeys(self, request, context): + """Archives multiple resource_attribute keys AND all their associated enum values AND all their associated resource-attributes. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BatchUnarchiveResourceAttributeKeys(self, request, context): + """Unarchives multiple resource_attribute keys BUT NOT their associated enum values OR resource-attributes. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateResourceAttributeEnumValue(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetResourceAttributeEnumValue(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListResourceAttributeEnumValues(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateResourceAttributeEnumValue(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ArchiveResourceAttributeEnumValue(self, request, context): + """Archives an enum value and migrates all resource-attributes with that value to a replacement value. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UnarchiveResourceAttributeEnumValue(self, request, context): + """Unarchives an enum value BUT DOES NOT migrate resource-attributes with a replacement value back to the original value. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BatchArchiveResourceAttributeEnumValues(self, request, context): + """Archives multiple enum values and migrates all resource-attributes with those values to their respective replacement values. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BatchUnarchiveResourceAttributeEnumValues(self, request, context): + """Unarchives multiple enum values BUT DOES NOT migrate resource-attributes with a replacement value back to the original value. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateResourceAttribute(self, request, context): + """Creates relation between an Entity and a ResourceAttribute Key and Value. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BatchCreateResourceAttributes(self, request, context): + """Creates resource-attributes for multiple entities with the same key-value pair. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetResourceAttribute(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListResourceAttributes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListResourceAttributesByEntity(self, request, context): + """Lists all resource-attributes for a specific entity. Excludes archived by default. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ArchiveResourceAttribute(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UnarchiveResourceAttribute(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BatchArchiveResourceAttributes(self, request, context): + """Archives multiple resource-attributes. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BatchUnarchiveResourceAttributes(self, request, context): + """Unarchives multiple resource-attributes. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ResourceAttributeServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateResourceAttributeKey': grpc.unary_unary_rpc_method_handler( + servicer.CreateResourceAttributeKey, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeKeyRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeKeyResponse.SerializeToString, + ), + 'GetResourceAttributeKey': grpc.unary_unary_rpc_method_handler( + servicer.GetResourceAttributeKey, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeKeyRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeKeyResponse.SerializeToString, + ), + 'ListResourceAttributeKeys': grpc.unary_unary_rpc_method_handler( + servicer.ListResourceAttributeKeys, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeKeysRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeKeysResponse.SerializeToString, + ), + 'UpdateResourceAttributeKey': grpc.unary_unary_rpc_method_handler( + servicer.UpdateResourceAttributeKey, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeKeyRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeKeyResponse.SerializeToString, + ), + 'ArchiveResourceAttributeKey': grpc.unary_unary_rpc_method_handler( + servicer.ArchiveResourceAttributeKey, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeKeyRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeKeyResponse.SerializeToString, + ), + 'UnarchiveResourceAttributeKey': grpc.unary_unary_rpc_method_handler( + servicer.UnarchiveResourceAttributeKey, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeKeyRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeKeyResponse.SerializeToString, + ), + 'BatchArchiveResourceAttributeKeys': grpc.unary_unary_rpc_method_handler( + servicer.BatchArchiveResourceAttributeKeys, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeKeysRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeKeysResponse.SerializeToString, + ), + 'BatchUnarchiveResourceAttributeKeys': grpc.unary_unary_rpc_method_handler( + servicer.BatchUnarchiveResourceAttributeKeys, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeKeysRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeKeysResponse.SerializeToString, + ), + 'CreateResourceAttributeEnumValue': grpc.unary_unary_rpc_method_handler( + servicer.CreateResourceAttributeEnumValue, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeEnumValueRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeEnumValueResponse.SerializeToString, + ), + 'GetResourceAttributeEnumValue': grpc.unary_unary_rpc_method_handler( + servicer.GetResourceAttributeEnumValue, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeEnumValueRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeEnumValueResponse.SerializeToString, + ), + 'ListResourceAttributeEnumValues': grpc.unary_unary_rpc_method_handler( + servicer.ListResourceAttributeEnumValues, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeEnumValuesRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeEnumValuesResponse.SerializeToString, + ), + 'UpdateResourceAttributeEnumValue': grpc.unary_unary_rpc_method_handler( + servicer.UpdateResourceAttributeEnumValue, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeEnumValueRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeEnumValueResponse.SerializeToString, + ), + 'ArchiveResourceAttributeEnumValue': grpc.unary_unary_rpc_method_handler( + servicer.ArchiveResourceAttributeEnumValue, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeEnumValueRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeEnumValueResponse.SerializeToString, + ), + 'UnarchiveResourceAttributeEnumValue': grpc.unary_unary_rpc_method_handler( + servicer.UnarchiveResourceAttributeEnumValue, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeEnumValueRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeEnumValueResponse.SerializeToString, + ), + 'BatchArchiveResourceAttributeEnumValues': grpc.unary_unary_rpc_method_handler( + servicer.BatchArchiveResourceAttributeEnumValues, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeEnumValuesRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeEnumValuesResponse.SerializeToString, + ), + 'BatchUnarchiveResourceAttributeEnumValues': grpc.unary_unary_rpc_method_handler( + servicer.BatchUnarchiveResourceAttributeEnumValues, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeEnumValuesRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeEnumValuesResponse.SerializeToString, + ), + 'CreateResourceAttribute': grpc.unary_unary_rpc_method_handler( + servicer.CreateResourceAttribute, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeResponse.SerializeToString, + ), + 'BatchCreateResourceAttributes': grpc.unary_unary_rpc_method_handler( + servicer.BatchCreateResourceAttributes, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchCreateResourceAttributesRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchCreateResourceAttributesResponse.SerializeToString, + ), + 'GetResourceAttribute': grpc.unary_unary_rpc_method_handler( + servicer.GetResourceAttribute, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeResponse.SerializeToString, + ), + 'ListResourceAttributes': grpc.unary_unary_rpc_method_handler( + servicer.ListResourceAttributes, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesResponse.SerializeToString, + ), + 'ListResourceAttributesByEntity': grpc.unary_unary_rpc_method_handler( + servicer.ListResourceAttributesByEntity, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesByEntityRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesByEntityResponse.SerializeToString, + ), + 'ArchiveResourceAttribute': grpc.unary_unary_rpc_method_handler( + servicer.ArchiveResourceAttribute, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeResponse.SerializeToString, + ), + 'UnarchiveResourceAttribute': grpc.unary_unary_rpc_method_handler( + servicer.UnarchiveResourceAttribute, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeResponse.SerializeToString, + ), + 'BatchArchiveResourceAttributes': grpc.unary_unary_rpc_method_handler( + servicer.BatchArchiveResourceAttributes, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributesRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributesResponse.SerializeToString, + ), + 'BatchUnarchiveResourceAttributes': grpc.unary_unary_rpc_method_handler( + servicer.BatchUnarchiveResourceAttributes, + request_deserializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributesRequest.FromString, + response_serializer=sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'sift.resource_attribute.v1.ResourceAttributeService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ResourceAttributeService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def CreateResourceAttributeKey(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeKey', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeKeyRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeKeyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetResourceAttributeKey(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeKey', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeKeyRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeKeyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListResourceAttributeKeys(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeKeys', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeKeysRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeKeysResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateResourceAttributeKey(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeKey', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeKeyRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeKeyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ArchiveResourceAttributeKey(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeKey', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeKeyRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeKeyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UnarchiveResourceAttributeKey(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeKey', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeKeyRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeKeyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BatchArchiveResourceAttributeKeys(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeKeys', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeKeysRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeKeysResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BatchUnarchiveResourceAttributeKeys(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeKeys', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeKeysRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeKeysResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateResourceAttributeEnumValue(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeEnumValue', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeEnumValueRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeEnumValueResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetResourceAttributeEnumValue(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeEnumValue', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeEnumValueRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeEnumValueResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListResourceAttributeEnumValues(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeEnumValues', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeEnumValuesRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributeEnumValuesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateResourceAttributeEnumValue(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeEnumValue', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeEnumValueRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UpdateResourceAttributeEnumValueResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ArchiveResourceAttributeEnumValue(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeEnumValue', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeEnumValueRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeEnumValueResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UnarchiveResourceAttributeEnumValue(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeEnumValue', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeEnumValueRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeEnumValueResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BatchArchiveResourceAttributeEnumValues(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeEnumValues', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeEnumValuesRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributeEnumValuesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BatchUnarchiveResourceAttributeEnumValues(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeEnumValues', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeEnumValuesRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributeEnumValuesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateResourceAttribute(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttribute', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.CreateResourceAttributeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BatchCreateResourceAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/BatchCreateResourceAttributes', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchCreateResourceAttributesRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchCreateResourceAttributesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetResourceAttribute(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttribute', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.GetResourceAttributeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListResourceAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributes', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListResourceAttributesByEntity(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributesByEntity', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesByEntityRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ListResourceAttributesByEntityResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ArchiveResourceAttribute(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttribute', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.ArchiveResourceAttributeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UnarchiveResourceAttribute(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttribute', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.UnarchiveResourceAttributeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BatchArchiveResourceAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributes', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributesRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchArchiveResourceAttributesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BatchUnarchiveResourceAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributes', + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributesRequest.SerializeToString, + sift_dot_resource__attribute_dot_v1_dot_resource__attribute__pb2.BatchUnarchiveResourceAttributesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/python/lib/sift/resource_attribute/v1/resource_attribute_pb2_grpc.pyi b/python/lib/sift/resource_attribute/v1/resource_attribute_pb2_grpc.pyi new file mode 100644 index 000000000..7ba176d3a --- /dev/null +++ b/python/lib/sift/resource_attribute/v1/resource_attribute_pb2_grpc.pyi @@ -0,0 +1,488 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import abc +import collections.abc +import grpc +import grpc.aio +import sift.resource_attribute.v1.resource_attribute_pb2 +import typing + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ... + +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... + +class ResourceAttributeServiceStub: + def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ... + CreateResourceAttributeKey: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeKeyRequest, + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeKeyResponse, + ] + + GetResourceAttributeKey: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeKeyRequest, + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeKeyResponse, + ] + + ListResourceAttributeKeys: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeKeysRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeKeysResponse, + ] + + UpdateResourceAttributeKey: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeKeyRequest, + sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeKeyResponse, + ] + + ArchiveResourceAttributeKey: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeKeyRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeKeyResponse, + ] + """Archives a resource_attribute key AND all its associated enum values AND all its associated resource-attributes.""" + + UnarchiveResourceAttributeKey: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeKeyRequest, + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeKeyResponse, + ] + """Unarchives a resource_attribute key BUT NOT its associated enum values OR resource-attributes.""" + + BatchArchiveResourceAttributeKeys: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeKeysRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeKeysResponse, + ] + """Archives multiple resource_attribute keys AND all their associated enum values AND all their associated resource-attributes.""" + + BatchUnarchiveResourceAttributeKeys: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeKeysRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeKeysResponse, + ] + """Unarchives multiple resource_attribute keys BUT NOT their associated enum values OR resource-attributes.""" + + CreateResourceAttributeEnumValue: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeEnumValueRequest, + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeEnumValueResponse, + ] + + GetResourceAttributeEnumValue: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeEnumValueRequest, + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeEnumValueResponse, + ] + + ListResourceAttributeEnumValues: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeEnumValuesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeEnumValuesResponse, + ] + + UpdateResourceAttributeEnumValue: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeEnumValueRequest, + sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeEnumValueResponse, + ] + + ArchiveResourceAttributeEnumValue: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeEnumValueRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeEnumValueResponse, + ] + """Archives an enum value and migrates all resource-attributes with that value to a replacement value.""" + + UnarchiveResourceAttributeEnumValue: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeEnumValueRequest, + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeEnumValueResponse, + ] + """Unarchives an enum value BUT DOES NOT migrate resource-attributes with a replacement value back to the original value.""" + + BatchArchiveResourceAttributeEnumValues: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeEnumValuesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeEnumValuesResponse, + ] + """Archives multiple enum values and migrates all resource-attributes with those values to their respective replacement values.""" + + BatchUnarchiveResourceAttributeEnumValues: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeEnumValuesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeEnumValuesResponse, + ] + """Unarchives multiple enum values BUT DOES NOT migrate resource-attributes with a replacement value back to the original value.""" + + CreateResourceAttribute: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeRequest, + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeResponse, + ] + """Creates relation between an Entity and a ResourceAttribute Key and Value.""" + + BatchCreateResourceAttributes: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchCreateResourceAttributesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchCreateResourceAttributesResponse, + ] + """Creates resource-attributes for multiple entities with the same key-value pair.""" + + GetResourceAttribute: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeRequest, + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeResponse, + ] + + ListResourceAttributes: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesResponse, + ] + + ListResourceAttributesByEntity: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesByEntityRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesByEntityResponse, + ] + """Lists all resource-attributes for a specific entity. Excludes archived by default.""" + + ArchiveResourceAttribute: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeResponse, + ] + + UnarchiveResourceAttribute: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeRequest, + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeResponse, + ] + + BatchArchiveResourceAttributes: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributesResponse, + ] + """Archives multiple resource-attributes.""" + + BatchUnarchiveResourceAttributes: grpc.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributesResponse, + ] + """Unarchives multiple resource-attributes.""" + +class ResourceAttributeServiceAsyncStub: + CreateResourceAttributeKey: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeKeyRequest, + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeKeyResponse, + ] + + GetResourceAttributeKey: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeKeyRequest, + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeKeyResponse, + ] + + ListResourceAttributeKeys: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeKeysRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeKeysResponse, + ] + + UpdateResourceAttributeKey: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeKeyRequest, + sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeKeyResponse, + ] + + ArchiveResourceAttributeKey: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeKeyRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeKeyResponse, + ] + """Archives a resource_attribute key AND all its associated enum values AND all its associated resource-attributes.""" + + UnarchiveResourceAttributeKey: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeKeyRequest, + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeKeyResponse, + ] + """Unarchives a resource_attribute key BUT NOT its associated enum values OR resource-attributes.""" + + BatchArchiveResourceAttributeKeys: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeKeysRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeKeysResponse, + ] + """Archives multiple resource_attribute keys AND all their associated enum values AND all their associated resource-attributes.""" + + BatchUnarchiveResourceAttributeKeys: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeKeysRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeKeysResponse, + ] + """Unarchives multiple resource_attribute keys BUT NOT their associated enum values OR resource-attributes.""" + + CreateResourceAttributeEnumValue: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeEnumValueRequest, + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeEnumValueResponse, + ] + + GetResourceAttributeEnumValue: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeEnumValueRequest, + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeEnumValueResponse, + ] + + ListResourceAttributeEnumValues: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeEnumValuesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeEnumValuesResponse, + ] + + UpdateResourceAttributeEnumValue: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeEnumValueRequest, + sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeEnumValueResponse, + ] + + ArchiveResourceAttributeEnumValue: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeEnumValueRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeEnumValueResponse, + ] + """Archives an enum value and migrates all resource-attributes with that value to a replacement value.""" + + UnarchiveResourceAttributeEnumValue: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeEnumValueRequest, + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeEnumValueResponse, + ] + """Unarchives an enum value BUT DOES NOT migrate resource-attributes with a replacement value back to the original value.""" + + BatchArchiveResourceAttributeEnumValues: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeEnumValuesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeEnumValuesResponse, + ] + """Archives multiple enum values and migrates all resource-attributes with those values to their respective replacement values.""" + + BatchUnarchiveResourceAttributeEnumValues: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeEnumValuesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeEnumValuesResponse, + ] + """Unarchives multiple enum values BUT DOES NOT migrate resource-attributes with a replacement value back to the original value.""" + + CreateResourceAttribute: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeRequest, + sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeResponse, + ] + """Creates relation between an Entity and a ResourceAttribute Key and Value.""" + + BatchCreateResourceAttributes: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchCreateResourceAttributesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchCreateResourceAttributesResponse, + ] + """Creates resource-attributes for multiple entities with the same key-value pair.""" + + GetResourceAttribute: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeRequest, + sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeResponse, + ] + + ListResourceAttributes: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesResponse, + ] + + ListResourceAttributesByEntity: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesByEntityRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesByEntityResponse, + ] + """Lists all resource-attributes for a specific entity. Excludes archived by default.""" + + ArchiveResourceAttribute: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeRequest, + sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeResponse, + ] + + UnarchiveResourceAttribute: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeRequest, + sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeResponse, + ] + + BatchArchiveResourceAttributes: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributesResponse, + ] + """Archives multiple resource-attributes.""" + + BatchUnarchiveResourceAttributes: grpc.aio.UnaryUnaryMultiCallable[ + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributesRequest, + sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributesResponse, + ] + """Unarchives multiple resource-attributes.""" + +class ResourceAttributeServiceServicer(metaclass=abc.ABCMeta): + @abc.abstractmethod + def CreateResourceAttributeKey( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeKeyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeKeyResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeKeyResponse]]: ... + + @abc.abstractmethod + def GetResourceAttributeKey( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeKeyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeKeyResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeKeyResponse]]: ... + + @abc.abstractmethod + def ListResourceAttributeKeys( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeKeysRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeKeysResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeKeysResponse]]: ... + + @abc.abstractmethod + def UpdateResourceAttributeKey( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeKeyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeKeyResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeKeyResponse]]: ... + + @abc.abstractmethod + def ArchiveResourceAttributeKey( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeKeyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeKeyResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeKeyResponse]]: + """Archives a resource_attribute key AND all its associated enum values AND all its associated resource-attributes.""" + + @abc.abstractmethod + def UnarchiveResourceAttributeKey( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeKeyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeKeyResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeKeyResponse]]: + """Unarchives a resource_attribute key BUT NOT its associated enum values OR resource-attributes.""" + + @abc.abstractmethod + def BatchArchiveResourceAttributeKeys( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeKeysRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeKeysResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeKeysResponse]]: + """Archives multiple resource_attribute keys AND all their associated enum values AND all their associated resource-attributes.""" + + @abc.abstractmethod + def BatchUnarchiveResourceAttributeKeys( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeKeysRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeKeysResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeKeysResponse]]: + """Unarchives multiple resource_attribute keys BUT NOT their associated enum values OR resource-attributes.""" + + @abc.abstractmethod + def CreateResourceAttributeEnumValue( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeEnumValueRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeEnumValueResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeEnumValueResponse]]: ... + + @abc.abstractmethod + def GetResourceAttributeEnumValue( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeEnumValueRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeEnumValueResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeEnumValueResponse]]: ... + + @abc.abstractmethod + def ListResourceAttributeEnumValues( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeEnumValuesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeEnumValuesResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributeEnumValuesResponse]]: ... + + @abc.abstractmethod + def UpdateResourceAttributeEnumValue( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeEnumValueRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeEnumValueResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.UpdateResourceAttributeEnumValueResponse]]: ... + + @abc.abstractmethod + def ArchiveResourceAttributeEnumValue( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeEnumValueRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeEnumValueResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeEnumValueResponse]]: + """Archives an enum value and migrates all resource-attributes with that value to a replacement value.""" + + @abc.abstractmethod + def UnarchiveResourceAttributeEnumValue( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeEnumValueRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeEnumValueResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeEnumValueResponse]]: + """Unarchives an enum value BUT DOES NOT migrate resource-attributes with a replacement value back to the original value.""" + + @abc.abstractmethod + def BatchArchiveResourceAttributeEnumValues( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeEnumValuesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeEnumValuesResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributeEnumValuesResponse]]: + """Archives multiple enum values and migrates all resource-attributes with those values to their respective replacement values.""" + + @abc.abstractmethod + def BatchUnarchiveResourceAttributeEnumValues( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeEnumValuesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeEnumValuesResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributeEnumValuesResponse]]: + """Unarchives multiple enum values BUT DOES NOT migrate resource-attributes with a replacement value back to the original value.""" + + @abc.abstractmethod + def CreateResourceAttribute( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.CreateResourceAttributeResponse]]: + """Creates relation between an Entity and a ResourceAttribute Key and Value.""" + + @abc.abstractmethod + def BatchCreateResourceAttributes( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.BatchCreateResourceAttributesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.BatchCreateResourceAttributesResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.BatchCreateResourceAttributesResponse]]: + """Creates resource-attributes for multiple entities with the same key-value pair.""" + + @abc.abstractmethod + def GetResourceAttribute( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.GetResourceAttributeResponse]]: ... + + @abc.abstractmethod + def ListResourceAttributes( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesResponse]]: ... + + @abc.abstractmethod + def ListResourceAttributesByEntity( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesByEntityRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesByEntityResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.ListResourceAttributesByEntityResponse]]: + """Lists all resource-attributes for a specific entity. Excludes archived by default.""" + + @abc.abstractmethod + def ArchiveResourceAttribute( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.ArchiveResourceAttributeResponse]]: ... + + @abc.abstractmethod + def UnarchiveResourceAttribute( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.UnarchiveResourceAttributeResponse]]: ... + + @abc.abstractmethod + def BatchArchiveResourceAttributes( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributesResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.BatchArchiveResourceAttributesResponse]]: + """Archives multiple resource-attributes.""" + + @abc.abstractmethod + def BatchUnarchiveResourceAttributes( + self, + request: sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributesResponse, collections.abc.Awaitable[sift.resource_attribute.v1.resource_attribute_pb2.BatchUnarchiveResourceAttributesResponse]]: + """Unarchives multiple resource-attributes.""" + +def add_ResourceAttributeServiceServicer_to_server(servicer: ResourceAttributeServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ... diff --git a/python/lib/sift/user_attributes/__init__.py b/python/lib/sift/user_attributes/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/python/lib/sift/user_attributes/v1/__init__.py b/python/lib/sift/user_attributes/v1/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/python/lib/sift/user_attributes/v1/user_attributes_pb2.py b/python/lib/sift/user_attributes/v1/user_attributes_pb2.py new file mode 100644 index 000000000..dc245c6f6 --- /dev/null +++ b/python/lib/sift/user_attributes/v1/user_attributes_pb2.py @@ -0,0 +1,243 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: sift/user_attributes/v1/user_attributes.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-sift/user_attributes/v1/user_attributes.proto\x12\x17sift.user_attributes.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xfe\x04\n\x10UserAttributeKey\x12>\n\x15user_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x12userAttributeKeyId\x12\x34\n\x0forganization_id\x18\x02 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0eorganizationId\x12\x17\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12H\n\x04type\x18\x05 \x01(\x0e\x32/.sift.user_attributes.v1.UserAttributeValueTypeB\x03\xe0\x41\x02R\x04type\x12\x42\n\x0c\x63reated_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x38\n\x12\x63reated_by_user_id\x18\x07 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0f\x63reatedByUserId\x12\x44\n\rmodified_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12:\n\x13modified_by_user_id\x18\t \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x10modifiedByUserId\x12\x44\n\rarchived_date\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01R\x0c\x61rchivedDate\x12$\n\x0bis_archived\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01R\nisArchived\"\xa9\x01\n\x1d\x43reateUserAttributeKeyRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12H\n\x04type\x18\x03 \x01(\x0e\x32/.sift.user_attributes.v1.UserAttributeValueTypeB\x03\xe0\x41\x02R\x04type\"~\n\x1e\x43reateUserAttributeKeyResponse\x12\\\n\x12user_attribute_key\x18\x01 \x01(\x0b\x32).sift.user_attributes.v1.UserAttributeKeyB\x03\xe0\x41\x02R\x10userAttributeKey\"\xe1\x01\n\x1dUpdateUserAttributeKeyRequest\x12>\n\x15user_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x12userAttributeKeyId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x01R\x04name\x12%\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12@\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02R\nupdateMask\"~\n\x1eUpdateUserAttributeKeyResponse\x12\\\n\x12user_attribute_key\x18\x01 \x01(\x0b\x32).sift.user_attributes.v1.UserAttributeKeyB\x03\xe0\x41\x02R\x10userAttributeKey\"\\\n\x1aGetUserAttributeKeyRequest\x12>\n\x15user_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x12userAttributeKeyId\"{\n\x1bGetUserAttributeKeyResponse\x12\\\n\x12user_attribute_key\x18\x01 \x01(\x0b\x32).sift.user_attributes.v1.UserAttributeKeyB\x03\xe0\x41\x02R\x10userAttributeKey\"\xff\x01\n\x1cListUserAttributeKeysRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\x12\x1e\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x07orderBy\x12,\n\x0forganization_id\x18\x05 \x01(\tB\x03\xe0\x41\x01R\x0eorganizationId\x12.\n\x10include_archived\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01R\x0fincludeArchived\"\xa7\x01\n\x1dListUserAttributeKeysResponse\x12^\n\x13user_attribute_keys\x18\x01 \x03(\x0b\x32).sift.user_attributes.v1.UserAttributeKeyB\x03\xe0\x41\x02R\x11userAttributeKeys\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"[\n\x1f\x41rchiveUserAttributeKeysRequest\x12\x38\n\x16user_attribute_key_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x13userAttributeKeyIds\"\"\n ArchiveUserAttributeKeysResponse\"]\n!UnarchiveUserAttributeKeysRequest\x12\x38\n\x16user_attribute_key_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x13userAttributeKeyIds\"$\n\"UnarchiveUserAttributeKeysResponse\"\x9a\x05\n\x12UserAttributeValue\x12\x42\n\x17user_attribute_value_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x14userAttributeValueId\x12>\n\x15user_attribute_key_id\x18\x02 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x12userAttributeKeyId\x12$\n\x07user_id\x18\x03 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x06userId\x12\x34\n\x0forganization_id\x18\x04 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0eorganizationId\x12#\n\x0cstring_value\x18\x05 \x01(\tH\x00R\x0bstringValue\x12#\n\x0cnumber_value\x18\x06 \x01(\x01H\x00R\x0bnumberValue\x12%\n\rboolean_value\x18\x07 \x01(\x08H\x00R\x0c\x62ooleanValue\x12\x38\n\x12\x63reated_by_user_id\x18\x08 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x0f\x63reatedByUserId\x12\x42\n\x0c\x63reated_date\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rarchived_date\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01R\x0c\x61rchivedDate\x12$\n\x0bis_archived\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01R\nisArchived\x12@\n\x03key\x18\x0c \x01(\x0b\x32).sift.user_attributes.v1.UserAttributeKeyB\x03\xe0\x41\x02R\x03keyB\x07\n\x05value\"\x81\x02\n\x1f\x43reateUserAttributeValueRequest\x12>\n\x15user_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x12userAttributeKeyId\x12$\n\x07user_id\x18\x02 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x06userId\x12#\n\x0cstring_value\x18\x04 \x01(\tH\x00R\x0bstringValue\x12#\n\x0cnumber_value\x18\x05 \x01(\x01H\x00R\x0bnumberValue\x12%\n\rboolean_value\x18\x06 \x01(\x08H\x00R\x0c\x62ooleanValueB\x07\n\x05value\"\x86\x01\n CreateUserAttributeValueResponse\x12\x62\n\x14user_attribute_value\x18\x01 \x01(\x0b\x32+.sift.user_attributes.v1.UserAttributeValueB\x03\xe0\x41\x02R\x12userAttributeValue\"\x8b\x02\n$BatchCreateUserAttributeValueRequest\x12>\n\x15user_attribute_key_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x12userAttributeKeyId\x12)\n\x08user_ids\x18\x02 \x03(\tB\x0e\xe0\x41\x02\xbaH\x08\x92\x01\x05\x08\x01\x10\x88\'R\x07userIds\x12#\n\x0cstring_value\x18\x03 \x01(\tH\x00R\x0bstringValue\x12#\n\x0cnumber_value\x18\x04 \x01(\x01H\x00R\x0bnumberValue\x12%\n\rboolean_value\x18\x05 \x01(\x08H\x00R\x0c\x62ooleanValueB\x07\n\x05value\"\x8d\x01\n%BatchCreateUserAttributeValueResponse\x12\x64\n\x15user_attribute_values\x18\x01 \x03(\x0b\x32+.sift.user_attributes.v1.UserAttributeValueB\x03\xe0\x41\x02R\x13userAttributeValues\"\x8e\x02\n!ListUserAttributeKeyValuesRequest\x12\x36\n\x15user_attribute_key_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x12userAttributeKeyId\x12 \n\tpage_size\x18\x02 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\x12\x1e\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01R\x07orderBy\x12.\n\x10include_archived\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01R\x0fincludeArchived\"\xb2\x01\n\"ListUserAttributeKeyValuesResponse\x12\x64\n\x15user_attribute_values\x18\x01 \x03(\x0b\x32+.sift.user_attributes.v1.UserAttributeValueB\x03\xe0\x41\x02R\x13userAttributeValues\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xa3\x01\n\x1eListUserAttributeValuesRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\x12\x1e\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x07orderBy\"\xaf\x01\n\x1fListUserAttributeValuesResponse\x12\x64\n\x15user_attribute_values\x18\x01 \x03(\x0b\x32+.sift.user_attributes.v1.UserAttributeValueB\x03\xe0\x41\x02R\x13userAttributeValues\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"b\n\x1cGetUserAttributeValueRequest\x12\x42\n\x17user_attribute_value_id\x18\x01 \x01(\tB\x0b\xe0\x41\x02\xbaH\x05r\x03\xb0\x01\x01R\x14userAttributeValueId\"\x83\x01\n\x1dGetUserAttributeValueResponse\x12\x62\n\x14user_attribute_value\x18\x01 \x01(\x0b\x32+.sift.user_attributes.v1.UserAttributeValueB\x03\xe0\x41\x02R\x12userAttributeValue\"a\n!ArchiveUserAttributeValuesRequest\x12<\n\x18user_attribute_value_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x15userAttributeValueIds\"$\n\"ArchiveUserAttributeValuesResponse\"c\n#UnarchiveUserAttributeValuesRequest\x12<\n\x18user_attribute_value_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x15userAttributeValueIds\"&\n$UnarchiveUserAttributeValuesResponse*\xe3\x01\n\x16UserAttributeValueType\x12)\n%USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED\x10\x00\x12$\n USER_ATTRIBUTE_VALUE_TYPE_STRING\x10\x01\x12%\n!USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN\x10\x02\x12$\n USER_ATTRIBUTE_VALUE_TYPE_NUMBER\x10\x03\x12+\n\'USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING\x10\x04\x32\xd1\x1b\n\x15UserAttributesService\x12\xea\x01\n\x16\x43reateUserAttributeKey\x12\x36.sift.user_attributes.v1.CreateUserAttributeKeyRequest\x1a\x37.sift.user_attributes.v1.CreateUserAttributeKeyResponse\"_\x92\x41\x36\x12\x16\x43reateUserAttributeKey\x1a\x1c\x43reate a user attribute key.\x82\xd3\xe4\x93\x02 \"\x1b/api/v1/user-attribute-keys:\x01*\x12\xf6\x01\n\x13GetUserAttributeKey\x12\x33.sift.user_attributes.v1.GetUserAttributeKeyRequest\x1a\x34.sift.user_attributes.v1.GetUserAttributeKeyResponse\"t\x92\x41\x36\x12\x13GetUserAttributeKey\x1a\x1fRetrieves a user attribute key.\x82\xd3\xe4\x93\x02\x35\x12\x33/api/v1/user-attribute-keys/{user_attribute_key_id}\x12\xe1\x01\n\x15ListUserAttributeKeys\x12\x35.sift.user_attributes.v1.ListUserAttributeKeysRequest\x1a\x36.sift.user_attributes.v1.ListUserAttributeKeysResponse\"Y\x92\x41\x33\x12\x15ListUserAttributeKeys\x1a\x1aLists user attribute keys.\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/v1/user-attribute-keys\x12\x8e\x02\n\x16UpdateUserAttributeKey\x12\x36.sift.user_attributes.v1.UpdateUserAttributeKeyRequest\x1a\x37.sift.user_attributes.v1.UpdateUserAttributeKeyResponse\"\x82\x01\x92\x41\x41\x12\x16UpdateUserAttributeKey\x1a\'Updates an existing user attribute key.\x82\xd3\xe4\x93\x02\x38\x32\x33/api/v1/user-attribute-keys/{user_attribute_key_id}:\x01*\x12\xfa\x01\n\x18\x41rchiveUserAttributeKeys\x12\x38.sift.user_attributes.v1.ArchiveUserAttributeKeysRequest\x1a\x39.sift.user_attributes.v1.ArchiveUserAttributeKeysResponse\"i\x92\x41\x38\x12\x18\x41rchiveUserAttributeKeys\x1a\x1c\x41rchive user attribute keys.\x82\xd3\xe4\x93\x02(\"#/api/v1/user-attribute-keys/archive:\x01*\x12\x86\x02\n\x1aUnarchiveUserAttributeKeys\x12:.sift.user_attributes.v1.UnarchiveUserAttributeKeysRequest\x1a;.sift.user_attributes.v1.UnarchiveUserAttributeKeysResponse\"o\x92\x41<\x12\x1aUnarchiveUserAttributeKeys\x1a\x1eUnarchive user attribute keys.\x82\xd3\xe4\x93\x02*\"%/api/v1/user-attribute-keys/unarchive:\x01*\x12\xf6\x01\n\x18\x43reateUserAttributeValue\x12\x38.sift.user_attributes.v1.CreateUserAttributeValueRequest\x1a\x39.sift.user_attributes.v1.CreateUserAttributeValueResponse\"e\x92\x41:\x12\x18\x43reateUserAttributeValue\x1a\x1e\x43reate a user attribute value.\x82\xd3\xe4\x93\x02\"\"\x1d/api/v1/user-attribute-values:\x01*\x12\xbb\x02\n\x1d\x42\x61tchCreateUserAttributeValue\x12=.sift.user_attributes.v1.BatchCreateUserAttributeValueRequest\x1a>.sift.user_attributes.v1.BatchCreateUserAttributeValueResponse\"\x9a\x01\x92\x41i\x12\x1d\x42\x61tchCreateUserAttributeValue\x1aHCreates a user attribute value for multiple users in a single operation.\x82\xd3\xe4\x93\x02(\"#/api/v1/user-attribute-values/batch:\x01*\x12\x84\x02\n\x15GetUserAttributeValue\x12\x35.sift.user_attributes.v1.GetUserAttributeValueRequest\x1a\x36.sift.user_attributes.v1.GetUserAttributeValueResponse\"|\x92\x41:\x12\x15GetUserAttributeValue\x1a!Retrieves a user attribute value.\x82\xd3\xe4\x93\x02\x39\x12\x37/api/v1/user-attribute-values/{user_attribute_value_id}\x12\xc5\x02\n\x1aListUserAttributeKeyValues\x12:.sift.user_attributes.v1.ListUserAttributeKeyValuesRequest\x1a;.sift.user_attributes.v1.ListUserAttributeKeyValuesResponse\"\xad\x01\x92\x41Y\x12\x1aListUserAttributeKeyValues\x1a;Lists user attribute values for a given user attribute key.\x82\xd3\xe4\x93\x02K\x12I/api/v1/user-attribute-keys/{user_attribute_key_id}/user-attribute-values\x12\xed\x01\n\x17ListUserAttributeValues\x12\x37.sift.user_attributes.v1.ListUserAttributeValuesRequest\x1a\x38.sift.user_attributes.v1.ListUserAttributeValuesResponse\"_\x92\x41\x37\x12\x17ListUserAttributeValues\x1a\x1cLists user attribute values.\x82\xd3\xe4\x93\x02\x1f\x12\x1d/api/v1/user-attribute-values\x12\x86\x02\n\x1a\x41rchiveUserAttributeValues\x12:.sift.user_attributes.v1.ArchiveUserAttributeValuesRequest\x1a;.sift.user_attributes.v1.ArchiveUserAttributeValuesResponse\"o\x92\x41<\x12\x1a\x41rchiveUserAttributeValues\x1a\x1e\x41rchive user attribute values.\x82\xd3\xe4\x93\x02*\"%/api/v1/user-attribute-values/archive:\x01*\x12\x92\x02\n\x1cUnarchiveUserAttributeValues\x12<.sift.user_attributes.v1.UnarchiveUserAttributeValuesRequest\x1a=.sift.user_attributes.v1.UnarchiveUserAttributeValuesResponse\"u\x92\x41@\x12\x1cUnarchiveUserAttributeValues\x1a Unarchive user attribute values.\x82\xd3\xe4\x93\x02,\"\'/api/v1/user-attribute-values/unarchive:\x01*\x1a\x43\x92\x41@\x12>Service to manage ABAC user attributes (principal attributes).B\xca\x01\n\x1b\x63om.sift.user_attributes.v1B\x13UserAttributesProtoP\x01\xa2\x02\x03SUX\xaa\x02\x16Sift.UserAttributes.V1\xca\x02\x16Sift\\UserAttributes\\V1\xe2\x02\"Sift\\UserAttributes\\V1\\GPBMetadata\xea\x02\x18Sift::UserAttributes::V1\x92\x41\x1b\x12\x19\n\x17User attributes serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.user_attributes.v1.user_attributes_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\033com.sift.user_attributes.v1B\023UserAttributesProtoP\001\242\002\003SUX\252\002\026Sift.UserAttributes.V1\312\002\026Sift\\UserAttributes\\V1\342\002\"Sift\\UserAttributes\\V1\\GPBMetadata\352\002\030Sift::UserAttributes::V1\222A\033\022\031\n\027User attributes service' + _globals['_USERATTRIBUTEKEY'].fields_by_name['user_attribute_key_id']._loaded_options = None + _globals['_USERATTRIBUTEKEY'].fields_by_name['user_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_USERATTRIBUTEKEY'].fields_by_name['organization_id']._loaded_options = None + _globals['_USERATTRIBUTEKEY'].fields_by_name['organization_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_USERATTRIBUTEKEY'].fields_by_name['name']._loaded_options = None + _globals['_USERATTRIBUTEKEY'].fields_by_name['name']._serialized_options = b'\340A\002' + _globals['_USERATTRIBUTEKEY'].fields_by_name['description']._loaded_options = None + _globals['_USERATTRIBUTEKEY'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_USERATTRIBUTEKEY'].fields_by_name['type']._loaded_options = None + _globals['_USERATTRIBUTEKEY'].fields_by_name['type']._serialized_options = b'\340A\002' + _globals['_USERATTRIBUTEKEY'].fields_by_name['created_date']._loaded_options = None + _globals['_USERATTRIBUTEKEY'].fields_by_name['created_date']._serialized_options = b'\340A\002' + _globals['_USERATTRIBUTEKEY'].fields_by_name['created_by_user_id']._loaded_options = None + _globals['_USERATTRIBUTEKEY'].fields_by_name['created_by_user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_USERATTRIBUTEKEY'].fields_by_name['modified_date']._loaded_options = None + _globals['_USERATTRIBUTEKEY'].fields_by_name['modified_date']._serialized_options = b'\340A\002' + _globals['_USERATTRIBUTEKEY'].fields_by_name['modified_by_user_id']._loaded_options = None + _globals['_USERATTRIBUTEKEY'].fields_by_name['modified_by_user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_USERATTRIBUTEKEY'].fields_by_name['archived_date']._loaded_options = None + _globals['_USERATTRIBUTEKEY'].fields_by_name['archived_date']._serialized_options = b'\340A\001' + _globals['_USERATTRIBUTEKEY'].fields_by_name['is_archived']._loaded_options = None + _globals['_USERATTRIBUTEKEY'].fields_by_name['is_archived']._serialized_options = b'\340A\001' + _globals['_CREATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['name']._loaded_options = None + _globals['_CREATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['name']._serialized_options = b'\340A\002' + _globals['_CREATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['description']._loaded_options = None + _globals['_CREATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_CREATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['type']._loaded_options = None + _globals['_CREATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['type']._serialized_options = b'\340A\002' + _globals['_CREATEUSERATTRIBUTEKEYRESPONSE'].fields_by_name['user_attribute_key']._loaded_options = None + _globals['_CREATEUSERATTRIBUTEKEYRESPONSE'].fields_by_name['user_attribute_key']._serialized_options = b'\340A\002' + _globals['_UPDATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['user_attribute_key_id']._loaded_options = None + _globals['_UPDATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['user_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_UPDATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['name']._loaded_options = None + _globals['_UPDATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['name']._serialized_options = b'\340A\001' + _globals['_UPDATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['description']._loaded_options = None + _globals['_UPDATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['description']._serialized_options = b'\340A\001' + _globals['_UPDATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['update_mask']._loaded_options = None + _globals['_UPDATEUSERATTRIBUTEKEYREQUEST'].fields_by_name['update_mask']._serialized_options = b'\340A\002' + _globals['_UPDATEUSERATTRIBUTEKEYRESPONSE'].fields_by_name['user_attribute_key']._loaded_options = None + _globals['_UPDATEUSERATTRIBUTEKEYRESPONSE'].fields_by_name['user_attribute_key']._serialized_options = b'\340A\002' + _globals['_GETUSERATTRIBUTEKEYREQUEST'].fields_by_name['user_attribute_key_id']._loaded_options = None + _globals['_GETUSERATTRIBUTEKEYREQUEST'].fields_by_name['user_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_GETUSERATTRIBUTEKEYRESPONSE'].fields_by_name['user_attribute_key']._loaded_options = None + _globals['_GETUSERATTRIBUTEKEYRESPONSE'].fields_by_name['user_attribute_key']._serialized_options = b'\340A\002' + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['page_size']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['page_size']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['page_token']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['page_token']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['filter']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['filter']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['order_by']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['order_by']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['organization_id']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['organization_id']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['include_archived']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYSREQUEST'].fields_by_name['include_archived']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEKEYSRESPONSE'].fields_by_name['user_attribute_keys']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYSRESPONSE'].fields_by_name['user_attribute_keys']._serialized_options = b'\340A\002' + _globals['_ARCHIVEUSERATTRIBUTEKEYSREQUEST'].fields_by_name['user_attribute_key_ids']._loaded_options = None + _globals['_ARCHIVEUSERATTRIBUTEKEYSREQUEST'].fields_by_name['user_attribute_key_ids']._serialized_options = b'\340A\002' + _globals['_UNARCHIVEUSERATTRIBUTEKEYSREQUEST'].fields_by_name['user_attribute_key_ids']._loaded_options = None + _globals['_UNARCHIVEUSERATTRIBUTEKEYSREQUEST'].fields_by_name['user_attribute_key_ids']._serialized_options = b'\340A\002' + _globals['_USERATTRIBUTEVALUE'].fields_by_name['user_attribute_value_id']._loaded_options = None + _globals['_USERATTRIBUTEVALUE'].fields_by_name['user_attribute_value_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_USERATTRIBUTEVALUE'].fields_by_name['user_attribute_key_id']._loaded_options = None + _globals['_USERATTRIBUTEVALUE'].fields_by_name['user_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_USERATTRIBUTEVALUE'].fields_by_name['user_id']._loaded_options = None + _globals['_USERATTRIBUTEVALUE'].fields_by_name['user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_USERATTRIBUTEVALUE'].fields_by_name['organization_id']._loaded_options = None + _globals['_USERATTRIBUTEVALUE'].fields_by_name['organization_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_USERATTRIBUTEVALUE'].fields_by_name['created_by_user_id']._loaded_options = None + _globals['_USERATTRIBUTEVALUE'].fields_by_name['created_by_user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_USERATTRIBUTEVALUE'].fields_by_name['created_date']._loaded_options = None + _globals['_USERATTRIBUTEVALUE'].fields_by_name['created_date']._serialized_options = b'\340A\002' + _globals['_USERATTRIBUTEVALUE'].fields_by_name['archived_date']._loaded_options = None + _globals['_USERATTRIBUTEVALUE'].fields_by_name['archived_date']._serialized_options = b'\340A\001' + _globals['_USERATTRIBUTEVALUE'].fields_by_name['is_archived']._loaded_options = None + _globals['_USERATTRIBUTEVALUE'].fields_by_name['is_archived']._serialized_options = b'\340A\001' + _globals['_USERATTRIBUTEVALUE'].fields_by_name['key']._loaded_options = None + _globals['_USERATTRIBUTEVALUE'].fields_by_name['key']._serialized_options = b'\340A\002' + _globals['_CREATEUSERATTRIBUTEVALUEREQUEST'].fields_by_name['user_attribute_key_id']._loaded_options = None + _globals['_CREATEUSERATTRIBUTEVALUEREQUEST'].fields_by_name['user_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_CREATEUSERATTRIBUTEVALUEREQUEST'].fields_by_name['user_id']._loaded_options = None + _globals['_CREATEUSERATTRIBUTEVALUEREQUEST'].fields_by_name['user_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_CREATEUSERATTRIBUTEVALUERESPONSE'].fields_by_name['user_attribute_value']._loaded_options = None + _globals['_CREATEUSERATTRIBUTEVALUERESPONSE'].fields_by_name['user_attribute_value']._serialized_options = b'\340A\002' + _globals['_BATCHCREATEUSERATTRIBUTEVALUEREQUEST'].fields_by_name['user_attribute_key_id']._loaded_options = None + _globals['_BATCHCREATEUSERATTRIBUTEVALUEREQUEST'].fields_by_name['user_attribute_key_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_BATCHCREATEUSERATTRIBUTEVALUEREQUEST'].fields_by_name['user_ids']._loaded_options = None + _globals['_BATCHCREATEUSERATTRIBUTEVALUEREQUEST'].fields_by_name['user_ids']._serialized_options = b'\340A\002\272H\010\222\001\005\010\001\020\210\'' + _globals['_BATCHCREATEUSERATTRIBUTEVALUERESPONSE'].fields_by_name['user_attribute_values']._loaded_options = None + _globals['_BATCHCREATEUSERATTRIBUTEVALUERESPONSE'].fields_by_name['user_attribute_values']._serialized_options = b'\340A\002' + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['user_attribute_key_id']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['user_attribute_key_id']._serialized_options = b'\340A\002' + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['page_size']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['page_size']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['page_token']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['page_token']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['filter']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['filter']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['order_by']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['order_by']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['include_archived']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST'].fields_by_name['include_archived']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEKEYVALUESRESPONSE'].fields_by_name['user_attribute_values']._loaded_options = None + _globals['_LISTUSERATTRIBUTEKEYVALUESRESPONSE'].fields_by_name['user_attribute_values']._serialized_options = b'\340A\002' + _globals['_LISTUSERATTRIBUTEVALUESREQUEST'].fields_by_name['page_size']._loaded_options = None + _globals['_LISTUSERATTRIBUTEVALUESREQUEST'].fields_by_name['page_size']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEVALUESREQUEST'].fields_by_name['page_token']._loaded_options = None + _globals['_LISTUSERATTRIBUTEVALUESREQUEST'].fields_by_name['page_token']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEVALUESREQUEST'].fields_by_name['filter']._loaded_options = None + _globals['_LISTUSERATTRIBUTEVALUESREQUEST'].fields_by_name['filter']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEVALUESREQUEST'].fields_by_name['order_by']._loaded_options = None + _globals['_LISTUSERATTRIBUTEVALUESREQUEST'].fields_by_name['order_by']._serialized_options = b'\340A\001' + _globals['_LISTUSERATTRIBUTEVALUESRESPONSE'].fields_by_name['user_attribute_values']._loaded_options = None + _globals['_LISTUSERATTRIBUTEVALUESRESPONSE'].fields_by_name['user_attribute_values']._serialized_options = b'\340A\002' + _globals['_GETUSERATTRIBUTEVALUEREQUEST'].fields_by_name['user_attribute_value_id']._loaded_options = None + _globals['_GETUSERATTRIBUTEVALUEREQUEST'].fields_by_name['user_attribute_value_id']._serialized_options = b'\340A\002\272H\005r\003\260\001\001' + _globals['_GETUSERATTRIBUTEVALUERESPONSE'].fields_by_name['user_attribute_value']._loaded_options = None + _globals['_GETUSERATTRIBUTEVALUERESPONSE'].fields_by_name['user_attribute_value']._serialized_options = b'\340A\002' + _globals['_ARCHIVEUSERATTRIBUTEVALUESREQUEST'].fields_by_name['user_attribute_value_ids']._loaded_options = None + _globals['_ARCHIVEUSERATTRIBUTEVALUESREQUEST'].fields_by_name['user_attribute_value_ids']._serialized_options = b'\340A\002' + _globals['_UNARCHIVEUSERATTRIBUTEVALUESREQUEST'].fields_by_name['user_attribute_value_ids']._loaded_options = None + _globals['_UNARCHIVEUSERATTRIBUTEVALUESREQUEST'].fields_by_name['user_attribute_value_ids']._serialized_options = b'\340A\002' + _globals['_USERATTRIBUTESSERVICE']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE']._serialized_options = b'\222A@\022>Service to manage ABAC user attributes (principal attributes).' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['CreateUserAttributeKey']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['CreateUserAttributeKey']._serialized_options = b'\222A6\022\026CreateUserAttributeKey\032\034Create a user attribute key.\202\323\344\223\002 \"\033/api/v1/user-attribute-keys:\001*' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['GetUserAttributeKey']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['GetUserAttributeKey']._serialized_options = b'\222A6\022\023GetUserAttributeKey\032\037Retrieves a user attribute key.\202\323\344\223\0025\0223/api/v1/user-attribute-keys/{user_attribute_key_id}' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['ListUserAttributeKeys']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['ListUserAttributeKeys']._serialized_options = b'\222A3\022\025ListUserAttributeKeys\032\032Lists user attribute keys.\202\323\344\223\002\035\022\033/api/v1/user-attribute-keys' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['UpdateUserAttributeKey']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['UpdateUserAttributeKey']._serialized_options = b'\222AA\022\026UpdateUserAttributeKey\032\'Updates an existing user attribute key.\202\323\344\223\002823/api/v1/user-attribute-keys/{user_attribute_key_id}:\001*' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['ArchiveUserAttributeKeys']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['ArchiveUserAttributeKeys']._serialized_options = b'\222A8\022\030ArchiveUserAttributeKeys\032\034Archive user attribute keys.\202\323\344\223\002(\"#/api/v1/user-attribute-keys/archive:\001*' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['UnarchiveUserAttributeKeys']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['UnarchiveUserAttributeKeys']._serialized_options = b'\222A<\022\032UnarchiveUserAttributeKeys\032\036Unarchive user attribute keys.\202\323\344\223\002*\"%/api/v1/user-attribute-keys/unarchive:\001*' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['CreateUserAttributeValue']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['CreateUserAttributeValue']._serialized_options = b'\222A:\022\030CreateUserAttributeValue\032\036Create a user attribute value.\202\323\344\223\002\"\"\035/api/v1/user-attribute-values:\001*' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['BatchCreateUserAttributeValue']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['BatchCreateUserAttributeValue']._serialized_options = b'\222Ai\022\035BatchCreateUserAttributeValue\032HCreates a user attribute value for multiple users in a single operation.\202\323\344\223\002(\"#/api/v1/user-attribute-values/batch:\001*' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['GetUserAttributeValue']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['GetUserAttributeValue']._serialized_options = b'\222A:\022\025GetUserAttributeValue\032!Retrieves a user attribute value.\202\323\344\223\0029\0227/api/v1/user-attribute-values/{user_attribute_value_id}' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['ListUserAttributeKeyValues']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['ListUserAttributeKeyValues']._serialized_options = b'\222AY\022\032ListUserAttributeKeyValues\032;Lists user attribute values for a given user attribute key.\202\323\344\223\002K\022I/api/v1/user-attribute-keys/{user_attribute_key_id}/user-attribute-values' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['ListUserAttributeValues']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['ListUserAttributeValues']._serialized_options = b'\222A7\022\027ListUserAttributeValues\032\034Lists user attribute values.\202\323\344\223\002\037\022\035/api/v1/user-attribute-values' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['ArchiveUserAttributeValues']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['ArchiveUserAttributeValues']._serialized_options = b'\222A<\022\032ArchiveUserAttributeValues\032\036Archive user attribute values.\202\323\344\223\002*\"%/api/v1/user-attribute-values/archive:\001*' + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['UnarchiveUserAttributeValues']._loaded_options = None + _globals['_USERATTRIBUTESSERVICE'].methods_by_name['UnarchiveUserAttributeValues']._serialized_options = b'\222A@\022\034UnarchiveUserAttributeValues\032 Unarchive user attribute values.\202\323\344\223\002,\"\'/api/v1/user-attribute-values/unarchive:\001*' + _globals['_USERATTRIBUTEVALUETYPE']._serialized_start=5278 + _globals['_USERATTRIBUTEVALUETYPE']._serialized_end=5505 + _globals['_USERATTRIBUTEKEY']._serialized_start=282 + _globals['_USERATTRIBUTEKEY']._serialized_end=920 + _globals['_CREATEUSERATTRIBUTEKEYREQUEST']._serialized_start=923 + _globals['_CREATEUSERATTRIBUTEKEYREQUEST']._serialized_end=1092 + _globals['_CREATEUSERATTRIBUTEKEYRESPONSE']._serialized_start=1094 + _globals['_CREATEUSERATTRIBUTEKEYRESPONSE']._serialized_end=1220 + _globals['_UPDATEUSERATTRIBUTEKEYREQUEST']._serialized_start=1223 + _globals['_UPDATEUSERATTRIBUTEKEYREQUEST']._serialized_end=1448 + _globals['_UPDATEUSERATTRIBUTEKEYRESPONSE']._serialized_start=1450 + _globals['_UPDATEUSERATTRIBUTEKEYRESPONSE']._serialized_end=1576 + _globals['_GETUSERATTRIBUTEKEYREQUEST']._serialized_start=1578 + _globals['_GETUSERATTRIBUTEKEYREQUEST']._serialized_end=1670 + _globals['_GETUSERATTRIBUTEKEYRESPONSE']._serialized_start=1672 + _globals['_GETUSERATTRIBUTEKEYRESPONSE']._serialized_end=1795 + _globals['_LISTUSERATTRIBUTEKEYSREQUEST']._serialized_start=1798 + _globals['_LISTUSERATTRIBUTEKEYSREQUEST']._serialized_end=2053 + _globals['_LISTUSERATTRIBUTEKEYSRESPONSE']._serialized_start=2056 + _globals['_LISTUSERATTRIBUTEKEYSRESPONSE']._serialized_end=2223 + _globals['_ARCHIVEUSERATTRIBUTEKEYSREQUEST']._serialized_start=2225 + _globals['_ARCHIVEUSERATTRIBUTEKEYSREQUEST']._serialized_end=2316 + _globals['_ARCHIVEUSERATTRIBUTEKEYSRESPONSE']._serialized_start=2318 + _globals['_ARCHIVEUSERATTRIBUTEKEYSRESPONSE']._serialized_end=2352 + _globals['_UNARCHIVEUSERATTRIBUTEKEYSREQUEST']._serialized_start=2354 + _globals['_UNARCHIVEUSERATTRIBUTEKEYSREQUEST']._serialized_end=2447 + _globals['_UNARCHIVEUSERATTRIBUTEKEYSRESPONSE']._serialized_start=2449 + _globals['_UNARCHIVEUSERATTRIBUTEKEYSRESPONSE']._serialized_end=2485 + _globals['_USERATTRIBUTEVALUE']._serialized_start=2488 + _globals['_USERATTRIBUTEVALUE']._serialized_end=3154 + _globals['_CREATEUSERATTRIBUTEVALUEREQUEST']._serialized_start=3157 + _globals['_CREATEUSERATTRIBUTEVALUEREQUEST']._serialized_end=3414 + _globals['_CREATEUSERATTRIBUTEVALUERESPONSE']._serialized_start=3417 + _globals['_CREATEUSERATTRIBUTEVALUERESPONSE']._serialized_end=3551 + _globals['_BATCHCREATEUSERATTRIBUTEVALUEREQUEST']._serialized_start=3554 + _globals['_BATCHCREATEUSERATTRIBUTEVALUEREQUEST']._serialized_end=3821 + _globals['_BATCHCREATEUSERATTRIBUTEVALUERESPONSE']._serialized_start=3824 + _globals['_BATCHCREATEUSERATTRIBUTEVALUERESPONSE']._serialized_end=3965 + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST']._serialized_start=3968 + _globals['_LISTUSERATTRIBUTEKEYVALUESREQUEST']._serialized_end=4238 + _globals['_LISTUSERATTRIBUTEKEYVALUESRESPONSE']._serialized_start=4241 + _globals['_LISTUSERATTRIBUTEKEYVALUESRESPONSE']._serialized_end=4419 + _globals['_LISTUSERATTRIBUTEVALUESREQUEST']._serialized_start=4422 + _globals['_LISTUSERATTRIBUTEVALUESREQUEST']._serialized_end=4585 + _globals['_LISTUSERATTRIBUTEVALUESRESPONSE']._serialized_start=4588 + _globals['_LISTUSERATTRIBUTEVALUESRESPONSE']._serialized_end=4763 + _globals['_GETUSERATTRIBUTEVALUEREQUEST']._serialized_start=4765 + _globals['_GETUSERATTRIBUTEVALUEREQUEST']._serialized_end=4863 + _globals['_GETUSERATTRIBUTEVALUERESPONSE']._serialized_start=4866 + _globals['_GETUSERATTRIBUTEVALUERESPONSE']._serialized_end=4997 + _globals['_ARCHIVEUSERATTRIBUTEVALUESREQUEST']._serialized_start=4999 + _globals['_ARCHIVEUSERATTRIBUTEVALUESREQUEST']._serialized_end=5096 + _globals['_ARCHIVEUSERATTRIBUTEVALUESRESPONSE']._serialized_start=5098 + _globals['_ARCHIVEUSERATTRIBUTEVALUESRESPONSE']._serialized_end=5134 + _globals['_UNARCHIVEUSERATTRIBUTEVALUESREQUEST']._serialized_start=5136 + _globals['_UNARCHIVEUSERATTRIBUTEVALUESREQUEST']._serialized_end=5235 + _globals['_UNARCHIVEUSERATTRIBUTEVALUESRESPONSE']._serialized_start=5237 + _globals['_UNARCHIVEUSERATTRIBUTEVALUESRESPONSE']._serialized_end=5275 + _globals['_USERATTRIBUTESSERVICE']._serialized_start=5508 + _globals['_USERATTRIBUTESSERVICE']._serialized_end=9045 +# @@protoc_insertion_point(module_scope) diff --git a/python/lib/sift/user_attributes/v1/user_attributes_pb2.pyi b/python/lib/sift/user_attributes/v1/user_attributes_pb2.pyi new file mode 100644 index 000000000..8eb1847e7 --- /dev/null +++ b/python/lib/sift/user_attributes/v1/user_attributes_pb2.pyi @@ -0,0 +1,742 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.field_mask_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _UserAttributeValueType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _UserAttributeValueTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_UserAttributeValueType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED: _UserAttributeValueType.ValueType # 0 + USER_ATTRIBUTE_VALUE_TYPE_STRING: _UserAttributeValueType.ValueType # 1 + USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN: _UserAttributeValueType.ValueType # 2 + USER_ATTRIBUTE_VALUE_TYPE_NUMBER: _UserAttributeValueType.ValueType # 3 + USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING: _UserAttributeValueType.ValueType # 4 + +class UserAttributeValueType(_UserAttributeValueType, metaclass=_UserAttributeValueTypeEnumTypeWrapper): + """UserAttributeValueType enumerates the supported value types for a user attribute key.""" + +USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED: UserAttributeValueType.ValueType # 0 +USER_ATTRIBUTE_VALUE_TYPE_STRING: UserAttributeValueType.ValueType # 1 +USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN: UserAttributeValueType.ValueType # 2 +USER_ATTRIBUTE_VALUE_TYPE_NUMBER: UserAttributeValueType.ValueType # 3 +USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING: UserAttributeValueType.ValueType # 4 +global___UserAttributeValueType = UserAttributeValueType + +@typing.final +class UserAttributeKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + ORGANIZATION_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + CREATED_DATE_FIELD_NUMBER: builtins.int + CREATED_BY_USER_ID_FIELD_NUMBER: builtins.int + MODIFIED_DATE_FIELD_NUMBER: builtins.int + MODIFIED_BY_USER_ID_FIELD_NUMBER: builtins.int + ARCHIVED_DATE_FIELD_NUMBER: builtins.int + IS_ARCHIVED_FIELD_NUMBER: builtins.int + user_attribute_key_id: builtins.str + organization_id: builtins.str + name: builtins.str + description: builtins.str + type: global___UserAttributeValueType.ValueType + created_by_user_id: builtins.str + modified_by_user_id: builtins.str + is_archived: builtins.bool + """Whether or not the user attribute key is archived. This is inferred from whether archived_date is set.""" + @property + def created_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def modified_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def archived_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + user_attribute_key_id: builtins.str = ..., + organization_id: builtins.str = ..., + name: builtins.str = ..., + description: builtins.str = ..., + type: global___UserAttributeValueType.ValueType = ..., + created_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by_user_id: builtins.str = ..., + modified_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + modified_by_user_id: builtins.str = ..., + archived_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + is_archived: builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["archived_date", b"archived_date", "created_date", b"created_date", "modified_date", b"modified_date"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["archived_date", b"archived_date", "created_by_user_id", b"created_by_user_id", "created_date", b"created_date", "description", b"description", "is_archived", b"is_archived", "modified_by_user_id", b"modified_by_user_id", "modified_date", b"modified_date", "name", b"name", "organization_id", b"organization_id", "type", b"type", "user_attribute_key_id", b"user_attribute_key_id"]) -> None: ... + +global___UserAttributeKey = UserAttributeKey + +@typing.final +class CreateUserAttributeKeyRequest(google.protobuf.message.Message): + """CreateUserAttributeKeyRequest is used to create a new user attribute key.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + name: builtins.str + description: builtins.str + type: global___UserAttributeValueType.ValueType + def __init__( + self, + *, + name: builtins.str = ..., + description: builtins.str = ..., + type: global___UserAttributeValueType.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "name", b"name", "type", b"type"]) -> None: ... + +global___CreateUserAttributeKeyRequest = CreateUserAttributeKeyRequest + +@typing.final +class CreateUserAttributeKeyResponse(google.protobuf.message.Message): + """CreateUserAttributeKeyResponse returns the user attribute key from a CreateUserAttributeKey call.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEY_FIELD_NUMBER: builtins.int + @property + def user_attribute_key(self) -> global___UserAttributeKey: ... + def __init__( + self, + *, + user_attribute_key: global___UserAttributeKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["user_attribute_key", b"user_attribute_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["user_attribute_key", b"user_attribute_key"]) -> None: ... + +global___CreateUserAttributeKeyResponse = CreateUserAttributeKeyResponse + +@typing.final +class UpdateUserAttributeKeyRequest(google.protobuf.message.Message): + """UpdateUserAttributeKeyRequest is used to update an existing user attribute key.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + UPDATE_MASK_FIELD_NUMBER: builtins.int + user_attribute_key_id: builtins.str + name: builtins.str + description: builtins.str + @property + def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: + """The list of fields to be updated. The fields available to be updated are `name` and 'description'.""" + + def __init__( + self, + *, + user_attribute_key_id: builtins.str = ..., + name: builtins.str = ..., + description: builtins.str = ..., + update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["update_mask", b"update_mask"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "name", b"name", "update_mask", b"update_mask", "user_attribute_key_id", b"user_attribute_key_id"]) -> None: ... + +global___UpdateUserAttributeKeyRequest = UpdateUserAttributeKeyRequest + +@typing.final +class UpdateUserAttributeKeyResponse(google.protobuf.message.Message): + """UpdateUserAttributeKeyResponse returns the user attribute key from a UpdateUserAttributeKey call.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEY_FIELD_NUMBER: builtins.int + @property + def user_attribute_key(self) -> global___UserAttributeKey: ... + def __init__( + self, + *, + user_attribute_key: global___UserAttributeKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["user_attribute_key", b"user_attribute_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["user_attribute_key", b"user_attribute_key"]) -> None: ... + +global___UpdateUserAttributeKeyResponse = UpdateUserAttributeKeyResponse + +@typing.final +class GetUserAttributeKeyRequest(google.protobuf.message.Message): + """GetUserAttributeKeyRequest is used to retrieve a user attribute key.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + user_attribute_key_id: builtins.str + def __init__( + self, + *, + user_attribute_key_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["user_attribute_key_id", b"user_attribute_key_id"]) -> None: ... + +global___GetUserAttributeKeyRequest = GetUserAttributeKeyRequest + +@typing.final +class GetUserAttributeKeyResponse(google.protobuf.message.Message): + """GetUserAttributeKeyResponse returns a user attribute key from a GetUserAttributeKey call.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEY_FIELD_NUMBER: builtins.int + @property + def user_attribute_key(self) -> global___UserAttributeKey: ... + def __init__( + self, + *, + user_attribute_key: global___UserAttributeKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["user_attribute_key", b"user_attribute_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["user_attribute_key", b"user_attribute_key"]) -> None: ... + +global___GetUserAttributeKeyResponse = GetUserAttributeKeyResponse + +@typing.final +class ListUserAttributeKeysRequest(google.protobuf.message.Message): + """ListUserAttributeKeysRequest is used to list user attribute keys with the provided filter.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGE_SIZE_FIELD_NUMBER: builtins.int + PAGE_TOKEN_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + ORGANIZATION_ID_FIELD_NUMBER: builtins.int + INCLUDE_ARCHIVED_FIELD_NUMBER: builtins.int + page_size: builtins.int + """The maximum number of user attribute keys to return. The service may return fewer than this value. + If unspecified, at most 50 user attribute keys will be returned. The maximum value is 1000. Values + above 1000 will be coerced to 1000. Optional. + """ + page_token: builtins.str + """A page token, received from a previous `ListUserAttributeKeys` call. + Provide this to retrieve a subsequent page of user attribute keys. + When paginating, all other parameters provided to `ListUserAttributeKeys` must match the previous call + that provided the page token. Optional. + """ + filter: builtins.str + """A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + Available fields to filter by are: + 'user_attribute_key_id', 'name', 'value_type', 'created_by_user_id', 'created_date', 'modified_by_user_id, 'modified_date' + For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + For more information about the fields used for filtering, please refer to this definition. Optional. + """ + order_by: builtins.str + """How to order the retrieved user attribute keys. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + Available fields to order_by are `created_date`, 'modified_date', 'name', 'user_attribute_key_id', 'value_type', 'description' + If left empty, items are ordered by `created_date` in ascending order (oldest-first). + For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + Example: "created_date desc,modified_date" + """ + organization_id: builtins.str + include_archived: builtins.bool + """If true, includes archived keys. Defaulta to false. Optional.""" + def __init__( + self, + *, + page_size: builtins.int = ..., + page_token: builtins.str = ..., + filter: builtins.str = ..., + order_by: builtins.str = ..., + organization_id: builtins.str = ..., + include_archived: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "include_archived", b"include_archived", "order_by", b"order_by", "organization_id", b"organization_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ... + +global___ListUserAttributeKeysRequest = ListUserAttributeKeysRequest + +@typing.final +class ListUserAttributeKeysResponse(google.protobuf.message.Message): + """ListUserAttributeKeysResponse returns the list of user attribute keys from a ListUserAttributeKeys call.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEYS_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + @property + def user_attribute_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UserAttributeKey]: ... + def __init__( + self, + *, + user_attribute_keys: collections.abc.Iterable[global___UserAttributeKey] | None = ..., + next_page_token: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "user_attribute_keys", b"user_attribute_keys"]) -> None: ... + +global___ListUserAttributeKeysResponse = ListUserAttributeKeysResponse + +@typing.final +class ArchiveUserAttributeKeysRequest(google.protobuf.message.Message): + """ArchiveUserAttributeKeysRequest is used to batch archive user attribute keys by id.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEY_IDS_FIELD_NUMBER: builtins.int + @property + def user_attribute_key_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + user_attribute_key_ids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["user_attribute_key_ids", b"user_attribute_key_ids"]) -> None: ... + +global___ArchiveUserAttributeKeysRequest = ArchiveUserAttributeKeysRequest + +@typing.final +class ArchiveUserAttributeKeysResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___ArchiveUserAttributeKeysResponse = ArchiveUserAttributeKeysResponse + +@typing.final +class UnarchiveUserAttributeKeysRequest(google.protobuf.message.Message): + """UnarchiveUserAttributeKeysRequest is used to batch unarchive user attribute keys by id.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEY_IDS_FIELD_NUMBER: builtins.int + @property + def user_attribute_key_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + user_attribute_key_ids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["user_attribute_key_ids", b"user_attribute_key_ids"]) -> None: ... + +global___UnarchiveUserAttributeKeysRequest = UnarchiveUserAttributeKeysRequest + +@typing.final +class UnarchiveUserAttributeKeysResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___UnarchiveUserAttributeKeysResponse = UnarchiveUserAttributeKeysResponse + +@typing.final +class UserAttributeValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_VALUE_ID_FIELD_NUMBER: builtins.int + USER_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + USER_ID_FIELD_NUMBER: builtins.int + ORGANIZATION_ID_FIELD_NUMBER: builtins.int + STRING_VALUE_FIELD_NUMBER: builtins.int + NUMBER_VALUE_FIELD_NUMBER: builtins.int + BOOLEAN_VALUE_FIELD_NUMBER: builtins.int + CREATED_BY_USER_ID_FIELD_NUMBER: builtins.int + CREATED_DATE_FIELD_NUMBER: builtins.int + ARCHIVED_DATE_FIELD_NUMBER: builtins.int + IS_ARCHIVED_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + user_attribute_value_id: builtins.str + user_attribute_key_id: builtins.str + user_id: builtins.str + organization_id: builtins.str + string_value: builtins.str + number_value: builtins.float + boolean_value: builtins.bool + created_by_user_id: builtins.str + is_archived: builtins.bool + """Whether or not the user attribute value is archived. This is inferred from whether archived_date is set.""" + @property + def created_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def archived_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def key(self) -> global___UserAttributeKey: + """The full user attribute key is populated in the response.""" + + def __init__( + self, + *, + user_attribute_value_id: builtins.str = ..., + user_attribute_key_id: builtins.str = ..., + user_id: builtins.str = ..., + organization_id: builtins.str = ..., + string_value: builtins.str = ..., + number_value: builtins.float = ..., + boolean_value: builtins.bool = ..., + created_by_user_id: builtins.str = ..., + created_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + archived_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + is_archived: builtins.bool = ..., + key: global___UserAttributeKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["archived_date", b"archived_date", "boolean_value", b"boolean_value", "created_date", b"created_date", "key", b"key", "number_value", b"number_value", "string_value", b"string_value", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["archived_date", b"archived_date", "boolean_value", b"boolean_value", "created_by_user_id", b"created_by_user_id", "created_date", b"created_date", "is_archived", b"is_archived", "key", b"key", "number_value", b"number_value", "organization_id", b"organization_id", "string_value", b"string_value", "user_attribute_key_id", b"user_attribute_key_id", "user_attribute_value_id", b"user_attribute_value_id", "user_id", b"user_id", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["string_value", "number_value", "boolean_value"] | None: ... + +global___UserAttributeValue = UserAttributeValue + +@typing.final +class CreateUserAttributeValueRequest(google.protobuf.message.Message): + """CreateUserAttributeValueRequest is used to create a new user attribute value.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + USER_ID_FIELD_NUMBER: builtins.int + STRING_VALUE_FIELD_NUMBER: builtins.int + NUMBER_VALUE_FIELD_NUMBER: builtins.int + BOOLEAN_VALUE_FIELD_NUMBER: builtins.int + user_attribute_key_id: builtins.str + user_id: builtins.str + string_value: builtins.str + number_value: builtins.float + boolean_value: builtins.bool + def __init__( + self, + *, + user_attribute_key_id: builtins.str = ..., + user_id: builtins.str = ..., + string_value: builtins.str = ..., + number_value: builtins.float = ..., + boolean_value: builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["boolean_value", b"boolean_value", "number_value", b"number_value", "string_value", b"string_value", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["boolean_value", b"boolean_value", "number_value", b"number_value", "string_value", b"string_value", "user_attribute_key_id", b"user_attribute_key_id", "user_id", b"user_id", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["string_value", "number_value", "boolean_value"] | None: ... + +global___CreateUserAttributeValueRequest = CreateUserAttributeValueRequest + +@typing.final +class CreateUserAttributeValueResponse(google.protobuf.message.Message): + """CreateUserAttributeValueResponse returns the user attribute value from a CreateUserAttributeValue call.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_VALUE_FIELD_NUMBER: builtins.int + @property + def user_attribute_value(self) -> global___UserAttributeValue: ... + def __init__( + self, + *, + user_attribute_value: global___UserAttributeValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["user_attribute_value", b"user_attribute_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["user_attribute_value", b"user_attribute_value"]) -> None: ... + +global___CreateUserAttributeValueResponse = CreateUserAttributeValueResponse + +@typing.final +class BatchCreateUserAttributeValueRequest(google.protobuf.message.Message): + """BatchCreateUserAttributeValueRequest is used to batch create new user attribute values.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + USER_IDS_FIELD_NUMBER: builtins.int + STRING_VALUE_FIELD_NUMBER: builtins.int + NUMBER_VALUE_FIELD_NUMBER: builtins.int + BOOLEAN_VALUE_FIELD_NUMBER: builtins.int + user_attribute_key_id: builtins.str + string_value: builtins.str + number_value: builtins.float + boolean_value: builtins.bool + @property + def user_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + user_attribute_key_id: builtins.str = ..., + user_ids: collections.abc.Iterable[builtins.str] | None = ..., + string_value: builtins.str = ..., + number_value: builtins.float = ..., + boolean_value: builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["boolean_value", b"boolean_value", "number_value", b"number_value", "string_value", b"string_value", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["boolean_value", b"boolean_value", "number_value", b"number_value", "string_value", b"string_value", "user_attribute_key_id", b"user_attribute_key_id", "user_ids", b"user_ids", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["string_value", "number_value", "boolean_value"] | None: ... + +global___BatchCreateUserAttributeValueRequest = BatchCreateUserAttributeValueRequest + +@typing.final +class BatchCreateUserAttributeValueResponse(google.protobuf.message.Message): + """ + BatchCreateUserAttributeValueResponse returns the user attribute value from a BatchCreateUserAttributeValue call. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_VALUES_FIELD_NUMBER: builtins.int + @property + def user_attribute_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UserAttributeValue]: ... + def __init__( + self, + *, + user_attribute_values: collections.abc.Iterable[global___UserAttributeValue] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["user_attribute_values", b"user_attribute_values"]) -> None: ... + +global___BatchCreateUserAttributeValueResponse = BatchCreateUserAttributeValueResponse + +@typing.final +class ListUserAttributeKeyValuesRequest(google.protobuf.message.Message): + """ListUserAttributeKeyValues is used to list user attribute values for a given user attribute key with the provided filter.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_KEY_ID_FIELD_NUMBER: builtins.int + PAGE_SIZE_FIELD_NUMBER: builtins.int + PAGE_TOKEN_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + INCLUDE_ARCHIVED_FIELD_NUMBER: builtins.int + user_attribute_key_id: builtins.str + """The id of the user attribute key to list values for.""" + page_size: builtins.int + """The maximum number of user attribute values to return. The service may return fewer than this value. + If unspecified, at most 50 user attribute values will be returned. The maximum value is 1000. Values + above 1000 will be coerced to 1000. Optional. + """ + page_token: builtins.str + """A page token, received from a previous `ListUserAttributeKeyValues` call. + Provide this to retrieve a subsequent page of user attribute values. + When paginating, all other parameters provided to `ListUserAttributeValues` must match the previous call + that provided the page token. Optional. + """ + filter: builtins.str + """A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + Available fields to filter by are: + 'user_attribute_value_id', 'user_attribute_key_id', 'string_value', 'number_value', 'boolean_value', 'created_date', 'created_by_user_id' and 'user_id' + For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + For more information about the fields used for filtering, please refer to this definition. Optional. + """ + order_by: builtins.str + """How to order the retrieved user attribute values. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + Available fields to order_by are `created_date` + If left empty, items are ordered by `created_date` in ascending order (oldest-first). + For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + Example: "created_date desc" + """ + include_archived: builtins.bool + """If true, include archived values. Defaults to false. Optional.""" + def __init__( + self, + *, + user_attribute_key_id: builtins.str = ..., + page_size: builtins.int = ..., + page_token: builtins.str = ..., + filter: builtins.str = ..., + order_by: builtins.str = ..., + include_archived: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "include_archived", b"include_archived", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token", "user_attribute_key_id", b"user_attribute_key_id"]) -> None: ... + +global___ListUserAttributeKeyValuesRequest = ListUserAttributeKeyValuesRequest + +@typing.final +class ListUserAttributeKeyValuesResponse(google.protobuf.message.Message): + """ListUserAttributeKeyValuesResponse returns the list of user attribute values from a ListUserAttributeKeyValues call.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_VALUES_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + @property + def user_attribute_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UserAttributeValue]: ... + def __init__( + self, + *, + user_attribute_values: collections.abc.Iterable[global___UserAttributeValue] | None = ..., + next_page_token: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "user_attribute_values", b"user_attribute_values"]) -> None: ... + +global___ListUserAttributeKeyValuesResponse = ListUserAttributeKeyValuesResponse + +@typing.final +class ListUserAttributeValuesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAGE_SIZE_FIELD_NUMBER: builtins.int + PAGE_TOKEN_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + page_size: builtins.int + """The maximum number of user attribute values to return. The service may return fewer than this value. + If unspecified, at most 50 user attribute values will be returned. The maximum value is 1000. Values + above 1000 will be coerced to 1000. Optional. + """ + page_token: builtins.str + """A page token, received from a previous `ListUserAttributeValues` call. + Provide this to retrieve a subsequent page of user attribute values. + When paginating, all other parameters provided to `ListUserAttributeValues` must match the previous call + that provided the page token. Optional. + """ + filter: builtins.str + """A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. + Available fields to filter by are: + 'user_attribute_value_id', 'user_attribute_key_id', 'string_value', 'number_value', 'boolean_value', 'created_date', 'created_by_user_id', 'archived_date' and 'user_id' + For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). + For more information about the fields used for filtering, please refer to this definition. Optional. + """ + order_by: builtins.str + """How to order the retrieved user attribute values. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". + Available fields to order_by are `created_date` + If left empty, items are ordered by `created_date` in ascending order (oldest-first). + For more information about the format of this field, read [this](https://google.aip.dev/132#ordering) + Example: "created_date desc" + """ + def __init__( + self, + *, + page_size: builtins.int = ..., + page_token: builtins.str = ..., + filter: builtins.str = ..., + order_by: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ... + +global___ListUserAttributeValuesRequest = ListUserAttributeValuesRequest + +@typing.final +class ListUserAttributeValuesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_VALUES_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + @property + def user_attribute_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UserAttributeValue]: ... + def __init__( + self, + *, + user_attribute_values: collections.abc.Iterable[global___UserAttributeValue] | None = ..., + next_page_token: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "user_attribute_values", b"user_attribute_values"]) -> None: ... + +global___ListUserAttributeValuesResponse = ListUserAttributeValuesResponse + +@typing.final +class GetUserAttributeValueRequest(google.protobuf.message.Message): + """GetUserAttributeValueRequest is used to retrieve a user attribute value.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_VALUE_ID_FIELD_NUMBER: builtins.int + user_attribute_value_id: builtins.str + def __init__( + self, + *, + user_attribute_value_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["user_attribute_value_id", b"user_attribute_value_id"]) -> None: ... + +global___GetUserAttributeValueRequest = GetUserAttributeValueRequest + +@typing.final +class GetUserAttributeValueResponse(google.protobuf.message.Message): + """GetUserAttributeValueResponse returns a user attribute value from a GetUserAttributeValue call.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_VALUE_FIELD_NUMBER: builtins.int + @property + def user_attribute_value(self) -> global___UserAttributeValue: ... + def __init__( + self, + *, + user_attribute_value: global___UserAttributeValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["user_attribute_value", b"user_attribute_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["user_attribute_value", b"user_attribute_value"]) -> None: ... + +global___GetUserAttributeValueResponse = GetUserAttributeValueResponse + +@typing.final +class ArchiveUserAttributeValuesRequest(google.protobuf.message.Message): + """ArchiveUserAttributeValuesRequest is used to batch archive user attribute values by id.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_VALUE_IDS_FIELD_NUMBER: builtins.int + @property + def user_attribute_value_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + user_attribute_value_ids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["user_attribute_value_ids", b"user_attribute_value_ids"]) -> None: ... + +global___ArchiveUserAttributeValuesRequest = ArchiveUserAttributeValuesRequest + +@typing.final +class ArchiveUserAttributeValuesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___ArchiveUserAttributeValuesResponse = ArchiveUserAttributeValuesResponse + +@typing.final +class UnarchiveUserAttributeValuesRequest(google.protobuf.message.Message): + """UnarchiveUserAttributeValuesRequest is used to batch unarchive user attribute values by id.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_ATTRIBUTE_VALUE_IDS_FIELD_NUMBER: builtins.int + @property + def user_attribute_value_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + user_attribute_value_ids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["user_attribute_value_ids", b"user_attribute_value_ids"]) -> None: ... + +global___UnarchiveUserAttributeValuesRequest = UnarchiveUserAttributeValuesRequest + +@typing.final +class UnarchiveUserAttributeValuesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___UnarchiveUserAttributeValuesResponse = UnarchiveUserAttributeValuesResponse diff --git a/python/lib/sift/user_attributes/v1/user_attributes_pb2_grpc.py b/python/lib/sift/user_attributes/v1/user_attributes_pb2_grpc.py new file mode 100644 index 000000000..d9ca79e91 --- /dev/null +++ b/python/lib/sift/user_attributes/v1/user_attributes_pb2_grpc.py @@ -0,0 +1,475 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from sift.user_attributes.v1 import user_attributes_pb2 as sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2 + + +class UserAttributesServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateUserAttributeKey = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeKey', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeKeyRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeKeyResponse.FromString, + ) + self.GetUserAttributeKey = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/GetUserAttributeKey', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeKeyRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeKeyResponse.FromString, + ) + self.ListUserAttributeKeys = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeys', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeysRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeysResponse.FromString, + ) + self.UpdateUserAttributeKey = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/UpdateUserAttributeKey', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UpdateUserAttributeKeyRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UpdateUserAttributeKeyResponse.FromString, + ) + self.ArchiveUserAttributeKeys = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeKeys', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeKeysRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeKeysResponse.FromString, + ) + self.UnarchiveUserAttributeKeys = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeKeys', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeKeysRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeKeysResponse.FromString, + ) + self.CreateUserAttributeValue = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeValue', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeValueRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeValueResponse.FromString, + ) + self.BatchCreateUserAttributeValue = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/BatchCreateUserAttributeValue', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.BatchCreateUserAttributeValueRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.BatchCreateUserAttributeValueResponse.FromString, + ) + self.GetUserAttributeValue = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/GetUserAttributeValue', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeValueRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeValueResponse.FromString, + ) + self.ListUserAttributeKeyValues = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeyValues', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeyValuesRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeyValuesResponse.FromString, + ) + self.ListUserAttributeValues = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/ListUserAttributeValues', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeValuesRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeValuesResponse.FromString, + ) + self.ArchiveUserAttributeValues = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeValues', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeValuesRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeValuesResponse.FromString, + ) + self.UnarchiveUserAttributeValues = channel.unary_unary( + '/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeValues', + request_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeValuesRequest.SerializeToString, + response_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeValuesResponse.FromString, + ) + + +class UserAttributesServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def CreateUserAttributeKey(self, request, context): + """Creates a user attribute key. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetUserAttributeKey(self, request, context): + """Retrieves a user attribute key. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListUserAttributeKeys(self, request, context): + """Lists user attribute keys, respecting the provided filter. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateUserAttributeKey(self, request, context): + """Updates an existing user attribute key. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ArchiveUserAttributeKeys(self, request, context): + """Batch archives user attribute keys AND all their associated user attribute values. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UnarchiveUserAttributeKeys(self, request, context): + """Batch unarchives user attribute keys. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateUserAttributeValue(self, request, context): + """Creates a user attribute value. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BatchCreateUserAttributeValue(self, request, context): + """Creates a user attribute value for multiple users in a single operation. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetUserAttributeValue(self, request, context): + """Retrieves a user attribute value. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListUserAttributeKeyValues(self, request, context): + """Lists user attribute values for a given user attribute key, respecting the provided filter. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListUserAttributeValues(self, request, context): + """List user attributes values, respecting the provided filter. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ArchiveUserAttributeValues(self, request, context): + """Batch archives user attribute values. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UnarchiveUserAttributeValues(self, request, context): + """Batch unarchives user attribute values. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_UserAttributesServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateUserAttributeKey': grpc.unary_unary_rpc_method_handler( + servicer.CreateUserAttributeKey, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeKeyRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeKeyResponse.SerializeToString, + ), + 'GetUserAttributeKey': grpc.unary_unary_rpc_method_handler( + servicer.GetUserAttributeKey, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeKeyRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeKeyResponse.SerializeToString, + ), + 'ListUserAttributeKeys': grpc.unary_unary_rpc_method_handler( + servicer.ListUserAttributeKeys, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeysRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeysResponse.SerializeToString, + ), + 'UpdateUserAttributeKey': grpc.unary_unary_rpc_method_handler( + servicer.UpdateUserAttributeKey, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UpdateUserAttributeKeyRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UpdateUserAttributeKeyResponse.SerializeToString, + ), + 'ArchiveUserAttributeKeys': grpc.unary_unary_rpc_method_handler( + servicer.ArchiveUserAttributeKeys, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeKeysRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeKeysResponse.SerializeToString, + ), + 'UnarchiveUserAttributeKeys': grpc.unary_unary_rpc_method_handler( + servicer.UnarchiveUserAttributeKeys, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeKeysRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeKeysResponse.SerializeToString, + ), + 'CreateUserAttributeValue': grpc.unary_unary_rpc_method_handler( + servicer.CreateUserAttributeValue, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeValueRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeValueResponse.SerializeToString, + ), + 'BatchCreateUserAttributeValue': grpc.unary_unary_rpc_method_handler( + servicer.BatchCreateUserAttributeValue, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.BatchCreateUserAttributeValueRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.BatchCreateUserAttributeValueResponse.SerializeToString, + ), + 'GetUserAttributeValue': grpc.unary_unary_rpc_method_handler( + servicer.GetUserAttributeValue, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeValueRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeValueResponse.SerializeToString, + ), + 'ListUserAttributeKeyValues': grpc.unary_unary_rpc_method_handler( + servicer.ListUserAttributeKeyValues, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeyValuesRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeyValuesResponse.SerializeToString, + ), + 'ListUserAttributeValues': grpc.unary_unary_rpc_method_handler( + servicer.ListUserAttributeValues, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeValuesRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeValuesResponse.SerializeToString, + ), + 'ArchiveUserAttributeValues': grpc.unary_unary_rpc_method_handler( + servicer.ArchiveUserAttributeValues, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeValuesRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeValuesResponse.SerializeToString, + ), + 'UnarchiveUserAttributeValues': grpc.unary_unary_rpc_method_handler( + servicer.UnarchiveUserAttributeValues, + request_deserializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeValuesRequest.FromString, + response_serializer=sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeValuesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'sift.user_attributes.v1.UserAttributesService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class UserAttributesService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def CreateUserAttributeKey(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeKey', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeKeyRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeKeyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetUserAttributeKey(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/GetUserAttributeKey', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeKeyRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeKeyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListUserAttributeKeys(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeys', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeysRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeysResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateUserAttributeKey(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/UpdateUserAttributeKey', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UpdateUserAttributeKeyRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UpdateUserAttributeKeyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ArchiveUserAttributeKeys(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeKeys', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeKeysRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeKeysResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UnarchiveUserAttributeKeys(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeKeys', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeKeysRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeKeysResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateUserAttributeValue(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeValue', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeValueRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.CreateUserAttributeValueResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BatchCreateUserAttributeValue(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/BatchCreateUserAttributeValue', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.BatchCreateUserAttributeValueRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.BatchCreateUserAttributeValueResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetUserAttributeValue(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/GetUserAttributeValue', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeValueRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.GetUserAttributeValueResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListUserAttributeKeyValues(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeyValues', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeyValuesRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeKeyValuesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListUserAttributeValues(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/ListUserAttributeValues', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeValuesRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ListUserAttributeValuesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ArchiveUserAttributeValues(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeValues', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeValuesRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.ArchiveUserAttributeValuesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UnarchiveUserAttributeValues(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeValues', + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeValuesRequest.SerializeToString, + sift_dot_user__attributes_dot_v1_dot_user__attributes__pb2.UnarchiveUserAttributeValuesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/python/lib/sift/user_attributes/v1/user_attributes_pb2_grpc.pyi b/python/lib/sift/user_attributes/v1/user_attributes_pb2_grpc.pyi new file mode 100644 index 000000000..b9bcb5f73 --- /dev/null +++ b/python/lib/sift/user_attributes/v1/user_attributes_pb2_grpc.pyi @@ -0,0 +1,284 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import abc +import collections.abc +import grpc +import grpc.aio +import sift.user_attributes.v1.user_attributes_pb2 +import typing + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ... + +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... + +class UserAttributesServiceStub: + def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ... + CreateUserAttributeKey: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeKeyRequest, + sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeKeyResponse, + ] + """Creates a user attribute key.""" + + GetUserAttributeKey: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeKeyRequest, + sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeKeyResponse, + ] + """Retrieves a user attribute key.""" + + ListUserAttributeKeys: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeysRequest, + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeysResponse, + ] + """Lists user attribute keys, respecting the provided filter.""" + + UpdateUserAttributeKey: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.UpdateUserAttributeKeyRequest, + sift.user_attributes.v1.user_attributes_pb2.UpdateUserAttributeKeyResponse, + ] + """Updates an existing user attribute key.""" + + ArchiveUserAttributeKeys: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeKeysRequest, + sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeKeysResponse, + ] + """Batch archives user attribute keys AND all their associated user attribute values.""" + + UnarchiveUserAttributeKeys: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeKeysRequest, + sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeKeysResponse, + ] + """Batch unarchives user attribute keys.""" + + CreateUserAttributeValue: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeValueRequest, + sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeValueResponse, + ] + """Creates a user attribute value.""" + + BatchCreateUserAttributeValue: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.BatchCreateUserAttributeValueRequest, + sift.user_attributes.v1.user_attributes_pb2.BatchCreateUserAttributeValueResponse, + ] + """Creates a user attribute value for multiple users in a single operation.""" + + GetUserAttributeValue: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeValueRequest, + sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeValueResponse, + ] + """Retrieves a user attribute value.""" + + ListUserAttributeKeyValues: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeyValuesRequest, + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeyValuesResponse, + ] + """Lists user attribute values for a given user attribute key, respecting the provided filter.""" + + ListUserAttributeValues: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeValuesRequest, + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeValuesResponse, + ] + """List user attributes values, respecting the provided filter.""" + + ArchiveUserAttributeValues: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeValuesRequest, + sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeValuesResponse, + ] + """Batch archives user attribute values.""" + + UnarchiveUserAttributeValues: grpc.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeValuesRequest, + sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeValuesResponse, + ] + """Batch unarchives user attribute values.""" + +class UserAttributesServiceAsyncStub: + CreateUserAttributeKey: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeKeyRequest, + sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeKeyResponse, + ] + """Creates a user attribute key.""" + + GetUserAttributeKey: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeKeyRequest, + sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeKeyResponse, + ] + """Retrieves a user attribute key.""" + + ListUserAttributeKeys: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeysRequest, + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeysResponse, + ] + """Lists user attribute keys, respecting the provided filter.""" + + UpdateUserAttributeKey: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.UpdateUserAttributeKeyRequest, + sift.user_attributes.v1.user_attributes_pb2.UpdateUserAttributeKeyResponse, + ] + """Updates an existing user attribute key.""" + + ArchiveUserAttributeKeys: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeKeysRequest, + sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeKeysResponse, + ] + """Batch archives user attribute keys AND all their associated user attribute values.""" + + UnarchiveUserAttributeKeys: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeKeysRequest, + sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeKeysResponse, + ] + """Batch unarchives user attribute keys.""" + + CreateUserAttributeValue: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeValueRequest, + sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeValueResponse, + ] + """Creates a user attribute value.""" + + BatchCreateUserAttributeValue: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.BatchCreateUserAttributeValueRequest, + sift.user_attributes.v1.user_attributes_pb2.BatchCreateUserAttributeValueResponse, + ] + """Creates a user attribute value for multiple users in a single operation.""" + + GetUserAttributeValue: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeValueRequest, + sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeValueResponse, + ] + """Retrieves a user attribute value.""" + + ListUserAttributeKeyValues: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeyValuesRequest, + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeyValuesResponse, + ] + """Lists user attribute values for a given user attribute key, respecting the provided filter.""" + + ListUserAttributeValues: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeValuesRequest, + sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeValuesResponse, + ] + """List user attributes values, respecting the provided filter.""" + + ArchiveUserAttributeValues: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeValuesRequest, + sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeValuesResponse, + ] + """Batch archives user attribute values.""" + + UnarchiveUserAttributeValues: grpc.aio.UnaryUnaryMultiCallable[ + sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeValuesRequest, + sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeValuesResponse, + ] + """Batch unarchives user attribute values.""" + +class UserAttributesServiceServicer(metaclass=abc.ABCMeta): + @abc.abstractmethod + def CreateUserAttributeKey( + self, + request: sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeKeyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeKeyResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeKeyResponse]]: + """Creates a user attribute key.""" + + @abc.abstractmethod + def GetUserAttributeKey( + self, + request: sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeKeyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeKeyResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeKeyResponse]]: + """Retrieves a user attribute key.""" + + @abc.abstractmethod + def ListUserAttributeKeys( + self, + request: sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeysRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeysResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeysResponse]]: + """Lists user attribute keys, respecting the provided filter.""" + + @abc.abstractmethod + def UpdateUserAttributeKey( + self, + request: sift.user_attributes.v1.user_attributes_pb2.UpdateUserAttributeKeyRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.UpdateUserAttributeKeyResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.UpdateUserAttributeKeyResponse]]: + """Updates an existing user attribute key.""" + + @abc.abstractmethod + def ArchiveUserAttributeKeys( + self, + request: sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeKeysRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeKeysResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeKeysResponse]]: + """Batch archives user attribute keys AND all their associated user attribute values.""" + + @abc.abstractmethod + def UnarchiveUserAttributeKeys( + self, + request: sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeKeysRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeKeysResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeKeysResponse]]: + """Batch unarchives user attribute keys.""" + + @abc.abstractmethod + def CreateUserAttributeValue( + self, + request: sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeValueRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeValueResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.CreateUserAttributeValueResponse]]: + """Creates a user attribute value.""" + + @abc.abstractmethod + def BatchCreateUserAttributeValue( + self, + request: sift.user_attributes.v1.user_attributes_pb2.BatchCreateUserAttributeValueRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.BatchCreateUserAttributeValueResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.BatchCreateUserAttributeValueResponse]]: + """Creates a user attribute value for multiple users in a single operation.""" + + @abc.abstractmethod + def GetUserAttributeValue( + self, + request: sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeValueRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeValueResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.GetUserAttributeValueResponse]]: + """Retrieves a user attribute value.""" + + @abc.abstractmethod + def ListUserAttributeKeyValues( + self, + request: sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeyValuesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeyValuesResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeKeyValuesResponse]]: + """Lists user attribute values for a given user attribute key, respecting the provided filter.""" + + @abc.abstractmethod + def ListUserAttributeValues( + self, + request: sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeValuesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeValuesResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.ListUserAttributeValuesResponse]]: + """List user attributes values, respecting the provided filter.""" + + @abc.abstractmethod + def ArchiveUserAttributeValues( + self, + request: sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeValuesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeValuesResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.ArchiveUserAttributeValuesResponse]]: + """Batch archives user attribute values.""" + + @abc.abstractmethod + def UnarchiveUserAttributeValues( + self, + request: sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeValuesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeValuesResponse, collections.abc.Awaitable[sift.user_attributes.v1.user_attributes_pb2.UnarchiveUserAttributeValuesResponse]]: + """Batch unarchives user attribute values.""" + +def add_UserAttributesServiceServicer_to_server(servicer: UserAttributesServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ... diff --git a/rust/crates/sift_rs/src/gen/mod.rs b/rust/crates/sift_rs/src/gen/mod.rs index 0ddba856a..3dbf146c0 100644 --- a/rust/crates/sift_rs/src/gen/mod.rs +++ b/rust/crates/sift_rs/src/gen/mod.rs @@ -206,6 +206,13 @@ pub mod sift { // @@protoc_insertion_point(sift.ping.v1) } } + pub mod policies { + // @@protoc_insertion_point(attribute:sift.policies.v1) + pub mod v1 { + include!("sift.policies.v1.rs"); + // @@protoc_insertion_point(sift.policies.v1) + } + } pub mod protobuf_descriptors { // @@protoc_insertion_point(attribute:sift.protobuf_descriptors.v2) pub mod v2 { @@ -234,6 +241,13 @@ pub mod sift { // @@protoc_insertion_point(sift.reports.v1) } } + pub mod resource_attribute { + // @@protoc_insertion_point(attribute:sift.resource_attribute.v1) + pub mod v1 { + include!("sift.resource_attribute.v1.rs"); + // @@protoc_insertion_point(sift.resource_attribute.v1) + } + } pub mod roles { // @@protoc_insertion_point(attribute:sift.roles.v2) pub mod v2 { @@ -295,6 +309,13 @@ pub mod sift { // @@protoc_insertion_point(sift.unit.v2) } } + pub mod user_attributes { + // @@protoc_insertion_point(attribute:sift.user_attributes.v1) + pub mod v1 { + include!("sift.user_attributes.v1.rs"); + // @@protoc_insertion_point(sift.user_attributes.v1) + } + } pub mod user_defined_functions { // @@protoc_insertion_point(attribute:sift.user_defined_functions.v1) pub mod v1 { diff --git a/rust/crates/sift_rs/src/gen/sift.policies.v1.rs b/rust/crates/sift_rs/src/gen/sift.policies.v1.rs new file mode 100644 index 000000000..9380dff19 --- /dev/null +++ b/rust/crates/sift_rs/src/gen/sift.policies.v1.rs @@ -0,0 +1,125 @@ +// @generated +// This file is @generated by prost-build. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Policy { + #[prost(string, tag="1")] + pub policy_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + #[prost(string, optional, tag="3")] + pub description: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, tag="4")] + pub organization_id: ::prost::alloc::string::String, + #[prost(string, tag="5")] + pub created_by_user_id: ::prost::alloc::string::String, + #[prost(string, tag="6")] + pub modified_by_user_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="7")] + pub created_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(message, optional, tag="8")] + pub modified_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(message, optional, tag="9")] + pub configuration: ::core::option::Option, + #[prost(string, tag="10")] + pub policy_version_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="11")] + pub archived_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(bool, tag="12")] + pub is_archived: bool, + #[prost(int32, optional, tag="13")] + pub version: ::core::option::Option, + #[prost(string, optional, tag="14")] + pub version_notes: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag="15")] + pub generated_change_message: ::core::option::Option<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PolicyConfiguration { + #[prost(string, tag="1")] + pub cedar_policy: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetPolicyRequest { + #[prost(string, tag="1")] + pub policy_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetPolicyResponse { + #[prost(message, optional, tag="1")] + pub policy: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListPoliciesRequest { + #[prost(uint32, tag="1")] + pub page_size: u32, + #[prost(string, tag="2")] + pub page_token: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub filter: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub order_by: ::prost::alloc::string::String, + #[prost(bool, tag="6")] + pub include_archived: bool, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListPoliciesResponse { + #[prost(message, repeated, tag="1")] + pub policies: ::prost::alloc::vec::Vec, + #[prost(string, tag="2")] + pub next_page_token: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreatePolicyRequest { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + #[prost(string, optional, tag="2")] + pub description: ::core::option::Option<::prost::alloc::string::String>, + #[prost(message, optional, tag="3")] + pub configuration: ::core::option::Option, + #[prost(string, optional, tag="4")] + pub version_notes: ::core::option::Option<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreatePolicyResponse { + #[prost(message, optional, tag="1")] + pub policy: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdatePolicyRequest { + #[prost(message, optional, tag="1")] + pub policy: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub update_mask: ::core::option::Option<::pbjson_types::FieldMask>, + #[prost(string, optional, tag="3")] + pub version_notes: ::core::option::Option<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdatePolicyResponse { + #[prost(message, optional, tag="1")] + pub policy: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArchivePolicyRequest { + #[prost(string, tag="1")] + pub policy_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArchivePolicyResponse { + #[prost(message, optional, tag="1")] + pub policy: ::core::option::Option, +} +include!("sift.policies.v1.tonic.rs"); +include!("sift.policies.v1.serde.rs"); +// @@protoc_insertion_point(module) \ No newline at end of file diff --git a/rust/crates/sift_rs/src/gen/sift.policies.v1.serde.rs b/rust/crates/sift_rs/src/gen/sift.policies.v1.serde.rs new file mode 100644 index 000000000..b0c341571 --- /dev/null +++ b/rust/crates/sift_rs/src/gen/sift.policies.v1.serde.rs @@ -0,0 +1,1527 @@ +// @generated +impl serde::Serialize for ArchivePolicyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.policy_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.ArchivePolicyRequest", len)?; + if !self.policy_id.is_empty() { + struct_ser.serialize_field("policyId", &self.policy_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchivePolicyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "policy_id", + "policyId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + PolicyId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "policyId" | "policy_id" => Ok(GeneratedField::PolicyId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchivePolicyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.ArchivePolicyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut policy_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::PolicyId => { + if policy_id__.is_some() { + return Err(serde::de::Error::duplicate_field("policyId")); + } + policy_id__ = Some(map_.next_value()?); + } + } + } + Ok(ArchivePolicyRequest { + policy_id: policy_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.ArchivePolicyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ArchivePolicyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.policy.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.ArchivePolicyResponse", len)?; + if let Some(v) = self.policy.as_ref() { + struct_ser.serialize_field("policy", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchivePolicyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "policy", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Policy, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "policy" => Ok(GeneratedField::Policy), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchivePolicyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.ArchivePolicyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut policy__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Policy => { + if policy__.is_some() { + return Err(serde::de::Error::duplicate_field("policy")); + } + policy__ = map_.next_value()?; + } + } + } + Ok(ArchivePolicyResponse { + policy: policy__, + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.ArchivePolicyResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreatePolicyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.name.is_empty() { + len += 1; + } + if self.description.is_some() { + len += 1; + } + if self.configuration.is_some() { + len += 1; + } + if self.version_notes.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.CreatePolicyRequest", len)?; + if !self.name.is_empty() { + struct_ser.serialize_field("name", &self.name)?; + } + if let Some(v) = self.description.as_ref() { + struct_ser.serialize_field("description", v)?; + } + if let Some(v) = self.configuration.as_ref() { + struct_ser.serialize_field("configuration", v)?; + } + if let Some(v) = self.version_notes.as_ref() { + struct_ser.serialize_field("versionNotes", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreatePolicyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "name", + "description", + "configuration", + "version_notes", + "versionNotes", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Name, + Description, + Configuration, + VersionNotes, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "name" => Ok(GeneratedField::Name), + "description" => Ok(GeneratedField::Description), + "configuration" => Ok(GeneratedField::Configuration), + "versionNotes" | "version_notes" => Ok(GeneratedField::VersionNotes), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreatePolicyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.CreatePolicyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut name__ = None; + let mut description__ = None; + let mut configuration__ = None; + let mut version_notes__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Name => { + if name__.is_some() { + return Err(serde::de::Error::duplicate_field("name")); + } + name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = map_.next_value()?; + } + GeneratedField::Configuration => { + if configuration__.is_some() { + return Err(serde::de::Error::duplicate_field("configuration")); + } + configuration__ = map_.next_value()?; + } + GeneratedField::VersionNotes => { + if version_notes__.is_some() { + return Err(serde::de::Error::duplicate_field("versionNotes")); + } + version_notes__ = map_.next_value()?; + } + } + } + Ok(CreatePolicyRequest { + name: name__.unwrap_or_default(), + description: description__, + configuration: configuration__, + version_notes: version_notes__, + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.CreatePolicyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreatePolicyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.policy.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.CreatePolicyResponse", len)?; + if let Some(v) = self.policy.as_ref() { + struct_ser.serialize_field("policy", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreatePolicyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "policy", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Policy, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "policy" => Ok(GeneratedField::Policy), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreatePolicyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.CreatePolicyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut policy__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Policy => { + if policy__.is_some() { + return Err(serde::de::Error::duplicate_field("policy")); + } + policy__ = map_.next_value()?; + } + } + } + Ok(CreatePolicyResponse { + policy: policy__, + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.CreatePolicyResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetPolicyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.policy_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.GetPolicyRequest", len)?; + if !self.policy_id.is_empty() { + struct_ser.serialize_field("policyId", &self.policy_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetPolicyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "policy_id", + "policyId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + PolicyId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "policyId" | "policy_id" => Ok(GeneratedField::PolicyId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetPolicyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.GetPolicyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut policy_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::PolicyId => { + if policy_id__.is_some() { + return Err(serde::de::Error::duplicate_field("policyId")); + } + policy_id__ = Some(map_.next_value()?); + } + } + } + Ok(GetPolicyRequest { + policy_id: policy_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.GetPolicyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetPolicyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.policy.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.GetPolicyResponse", len)?; + if let Some(v) = self.policy.as_ref() { + struct_ser.serialize_field("policy", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetPolicyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "policy", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Policy, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "policy" => Ok(GeneratedField::Policy), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetPolicyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.GetPolicyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut policy__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Policy => { + if policy__.is_some() { + return Err(serde::de::Error::duplicate_field("policy")); + } + policy__ = map_.next_value()?; + } + } + } + Ok(GetPolicyResponse { + policy: policy__, + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.GetPolicyResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListPoliciesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.page_size != 0 { + len += 1; + } + if !self.page_token.is_empty() { + len += 1; + } + if !self.filter.is_empty() { + len += 1; + } + if !self.order_by.is_empty() { + len += 1; + } + if self.include_archived { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.ListPoliciesRequest", len)?; + if self.page_size != 0 { + struct_ser.serialize_field("pageSize", &self.page_size)?; + } + if !self.page_token.is_empty() { + struct_ser.serialize_field("pageToken", &self.page_token)?; + } + if !self.filter.is_empty() { + struct_ser.serialize_field("filter", &self.filter)?; + } + if !self.order_by.is_empty() { + struct_ser.serialize_field("orderBy", &self.order_by)?; + } + if self.include_archived { + struct_ser.serialize_field("includeArchived", &self.include_archived)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListPoliciesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "page_size", + "pageSize", + "page_token", + "pageToken", + "filter", + "order_by", + "orderBy", + "include_archived", + "includeArchived", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + PageSize, + PageToken, + Filter, + OrderBy, + IncludeArchived, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "pageSize" | "page_size" => Ok(GeneratedField::PageSize), + "pageToken" | "page_token" => Ok(GeneratedField::PageToken), + "filter" => Ok(GeneratedField::Filter), + "orderBy" | "order_by" => Ok(GeneratedField::OrderBy), + "includeArchived" | "include_archived" => Ok(GeneratedField::IncludeArchived), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListPoliciesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.ListPoliciesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut page_size__ = None; + let mut page_token__ = None; + let mut filter__ = None; + let mut order_by__ = None; + let mut include_archived__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::PageSize => { + if page_size__.is_some() { + return Err(serde::de::Error::duplicate_field("pageSize")); + } + page_size__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::PageToken => { + if page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("pageToken")); + } + page_token__ = Some(map_.next_value()?); + } + GeneratedField::Filter => { + if filter__.is_some() { + return Err(serde::de::Error::duplicate_field("filter")); + } + filter__ = Some(map_.next_value()?); + } + GeneratedField::OrderBy => { + if order_by__.is_some() { + return Err(serde::de::Error::duplicate_field("orderBy")); + } + order_by__ = Some(map_.next_value()?); + } + GeneratedField::IncludeArchived => { + if include_archived__.is_some() { + return Err(serde::de::Error::duplicate_field("includeArchived")); + } + include_archived__ = Some(map_.next_value()?); + } + } + } + Ok(ListPoliciesRequest { + page_size: page_size__.unwrap_or_default(), + page_token: page_token__.unwrap_or_default(), + filter: filter__.unwrap_or_default(), + order_by: order_by__.unwrap_or_default(), + include_archived: include_archived__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.ListPoliciesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListPoliciesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.policies.is_empty() { + len += 1; + } + if !self.next_page_token.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.ListPoliciesResponse", len)?; + if !self.policies.is_empty() { + struct_ser.serialize_field("policies", &self.policies)?; + } + if !self.next_page_token.is_empty() { + struct_ser.serialize_field("nextPageToken", &self.next_page_token)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListPoliciesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "policies", + "next_page_token", + "nextPageToken", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Policies, + NextPageToken, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "policies" => Ok(GeneratedField::Policies), + "nextPageToken" | "next_page_token" => Ok(GeneratedField::NextPageToken), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListPoliciesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.ListPoliciesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut policies__ = None; + let mut next_page_token__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Policies => { + if policies__.is_some() { + return Err(serde::de::Error::duplicate_field("policies")); + } + policies__ = Some(map_.next_value()?); + } + GeneratedField::NextPageToken => { + if next_page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("nextPageToken")); + } + next_page_token__ = Some(map_.next_value()?); + } + } + } + Ok(ListPoliciesResponse { + policies: policies__.unwrap_or_default(), + next_page_token: next_page_token__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.ListPoliciesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for Policy { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.policy_id.is_empty() { + len += 1; + } + if !self.name.is_empty() { + len += 1; + } + if self.description.is_some() { + len += 1; + } + if !self.organization_id.is_empty() { + len += 1; + } + if !self.created_by_user_id.is_empty() { + len += 1; + } + if !self.modified_by_user_id.is_empty() { + len += 1; + } + if self.created_date.is_some() { + len += 1; + } + if self.modified_date.is_some() { + len += 1; + } + if self.configuration.is_some() { + len += 1; + } + if !self.policy_version_id.is_empty() { + len += 1; + } + if self.archived_date.is_some() { + len += 1; + } + if self.is_archived { + len += 1; + } + if self.version.is_some() { + len += 1; + } + if self.version_notes.is_some() { + len += 1; + } + if self.generated_change_message.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.Policy", len)?; + if !self.policy_id.is_empty() { + struct_ser.serialize_field("policyId", &self.policy_id)?; + } + if !self.name.is_empty() { + struct_ser.serialize_field("name", &self.name)?; + } + if let Some(v) = self.description.as_ref() { + struct_ser.serialize_field("description", v)?; + } + if !self.organization_id.is_empty() { + struct_ser.serialize_field("organizationId", &self.organization_id)?; + } + if !self.created_by_user_id.is_empty() { + struct_ser.serialize_field("createdByUserId", &self.created_by_user_id)?; + } + if !self.modified_by_user_id.is_empty() { + struct_ser.serialize_field("modifiedByUserId", &self.modified_by_user_id)?; + } + if let Some(v) = self.created_date.as_ref() { + struct_ser.serialize_field("createdDate", v)?; + } + if let Some(v) = self.modified_date.as_ref() { + struct_ser.serialize_field("modifiedDate", v)?; + } + if let Some(v) = self.configuration.as_ref() { + struct_ser.serialize_field("configuration", v)?; + } + if !self.policy_version_id.is_empty() { + struct_ser.serialize_field("policyVersionId", &self.policy_version_id)?; + } + if let Some(v) = self.archived_date.as_ref() { + struct_ser.serialize_field("archivedDate", v)?; + } + if self.is_archived { + struct_ser.serialize_field("isArchived", &self.is_archived)?; + } + if let Some(v) = self.version.as_ref() { + struct_ser.serialize_field("version", v)?; + } + if let Some(v) = self.version_notes.as_ref() { + struct_ser.serialize_field("versionNotes", v)?; + } + if let Some(v) = self.generated_change_message.as_ref() { + struct_ser.serialize_field("generatedChangeMessage", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for Policy { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "policy_id", + "policyId", + "name", + "description", + "organization_id", + "organizationId", + "created_by_user_id", + "createdByUserId", + "modified_by_user_id", + "modifiedByUserId", + "created_date", + "createdDate", + "modified_date", + "modifiedDate", + "configuration", + "policy_version_id", + "policyVersionId", + "archived_date", + "archivedDate", + "is_archived", + "isArchived", + "version", + "version_notes", + "versionNotes", + "generated_change_message", + "generatedChangeMessage", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + PolicyId, + Name, + Description, + OrganizationId, + CreatedByUserId, + ModifiedByUserId, + CreatedDate, + ModifiedDate, + Configuration, + PolicyVersionId, + ArchivedDate, + IsArchived, + Version, + VersionNotes, + GeneratedChangeMessage, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "policyId" | "policy_id" => Ok(GeneratedField::PolicyId), + "name" => Ok(GeneratedField::Name), + "description" => Ok(GeneratedField::Description), + "organizationId" | "organization_id" => Ok(GeneratedField::OrganizationId), + "createdByUserId" | "created_by_user_id" => Ok(GeneratedField::CreatedByUserId), + "modifiedByUserId" | "modified_by_user_id" => Ok(GeneratedField::ModifiedByUserId), + "createdDate" | "created_date" => Ok(GeneratedField::CreatedDate), + "modifiedDate" | "modified_date" => Ok(GeneratedField::ModifiedDate), + "configuration" => Ok(GeneratedField::Configuration), + "policyVersionId" | "policy_version_id" => Ok(GeneratedField::PolicyVersionId), + "archivedDate" | "archived_date" => Ok(GeneratedField::ArchivedDate), + "isArchived" | "is_archived" => Ok(GeneratedField::IsArchived), + "version" => Ok(GeneratedField::Version), + "versionNotes" | "version_notes" => Ok(GeneratedField::VersionNotes), + "generatedChangeMessage" | "generated_change_message" => Ok(GeneratedField::GeneratedChangeMessage), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = Policy; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.Policy") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut policy_id__ = None; + let mut name__ = None; + let mut description__ = None; + let mut organization_id__ = None; + let mut created_by_user_id__ = None; + let mut modified_by_user_id__ = None; + let mut created_date__ = None; + let mut modified_date__ = None; + let mut configuration__ = None; + let mut policy_version_id__ = None; + let mut archived_date__ = None; + let mut is_archived__ = None; + let mut version__ = None; + let mut version_notes__ = None; + let mut generated_change_message__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::PolicyId => { + if policy_id__.is_some() { + return Err(serde::de::Error::duplicate_field("policyId")); + } + policy_id__ = Some(map_.next_value()?); + } + GeneratedField::Name => { + if name__.is_some() { + return Err(serde::de::Error::duplicate_field("name")); + } + name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = map_.next_value()?; + } + GeneratedField::OrganizationId => { + if organization_id__.is_some() { + return Err(serde::de::Error::duplicate_field("organizationId")); + } + organization_id__ = Some(map_.next_value()?); + } + GeneratedField::CreatedByUserId => { + if created_by_user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("createdByUserId")); + } + created_by_user_id__ = Some(map_.next_value()?); + } + GeneratedField::ModifiedByUserId => { + if modified_by_user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("modifiedByUserId")); + } + modified_by_user_id__ = Some(map_.next_value()?); + } + GeneratedField::CreatedDate => { + if created_date__.is_some() { + return Err(serde::de::Error::duplicate_field("createdDate")); + } + created_date__ = map_.next_value()?; + } + GeneratedField::ModifiedDate => { + if modified_date__.is_some() { + return Err(serde::de::Error::duplicate_field("modifiedDate")); + } + modified_date__ = map_.next_value()?; + } + GeneratedField::Configuration => { + if configuration__.is_some() { + return Err(serde::de::Error::duplicate_field("configuration")); + } + configuration__ = map_.next_value()?; + } + GeneratedField::PolicyVersionId => { + if policy_version_id__.is_some() { + return Err(serde::de::Error::duplicate_field("policyVersionId")); + } + policy_version_id__ = Some(map_.next_value()?); + } + GeneratedField::ArchivedDate => { + if archived_date__.is_some() { + return Err(serde::de::Error::duplicate_field("archivedDate")); + } + archived_date__ = map_.next_value()?; + } + GeneratedField::IsArchived => { + if is_archived__.is_some() { + return Err(serde::de::Error::duplicate_field("isArchived")); + } + is_archived__ = Some(map_.next_value()?); + } + GeneratedField::Version => { + if version__.is_some() { + return Err(serde::de::Error::duplicate_field("version")); + } + version__ = + map_.next_value::<::std::option::Option<::pbjson::private::NumberDeserialize<_>>>()?.map(|x| x.0) + ; + } + GeneratedField::VersionNotes => { + if version_notes__.is_some() { + return Err(serde::de::Error::duplicate_field("versionNotes")); + } + version_notes__ = map_.next_value()?; + } + GeneratedField::GeneratedChangeMessage => { + if generated_change_message__.is_some() { + return Err(serde::de::Error::duplicate_field("generatedChangeMessage")); + } + generated_change_message__ = map_.next_value()?; + } + } + } + Ok(Policy { + policy_id: policy_id__.unwrap_or_default(), + name: name__.unwrap_or_default(), + description: description__, + organization_id: organization_id__.unwrap_or_default(), + created_by_user_id: created_by_user_id__.unwrap_or_default(), + modified_by_user_id: modified_by_user_id__.unwrap_or_default(), + created_date: created_date__, + modified_date: modified_date__, + configuration: configuration__, + policy_version_id: policy_version_id__.unwrap_or_default(), + archived_date: archived_date__, + is_archived: is_archived__.unwrap_or_default(), + version: version__, + version_notes: version_notes__, + generated_change_message: generated_change_message__, + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.Policy", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for PolicyConfiguration { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.cedar_policy.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.PolicyConfiguration", len)?; + if !self.cedar_policy.is_empty() { + struct_ser.serialize_field("cedarPolicy", &self.cedar_policy)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for PolicyConfiguration { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "cedar_policy", + "cedarPolicy", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + CedarPolicy, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "cedarPolicy" | "cedar_policy" => Ok(GeneratedField::CedarPolicy), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = PolicyConfiguration; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.PolicyConfiguration") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut cedar_policy__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::CedarPolicy => { + if cedar_policy__.is_some() { + return Err(serde::de::Error::duplicate_field("cedarPolicy")); + } + cedar_policy__ = Some(map_.next_value()?); + } + } + } + Ok(PolicyConfiguration { + cedar_policy: cedar_policy__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.PolicyConfiguration", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UpdatePolicyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.policy.is_some() { + len += 1; + } + if self.update_mask.is_some() { + len += 1; + } + if self.version_notes.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.UpdatePolicyRequest", len)?; + if let Some(v) = self.policy.as_ref() { + struct_ser.serialize_field("policy", v)?; + } + if let Some(v) = self.update_mask.as_ref() { + struct_ser.serialize_field("updateMask", v)?; + } + if let Some(v) = self.version_notes.as_ref() { + struct_ser.serialize_field("versionNotes", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UpdatePolicyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "policy", + "update_mask", + "updateMask", + "version_notes", + "versionNotes", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Policy, + UpdateMask, + VersionNotes, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "policy" => Ok(GeneratedField::Policy), + "updateMask" | "update_mask" => Ok(GeneratedField::UpdateMask), + "versionNotes" | "version_notes" => Ok(GeneratedField::VersionNotes), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UpdatePolicyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.UpdatePolicyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut policy__ = None; + let mut update_mask__ = None; + let mut version_notes__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Policy => { + if policy__.is_some() { + return Err(serde::de::Error::duplicate_field("policy")); + } + policy__ = map_.next_value()?; + } + GeneratedField::UpdateMask => { + if update_mask__.is_some() { + return Err(serde::de::Error::duplicate_field("updateMask")); + } + update_mask__ = map_.next_value()?; + } + GeneratedField::VersionNotes => { + if version_notes__.is_some() { + return Err(serde::de::Error::duplicate_field("versionNotes")); + } + version_notes__ = map_.next_value()?; + } + } + } + Ok(UpdatePolicyRequest { + policy: policy__, + update_mask: update_mask__, + version_notes: version_notes__, + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.UpdatePolicyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UpdatePolicyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.policy.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.policies.v1.UpdatePolicyResponse", len)?; + if let Some(v) = self.policy.as_ref() { + struct_ser.serialize_field("policy", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UpdatePolicyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "policy", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Policy, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "policy" => Ok(GeneratedField::Policy), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UpdatePolicyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.policies.v1.UpdatePolicyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut policy__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Policy => { + if policy__.is_some() { + return Err(serde::de::Error::duplicate_field("policy")); + } + policy__ = map_.next_value()?; + } + } + } + Ok(UpdatePolicyResponse { + policy: policy__, + }) + } + } + deserializer.deserialize_struct("sift.policies.v1.UpdatePolicyResponse", FIELDS, GeneratedVisitor) + } +} diff --git a/rust/crates/sift_rs/src/gen/sift.policies.v1.tonic.rs b/rust/crates/sift_rs/src/gen/sift.policies.v1.tonic.rs new file mode 100644 index 000000000..1d61c8831 --- /dev/null +++ b/rust/crates/sift_rs/src/gen/sift.policies.v1.tonic.rs @@ -0,0 +1,614 @@ +// @generated +/// Generated client implementations. +pub mod policy_service_client { + #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + use tonic::codegen::*; + use tonic::codegen::http::Uri; + #[derive(Debug, Clone)] + pub struct PolicyServiceClient { + inner: tonic::client::Grpc, + } + impl PolicyServiceClient { + /// Attempt to create a new client by connecting to a given endpoint. + pub async fn connect(dst: D) -> Result + where + D: TryInto, + D::Error: Into, + { + let conn = tonic::transport::Endpoint::new(dst)?.connect().await?; + Ok(Self::new(conn)) + } + } + impl PolicyServiceClient + where + T: tonic::client::GrpcService, + T::Error: Into, + T::ResponseBody: Body + Send + 'static, + ::Error: Into + Send, + { + pub fn new(inner: T) -> Self { + let inner = tonic::client::Grpc::new(inner); + Self { inner } + } + pub fn with_origin(inner: T, origin: Uri) -> Self { + let inner = tonic::client::Grpc::with_origin(inner, origin); + Self { inner } + } + pub fn with_interceptor( + inner: T, + interceptor: F, + ) -> PolicyServiceClient> + where + F: tonic::service::Interceptor, + T::ResponseBody: Default, + T: tonic::codegen::Service< + http::Request, + Response = http::Response< + >::ResponseBody, + >, + >, + , + >>::Error: Into + Send + Sync, + { + PolicyServiceClient::new(InterceptedService::new(inner, interceptor)) + } + /// Compress requests with the given encoding. + /// + /// This requires the server to support it otherwise it might respond with an + /// error. + #[must_use] + pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.inner = self.inner.send_compressed(encoding); + self + } + /// Enable decompressing responses. + #[must_use] + pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.inner = self.inner.accept_compressed(encoding); + self + } + /// Limits the maximum size of a decoded message. + /// + /// Default: `4MB` + #[must_use] + pub fn max_decoding_message_size(mut self, limit: usize) -> Self { + self.inner = self.inner.max_decoding_message_size(limit); + self + } + /// Limits the maximum size of an encoded message. + /// + /// Default: `usize::MAX` + #[must_use] + pub fn max_encoding_message_size(mut self, limit: usize) -> Self { + self.inner = self.inner.max_encoding_message_size(limit); + self + } + pub async fn get_policy( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.policies.v1.PolicyService/GetPolicy", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert(GrpcMethod::new("sift.policies.v1.PolicyService", "GetPolicy")); + self.inner.unary(req, path, codec).await + } + pub async fn list_policies( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.policies.v1.PolicyService/ListPolicies", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new("sift.policies.v1.PolicyService", "ListPolicies"), + ); + self.inner.unary(req, path, codec).await + } + pub async fn create_policy( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.policies.v1.PolicyService/CreatePolicy", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new("sift.policies.v1.PolicyService", "CreatePolicy"), + ); + self.inner.unary(req, path, codec).await + } + pub async fn update_policy( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.policies.v1.PolicyService/UpdatePolicy", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new("sift.policies.v1.PolicyService", "UpdatePolicy"), + ); + self.inner.unary(req, path, codec).await + } + pub async fn archive_policy( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.policies.v1.PolicyService/ArchivePolicy", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new("sift.policies.v1.PolicyService", "ArchivePolicy"), + ); + self.inner.unary(req, path, codec).await + } + } +} +/// Generated server implementations. +pub mod policy_service_server { + #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + use tonic::codegen::*; + /// Generated trait containing gRPC methods that should be implemented for use with PolicyServiceServer. + #[async_trait] + pub trait PolicyService: Send + Sync + 'static { + async fn get_policy( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn list_policies( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn create_policy( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn update_policy( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn archive_policy( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + } + #[derive(Debug)] + pub struct PolicyServiceServer { + inner: _Inner, + accept_compression_encodings: EnabledCompressionEncodings, + send_compression_encodings: EnabledCompressionEncodings, + max_decoding_message_size: Option, + max_encoding_message_size: Option, + } + struct _Inner(Arc); + impl PolicyServiceServer { + pub fn new(inner: T) -> Self { + Self::from_arc(Arc::new(inner)) + } + pub fn from_arc(inner: Arc) -> Self { + let inner = _Inner(inner); + Self { + inner, + accept_compression_encodings: Default::default(), + send_compression_encodings: Default::default(), + max_decoding_message_size: None, + max_encoding_message_size: None, + } + } + pub fn with_interceptor( + inner: T, + interceptor: F, + ) -> InterceptedService + where + F: tonic::service::Interceptor, + { + InterceptedService::new(Self::new(inner), interceptor) + } + /// Enable decompressing requests with the given encoding. + #[must_use] + pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.accept_compression_encodings.enable(encoding); + self + } + /// Compress responses with the given encoding, if the client supports it. + #[must_use] + pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.send_compression_encodings.enable(encoding); + self + } + /// Limits the maximum size of a decoded message. + /// + /// Default: `4MB` + #[must_use] + pub fn max_decoding_message_size(mut self, limit: usize) -> Self { + self.max_decoding_message_size = Some(limit); + self + } + /// Limits the maximum size of an encoded message. + /// + /// Default: `usize::MAX` + #[must_use] + pub fn max_encoding_message_size(mut self, limit: usize) -> Self { + self.max_encoding_message_size = Some(limit); + self + } + } + impl tonic::codegen::Service> for PolicyServiceServer + where + T: PolicyService, + B: Body + Send + 'static, + B::Error: Into + Send + 'static, + { + type Response = http::Response; + type Error = std::convert::Infallible; + type Future = BoxFuture; + fn poll_ready( + &mut self, + _cx: &mut Context<'_>, + ) -> Poll> { + Poll::Ready(Ok(())) + } + fn call(&mut self, req: http::Request) -> Self::Future { + let inner = self.inner.clone(); + match req.uri().path() { + "/sift.policies.v1.PolicyService/GetPolicy" => { + #[allow(non_camel_case_types)] + struct GetPolicySvc(pub Arc); + impl< + T: PolicyService, + > tonic::server::UnaryService + for GetPolicySvc { + type Response = super::GetPolicyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::get_policy(&inner, request).await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = GetPolicySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.policies.v1.PolicyService/ListPolicies" => { + #[allow(non_camel_case_types)] + struct ListPoliciesSvc(pub Arc); + impl< + T: PolicyService, + > tonic::server::UnaryService + for ListPoliciesSvc { + type Response = super::ListPoliciesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::list_policies(&inner, request).await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ListPoliciesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.policies.v1.PolicyService/CreatePolicy" => { + #[allow(non_camel_case_types)] + struct CreatePolicySvc(pub Arc); + impl< + T: PolicyService, + > tonic::server::UnaryService + for CreatePolicySvc { + type Response = super::CreatePolicyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::create_policy(&inner, request).await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = CreatePolicySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.policies.v1.PolicyService/UpdatePolicy" => { + #[allow(non_camel_case_types)] + struct UpdatePolicySvc(pub Arc); + impl< + T: PolicyService, + > tonic::server::UnaryService + for UpdatePolicySvc { + type Response = super::UpdatePolicyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::update_policy(&inner, request).await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = UpdatePolicySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.policies.v1.PolicyService/ArchivePolicy" => { + #[allow(non_camel_case_types)] + struct ArchivePolicySvc(pub Arc); + impl< + T: PolicyService, + > tonic::server::UnaryService + for ArchivePolicySvc { + type Response = super::ArchivePolicyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::archive_policy(&inner, request).await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ArchivePolicySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + _ => { + Box::pin(async move { + Ok( + http::Response::builder() + .status(200) + .header("grpc-status", "12") + .header("content-type", "application/grpc") + .body(empty_body()) + .unwrap(), + ) + }) + } + } + } + } + impl Clone for PolicyServiceServer { + fn clone(&self) -> Self { + let inner = self.inner.clone(); + Self { + inner, + accept_compression_encodings: self.accept_compression_encodings, + send_compression_encodings: self.send_compression_encodings, + max_decoding_message_size: self.max_decoding_message_size, + max_encoding_message_size: self.max_encoding_message_size, + } + } + } + impl Clone for _Inner { + fn clone(&self) -> Self { + Self(Arc::clone(&self.0)) + } + } + impl std::fmt::Debug for _Inner { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{:?}", self.0) + } + } + impl tonic::server::NamedService for PolicyServiceServer { + const NAME: &'static str = "sift.policies.v1.PolicyService"; + } +} diff --git a/rust/crates/sift_rs/src/gen/sift.resource_attribute.v1.rs b/rust/crates/sift_rs/src/gen/sift.resource_attribute.v1.rs new file mode 100644 index 000000000..5baccfb16 --- /dev/null +++ b/rust/crates/sift_rs/src/gen/sift.resource_attribute.v1.rs @@ -0,0 +1,562 @@ +// @generated +// This file is @generated by prost-build. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ResourceAttributeKey { + #[prost(string, tag="1")] + pub resource_attribute_key_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub organization_id: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub display_name: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub description: ::prost::alloc::string::String, + #[prost(enumeration="ResourceAttributeKeyType", tag="5")] + pub r#type: i32, + #[prost(message, optional, tag="6")] + pub created_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(string, tag="7")] + pub created_by_user_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="8")] + pub modified_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(string, tag="9")] + pub modified_by_user_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="10")] + pub archived_date: ::core::option::Option<::pbjson_types::Timestamp>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ResourceAttributeEnumValue { + #[prost(string, tag="1")] + pub resource_attribute_enum_value_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub resource_attribute_key_id: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub display_name: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub description: ::prost::alloc::string::String, + #[prost(message, optional, tag="5")] + pub created_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(string, tag="6")] + pub created_by_user_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="7")] + pub modified_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(string, tag="8")] + pub modified_by_user_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="9")] + pub archived_date: ::core::option::Option<::pbjson_types::Timestamp>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ResourceAttribute { + #[prost(string, tag="1")] + pub resource_attribute_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub organization_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="3")] + pub entity: ::core::option::Option, + #[prost(string, tag="4")] + pub resource_attribute_key_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="5")] + pub key: ::core::option::Option, + #[prost(message, optional, tag="9")] + pub enum_value_details: ::core::option::Option, + #[prost(message, optional, tag="10")] + pub created_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(string, tag="11")] + pub created_by_user_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="12")] + pub archived_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(oneof="resource_attribute::Value", tags="6, 7, 8")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `ResourceAttribute`. +pub mod resource_attribute { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + #[prost(string, tag="6")] + ResourceAttributeEnumValueId(::prost::alloc::string::String), + #[prost(bool, tag="7")] + BooleanValue(bool), + #[prost(double, tag="8")] + NumberValue(f64), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ResourceAttributeEntityIdentifier { + #[prost(string, tag="1")] + pub entity_id: ::prost::alloc::string::String, + #[prost(enumeration="ResourceAttributeEntityType", tag="2")] + pub entity_type: i32, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateResourceAttributeKeyRequest { + #[prost(string, tag="1")] + pub display_name: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub description: ::prost::alloc::string::String, + #[prost(enumeration="ResourceAttributeKeyType", tag="3")] + pub r#type: i32, + #[prost(message, repeated, tag="4")] + pub initial_enum_values: ::prost::alloc::vec::Vec, +} +/// Nested message and enum types in `CreateResourceAttributeKeyRequest`. +pub mod create_resource_attribute_key_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct InitialEnumValue { + #[prost(string, tag="1")] + pub display_name: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub description: ::prost::alloc::string::String, + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateResourceAttributeKeyResponse { + #[prost(message, optional, tag="1")] + pub resource_attribute_key: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub enum_values: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetResourceAttributeKeyRequest { + #[prost(string, tag="1")] + pub resource_attribute_key_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetResourceAttributeKeyResponse { + #[prost(message, optional, tag="1")] + pub resource_attribute_key: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListResourceAttributeKeysRequest { + #[prost(uint32, tag="1")] + pub page_size: u32, + #[prost(string, tag="2")] + pub page_token: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub filter: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub order_by: ::prost::alloc::string::String, + #[prost(bool, tag="5")] + pub include_archived: bool, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListResourceAttributeKeysResponse { + #[prost(message, repeated, tag="1")] + pub resource_attribute_keys: ::prost::alloc::vec::Vec, + #[prost(string, tag="2")] + pub next_page_token: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateResourceAttributeKeyRequest { + #[prost(string, tag="1")] + pub resource_attribute_key_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub display_name: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub description: ::prost::alloc::string::String, + #[prost(message, optional, tag="4")] + pub update_mask: ::core::option::Option<::pbjson_types::FieldMask>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateResourceAttributeKeyResponse { + #[prost(message, optional, tag="1")] + pub resource_attribute_key: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArchiveResourceAttributeKeyRequest { + #[prost(string, tag="1")] + pub resource_attribute_key_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct ArchiveResourceAttributeKeyResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UnarchiveResourceAttributeKeyRequest { + #[prost(string, tag="1")] + pub resource_attribute_key_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct UnarchiveResourceAttributeKeyResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BatchArchiveResourceAttributeKeysRequest { + #[prost(string, repeated, tag="1")] + pub resource_attribute_key_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct BatchArchiveResourceAttributeKeysResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BatchUnarchiveResourceAttributeKeysRequest { + #[prost(string, repeated, tag="1")] + pub resource_attribute_key_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct BatchUnarchiveResourceAttributeKeysResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateResourceAttributeEnumValueRequest { + #[prost(string, tag="1")] + pub resource_attribute_key_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub display_name: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub description: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateResourceAttributeEnumValueResponse { + #[prost(message, optional, tag="1")] + pub resource_attribute_enum_value: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetResourceAttributeEnumValueRequest { + #[prost(string, tag="1")] + pub resource_attribute_enum_value_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetResourceAttributeEnumValueResponse { + #[prost(message, optional, tag="1")] + pub resource_attribute_enum_value: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListResourceAttributeEnumValuesRequest { + #[prost(string, tag="1")] + pub resource_attribute_key_id: ::prost::alloc::string::String, + #[prost(uint32, tag="2")] + pub page_size: u32, + #[prost(string, tag="3")] + pub page_token: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub filter: ::prost::alloc::string::String, + #[prost(string, tag="5")] + pub order_by: ::prost::alloc::string::String, + #[prost(bool, tag="6")] + pub include_archived: bool, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListResourceAttributeEnumValuesResponse { + #[prost(message, repeated, tag="1")] + pub resource_attribute_enum_values: ::prost::alloc::vec::Vec, + #[prost(string, tag="2")] + pub next_page_token: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateResourceAttributeEnumValueRequest { + #[prost(string, tag="1")] + pub resource_attribute_enum_value_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub display_name: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub description: ::prost::alloc::string::String, + #[prost(message, optional, tag="4")] + pub update_mask: ::core::option::Option<::pbjson_types::FieldMask>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateResourceAttributeEnumValueResponse { + #[prost(message, optional, tag="1")] + pub resource_attribute_enum_value: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArchiveResourceAttributeEnumValueRequest { + #[prost(string, tag="1")] + pub archived_enum_value_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub replacement_enum_value_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct ArchiveResourceAttributeEnumValueResponse { + #[prost(int32, tag="1")] + pub resource_attributes_migrated: i32, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UnarchiveResourceAttributeEnumValueRequest { + #[prost(string, tag="1")] + pub resource_attribute_enum_value_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct UnarchiveResourceAttributeEnumValueResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BatchArchiveResourceAttributeEnumValuesRequest { + #[prost(message, repeated, tag="1")] + pub archival_requests: ::prost::alloc::vec::Vec, +} +/// Nested message and enum types in `BatchArchiveResourceAttributeEnumValuesRequest`. +pub mod batch_archive_resource_attribute_enum_values_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct EnumValueArchival { + #[prost(string, tag="1")] + pub archived_enum_value_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub replacement_enum_value_id: ::prost::alloc::string::String, + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct BatchArchiveResourceAttributeEnumValuesResponse { + #[prost(int32, tag="1")] + pub total_resource_attributes_migrated: i32, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BatchUnarchiveResourceAttributeEnumValuesRequest { + #[prost(string, repeated, tag="1")] + pub resource_attribute_enum_value_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct BatchUnarchiveResourceAttributeEnumValuesResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateResourceAttributeRequest { + #[prost(message, optional, tag="1")] + pub entity: ::core::option::Option, + #[prost(string, tag="2")] + pub resource_attribute_key_id: ::prost::alloc::string::String, + #[prost(oneof="create_resource_attribute_request::Value", tags="3, 4, 5")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `CreateResourceAttributeRequest`. +pub mod create_resource_attribute_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + #[prost(string, tag="3")] + ResourceAttributeEnumValueId(::prost::alloc::string::String), + #[prost(bool, tag="4")] + BooleanValue(bool), + #[prost(double, tag="5")] + NumberValue(f64), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateResourceAttributeResponse { + #[prost(message, optional, tag="1")] + pub resource_attribute: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BatchCreateResourceAttributesRequest { + #[prost(string, tag="1")] + pub resource_attribute_key_id: ::prost::alloc::string::String, + #[prost(message, repeated, tag="5")] + pub entities: ::prost::alloc::vec::Vec, + #[prost(oneof="batch_create_resource_attributes_request::Value", tags="2, 3, 4")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `BatchCreateResourceAttributesRequest`. +pub mod batch_create_resource_attributes_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + #[prost(string, tag="2")] + ResourceAttributeEnumValueId(::prost::alloc::string::String), + #[prost(bool, tag="3")] + BooleanValue(bool), + #[prost(double, tag="4")] + NumberValue(f64), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BatchCreateResourceAttributesResponse { + #[prost(message, repeated, tag="1")] + pub resource_attributes: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetResourceAttributeRequest { + #[prost(string, tag="1")] + pub resource_attribute_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetResourceAttributeResponse { + #[prost(message, optional, tag="1")] + pub resource_attribute: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListResourceAttributesRequest { + #[prost(uint32, tag="1")] + pub page_size: u32, + #[prost(string, tag="2")] + pub page_token: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub filter: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub order_by: ::prost::alloc::string::String, + #[prost(bool, tag="5")] + pub include_archived: bool, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListResourceAttributesResponse { + #[prost(message, repeated, tag="1")] + pub resource_attributes: ::prost::alloc::vec::Vec, + #[prost(string, tag="2")] + pub next_page_token: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListResourceAttributesByEntityRequest { + #[prost(message, optional, tag="1")] + pub entity: ::core::option::Option, + #[prost(bool, tag="2")] + pub include_archived: bool, + #[prost(uint32, tag="3")] + pub page_size: u32, + #[prost(string, tag="4")] + pub page_token: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListResourceAttributesByEntityResponse { + #[prost(message, repeated, tag="1")] + pub resource_attributes: ::prost::alloc::vec::Vec, + #[prost(string, tag="2")] + pub next_page_token: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArchiveResourceAttributeRequest { + #[prost(string, tag="1")] + pub resource_attribute_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct ArchiveResourceAttributeResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UnarchiveResourceAttributeRequest { + #[prost(string, tag="1")] + pub resource_attribute_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct UnarchiveResourceAttributeResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BatchArchiveResourceAttributesRequest { + #[prost(string, repeated, tag="1")] + pub resource_attribute_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct BatchArchiveResourceAttributesResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BatchUnarchiveResourceAttributesRequest { + #[prost(string, repeated, tag="1")] + pub resource_attribute_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct BatchUnarchiveResourceAttributesResponse { +} +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum ResourceAttributeKeyType { + Unspecified = 0, + Enum = 1, + Boolean = 2, + Number = 3, + SetOfEnum = 4, +} +impl ResourceAttributeKeyType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ResourceAttributeKeyType::Unspecified => "RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED", + ResourceAttributeKeyType::Enum => "RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM", + ResourceAttributeKeyType::Boolean => "RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN", + ResourceAttributeKeyType::Number => "RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER", + ResourceAttributeKeyType::SetOfEnum => "RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED" => Some(Self::Unspecified), + "RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM" => Some(Self::Enum), + "RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN" => Some(Self::Boolean), + "RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER" => Some(Self::Number), + "RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM" => Some(Self::SetOfEnum), + _ => None, + } + } +} +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum ResourceAttributeEntityType { + Unspecified = 0, + Asset = 1, + Channel = 2, +} +impl ResourceAttributeEntityType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ResourceAttributeEntityType::Unspecified => "RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED", + ResourceAttributeEntityType::Asset => "RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET", + ResourceAttributeEntityType::Channel => "RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED" => Some(Self::Unspecified), + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET" => Some(Self::Asset), + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL" => Some(Self::Channel), + _ => None, + } + } +} +include!("sift.resource_attribute.v1.tonic.rs"); +include!("sift.resource_attribute.v1.serde.rs"); +// @@protoc_insertion_point(module) \ No newline at end of file diff --git a/rust/crates/sift_rs/src/gen/sift.resource_attribute.v1.serde.rs b/rust/crates/sift_rs/src/gen/sift.resource_attribute.v1.serde.rs new file mode 100644 index 000000000..c0bf087aa --- /dev/null +++ b/rust/crates/sift_rs/src/gen/sift.resource_attribute.v1.serde.rs @@ -0,0 +1,6376 @@ +// @generated +impl serde::Serialize for ArchiveResourceAttributeEnumValueRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.archived_enum_value_id.is_empty() { + len += 1; + } + if !self.replacement_enum_value_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueRequest", len)?; + if !self.archived_enum_value_id.is_empty() { + struct_ser.serialize_field("archivedEnumValueId", &self.archived_enum_value_id)?; + } + if !self.replacement_enum_value_id.is_empty() { + struct_ser.serialize_field("replacementEnumValueId", &self.replacement_enum_value_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchiveResourceAttributeEnumValueRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "archived_enum_value_id", + "archivedEnumValueId", + "replacement_enum_value_id", + "replacementEnumValueId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ArchivedEnumValueId, + ReplacementEnumValueId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "archivedEnumValueId" | "archived_enum_value_id" => Ok(GeneratedField::ArchivedEnumValueId), + "replacementEnumValueId" | "replacement_enum_value_id" => Ok(GeneratedField::ReplacementEnumValueId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchiveResourceAttributeEnumValueRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut archived_enum_value_id__ = None; + let mut replacement_enum_value_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ArchivedEnumValueId => { + if archived_enum_value_id__.is_some() { + return Err(serde::de::Error::duplicate_field("archivedEnumValueId")); + } + archived_enum_value_id__ = Some(map_.next_value()?); + } + GeneratedField::ReplacementEnumValueId => { + if replacement_enum_value_id__.is_some() { + return Err(serde::de::Error::duplicate_field("replacementEnumValueId")); + } + replacement_enum_value_id__ = Some(map_.next_value()?); + } + } + } + Ok(ArchiveResourceAttributeEnumValueRequest { + archived_enum_value_id: archived_enum_value_id__.unwrap_or_default(), + replacement_enum_value_id: replacement_enum_value_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ArchiveResourceAttributeEnumValueResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.resource_attributes_migrated != 0 { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueResponse", len)?; + if self.resource_attributes_migrated != 0 { + struct_ser.serialize_field("resourceAttributesMigrated", &self.resource_attributes_migrated)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchiveResourceAttributeEnumValueResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attributes_migrated", + "resourceAttributesMigrated", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributesMigrated, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributesMigrated" | "resource_attributes_migrated" => Ok(GeneratedField::ResourceAttributesMigrated), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchiveResourceAttributeEnumValueResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attributes_migrated__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributesMigrated => { + if resource_attributes_migrated__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributesMigrated")); + } + resource_attributes_migrated__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + } + } + Ok(ArchiveResourceAttributeEnumValueResponse { + resource_attributes_migrated: resource_attributes_migrated__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeEnumValueResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ArchiveResourceAttributeKeyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_key_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeKeyRequest", len)?; + if !self.resource_attribute_key_id.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyId", &self.resource_attribute_key_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchiveResourceAttributeKeyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key_id", + "resourceAttributeKeyId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKeyId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKeyId" | "resource_attribute_key_id" => Ok(GeneratedField::ResourceAttributeKeyId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchiveResourceAttributeKeyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ArchiveResourceAttributeKeyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKeyId => { + if resource_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyId")); + } + resource_attribute_key_id__ = Some(map_.next_value()?); + } + } + } + Ok(ArchiveResourceAttributeKeyRequest { + resource_attribute_key_id: resource_attribute_key_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeKeyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ArchiveResourceAttributeKeyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeKeyResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchiveResourceAttributeKeyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchiveResourceAttributeKeyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ArchiveResourceAttributeKeyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(ArchiveResourceAttributeKeyResponse { + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeKeyResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ArchiveResourceAttributeRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeRequest", len)?; + if !self.resource_attribute_id.is_empty() { + struct_ser.serialize_field("resourceAttributeId", &self.resource_attribute_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchiveResourceAttributeRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_id", + "resourceAttributeId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeId" | "resource_attribute_id" => Ok(GeneratedField::ResourceAttributeId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchiveResourceAttributeRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ArchiveResourceAttributeRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeId => { + if resource_attribute_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeId")); + } + resource_attribute_id__ = Some(map_.next_value()?); + } + } + } + Ok(ArchiveResourceAttributeRequest { + resource_attribute_id: resource_attribute_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ArchiveResourceAttributeResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchiveResourceAttributeResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchiveResourceAttributeResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ArchiveResourceAttributeResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(ArchiveResourceAttributeResponse { + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ArchiveResourceAttributeResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchArchiveResourceAttributeEnumValuesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.archival_requests.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest", len)?; + if !self.archival_requests.is_empty() { + struct_ser.serialize_field("archivalRequests", &self.archival_requests)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchArchiveResourceAttributeEnumValuesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "archival_requests", + "archivalRequests", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ArchivalRequests, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "archivalRequests" | "archival_requests" => Ok(GeneratedField::ArchivalRequests), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchArchiveResourceAttributeEnumValuesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut archival_requests__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ArchivalRequests => { + if archival_requests__.is_some() { + return Err(serde::de::Error::duplicate_field("archivalRequests")); + } + archival_requests__ = Some(map_.next_value()?); + } + } + } + Ok(BatchArchiveResourceAttributeEnumValuesRequest { + archival_requests: archival_requests__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for batch_archive_resource_attribute_enum_values_request::EnumValueArchival { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.archived_enum_value_id.is_empty() { + len += 1; + } + if !self.replacement_enum_value_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest.EnumValueArchival", len)?; + if !self.archived_enum_value_id.is_empty() { + struct_ser.serialize_field("archivedEnumValueId", &self.archived_enum_value_id)?; + } + if !self.replacement_enum_value_id.is_empty() { + struct_ser.serialize_field("replacementEnumValueId", &self.replacement_enum_value_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for batch_archive_resource_attribute_enum_values_request::EnumValueArchival { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "archived_enum_value_id", + "archivedEnumValueId", + "replacement_enum_value_id", + "replacementEnumValueId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ArchivedEnumValueId, + ReplacementEnumValueId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "archivedEnumValueId" | "archived_enum_value_id" => Ok(GeneratedField::ArchivedEnumValueId), + "replacementEnumValueId" | "replacement_enum_value_id" => Ok(GeneratedField::ReplacementEnumValueId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = batch_archive_resource_attribute_enum_values_request::EnumValueArchival; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest.EnumValueArchival") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut archived_enum_value_id__ = None; + let mut replacement_enum_value_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ArchivedEnumValueId => { + if archived_enum_value_id__.is_some() { + return Err(serde::de::Error::duplicate_field("archivedEnumValueId")); + } + archived_enum_value_id__ = Some(map_.next_value()?); + } + GeneratedField::ReplacementEnumValueId => { + if replacement_enum_value_id__.is_some() { + return Err(serde::de::Error::duplicate_field("replacementEnumValueId")); + } + replacement_enum_value_id__ = Some(map_.next_value()?); + } + } + } + Ok(batch_archive_resource_attribute_enum_values_request::EnumValueArchival { + archived_enum_value_id: archived_enum_value_id__.unwrap_or_default(), + replacement_enum_value_id: replacement_enum_value_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesRequest.EnumValueArchival", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchArchiveResourceAttributeEnumValuesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.total_resource_attributes_migrated != 0 { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesResponse", len)?; + if self.total_resource_attributes_migrated != 0 { + struct_ser.serialize_field("totalResourceAttributesMigrated", &self.total_resource_attributes_migrated)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchArchiveResourceAttributeEnumValuesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "total_resource_attributes_migrated", + "totalResourceAttributesMigrated", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + TotalResourceAttributesMigrated, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "totalResourceAttributesMigrated" | "total_resource_attributes_migrated" => Ok(GeneratedField::TotalResourceAttributesMigrated), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchArchiveResourceAttributeEnumValuesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut total_resource_attributes_migrated__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::TotalResourceAttributesMigrated => { + if total_resource_attributes_migrated__.is_some() { + return Err(serde::de::Error::duplicate_field("totalResourceAttributesMigrated")); + } + total_resource_attributes_migrated__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + } + } + Ok(BatchArchiveResourceAttributeEnumValuesResponse { + total_resource_attributes_migrated: total_resource_attributes_migrated__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributeEnumValuesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchArchiveResourceAttributeKeysRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_key_ids.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysRequest", len)?; + if !self.resource_attribute_key_ids.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyIds", &self.resource_attribute_key_ids)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchArchiveResourceAttributeKeysRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key_ids", + "resourceAttributeKeyIds", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKeyIds, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKeyIds" | "resource_attribute_key_ids" => Ok(GeneratedField::ResourceAttributeKeyIds), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchArchiveResourceAttributeKeysRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key_ids__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKeyIds => { + if resource_attribute_key_ids__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyIds")); + } + resource_attribute_key_ids__ = Some(map_.next_value()?); + } + } + } + Ok(BatchArchiveResourceAttributeKeysRequest { + resource_attribute_key_ids: resource_attribute_key_ids__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchArchiveResourceAttributeKeysResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchArchiveResourceAttributeKeysResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchArchiveResourceAttributeKeysResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(BatchArchiveResourceAttributeKeysResponse { + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributeKeysResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchArchiveResourceAttributesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_ids.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributesRequest", len)?; + if !self.resource_attribute_ids.is_empty() { + struct_ser.serialize_field("resourceAttributeIds", &self.resource_attribute_ids)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchArchiveResourceAttributesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_ids", + "resourceAttributeIds", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeIds, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeIds" | "resource_attribute_ids" => Ok(GeneratedField::ResourceAttributeIds), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchArchiveResourceAttributesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchArchiveResourceAttributesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_ids__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeIds => { + if resource_attribute_ids__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeIds")); + } + resource_attribute_ids__ = Some(map_.next_value()?); + } + } + } + Ok(BatchArchiveResourceAttributesRequest { + resource_attribute_ids: resource_attribute_ids__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchArchiveResourceAttributesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributesResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchArchiveResourceAttributesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchArchiveResourceAttributesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchArchiveResourceAttributesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(BatchArchiveResourceAttributesResponse { + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchArchiveResourceAttributesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchCreateResourceAttributesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_key_id.is_empty() { + len += 1; + } + if !self.entities.is_empty() { + len += 1; + } + if self.value.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchCreateResourceAttributesRequest", len)?; + if !self.resource_attribute_key_id.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyId", &self.resource_attribute_key_id)?; + } + if !self.entities.is_empty() { + struct_ser.serialize_field("entities", &self.entities)?; + } + if let Some(v) = self.value.as_ref() { + match v { + batch_create_resource_attributes_request::Value::ResourceAttributeEnumValueId(v) => { + struct_ser.serialize_field("resourceAttributeEnumValueId", v)?; + } + batch_create_resource_attributes_request::Value::BooleanValue(v) => { + struct_ser.serialize_field("booleanValue", v)?; + } + batch_create_resource_attributes_request::Value::NumberValue(v) => { + struct_ser.serialize_field("numberValue", v)?; + } + } + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchCreateResourceAttributesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key_id", + "resourceAttributeKeyId", + "entities", + "resource_attribute_enum_value_id", + "resourceAttributeEnumValueId", + "boolean_value", + "booleanValue", + "number_value", + "numberValue", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKeyId, + Entities, + ResourceAttributeEnumValueId, + BooleanValue, + NumberValue, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKeyId" | "resource_attribute_key_id" => Ok(GeneratedField::ResourceAttributeKeyId), + "entities" => Ok(GeneratedField::Entities), + "resourceAttributeEnumValueId" | "resource_attribute_enum_value_id" => Ok(GeneratedField::ResourceAttributeEnumValueId), + "booleanValue" | "boolean_value" => Ok(GeneratedField::BooleanValue), + "numberValue" | "number_value" => Ok(GeneratedField::NumberValue), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchCreateResourceAttributesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchCreateResourceAttributesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key_id__ = None; + let mut entities__ = None; + let mut value__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKeyId => { + if resource_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyId")); + } + resource_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::Entities => { + if entities__.is_some() { + return Err(serde::de::Error::duplicate_field("entities")); + } + entities__ = Some(map_.next_value()?); + } + GeneratedField::ResourceAttributeEnumValueId => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValueId")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(batch_create_resource_attributes_request::Value::ResourceAttributeEnumValueId); + } + GeneratedField::BooleanValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("booleanValue")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(batch_create_resource_attributes_request::Value::BooleanValue); + } + GeneratedField::NumberValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("numberValue")); + } + value__ = map_.next_value::<::std::option::Option<::pbjson::private::NumberDeserialize<_>>>()?.map(|x| batch_create_resource_attributes_request::Value::NumberValue(x.0)); + } + } + } + Ok(BatchCreateResourceAttributesRequest { + resource_attribute_key_id: resource_attribute_key_id__.unwrap_or_default(), + entities: entities__.unwrap_or_default(), + value: value__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchCreateResourceAttributesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchCreateResourceAttributesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attributes.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchCreateResourceAttributesResponse", len)?; + if !self.resource_attributes.is_empty() { + struct_ser.serialize_field("resourceAttributes", &self.resource_attributes)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchCreateResourceAttributesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attributes", + "resourceAttributes", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributes, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributes" | "resource_attributes" => Ok(GeneratedField::ResourceAttributes), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchCreateResourceAttributesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchCreateResourceAttributesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attributes__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributes => { + if resource_attributes__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributes")); + } + resource_attributes__ = Some(map_.next_value()?); + } + } + } + Ok(BatchCreateResourceAttributesResponse { + resource_attributes: resource_attributes__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchCreateResourceAttributesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchUnarchiveResourceAttributeEnumValuesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_enum_value_ids.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesRequest", len)?; + if !self.resource_attribute_enum_value_ids.is_empty() { + struct_ser.serialize_field("resourceAttributeEnumValueIds", &self.resource_attribute_enum_value_ids)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchUnarchiveResourceAttributeEnumValuesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_enum_value_ids", + "resourceAttributeEnumValueIds", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeEnumValueIds, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeEnumValueIds" | "resource_attribute_enum_value_ids" => Ok(GeneratedField::ResourceAttributeEnumValueIds), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchUnarchiveResourceAttributeEnumValuesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_enum_value_ids__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeEnumValueIds => { + if resource_attribute_enum_value_ids__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValueIds")); + } + resource_attribute_enum_value_ids__ = Some(map_.next_value()?); + } + } + } + Ok(BatchUnarchiveResourceAttributeEnumValuesRequest { + resource_attribute_enum_value_ids: resource_attribute_enum_value_ids__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchUnarchiveResourceAttributeEnumValuesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchUnarchiveResourceAttributeEnumValuesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchUnarchiveResourceAttributeEnumValuesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(BatchUnarchiveResourceAttributeEnumValuesResponse { + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributeEnumValuesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchUnarchiveResourceAttributeKeysRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_key_ids.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysRequest", len)?; + if !self.resource_attribute_key_ids.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyIds", &self.resource_attribute_key_ids)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchUnarchiveResourceAttributeKeysRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key_ids", + "resourceAttributeKeyIds", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKeyIds, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKeyIds" | "resource_attribute_key_ids" => Ok(GeneratedField::ResourceAttributeKeyIds), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchUnarchiveResourceAttributeKeysRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key_ids__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKeyIds => { + if resource_attribute_key_ids__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyIds")); + } + resource_attribute_key_ids__ = Some(map_.next_value()?); + } + } + } + Ok(BatchUnarchiveResourceAttributeKeysRequest { + resource_attribute_key_ids: resource_attribute_key_ids__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchUnarchiveResourceAttributeKeysResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchUnarchiveResourceAttributeKeysResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchUnarchiveResourceAttributeKeysResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(BatchUnarchiveResourceAttributeKeysResponse { + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributeKeysResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchUnarchiveResourceAttributesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_ids.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributesRequest", len)?; + if !self.resource_attribute_ids.is_empty() { + struct_ser.serialize_field("resourceAttributeIds", &self.resource_attribute_ids)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchUnarchiveResourceAttributesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_ids", + "resourceAttributeIds", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeIds, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeIds" | "resource_attribute_ids" => Ok(GeneratedField::ResourceAttributeIds), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchUnarchiveResourceAttributesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchUnarchiveResourceAttributesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_ids__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeIds => { + if resource_attribute_ids__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeIds")); + } + resource_attribute_ids__ = Some(map_.next_value()?); + } + } + } + Ok(BatchUnarchiveResourceAttributesRequest { + resource_attribute_ids: resource_attribute_ids__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchUnarchiveResourceAttributesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributesResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchUnarchiveResourceAttributesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchUnarchiveResourceAttributesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.BatchUnarchiveResourceAttributesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(BatchUnarchiveResourceAttributesResponse { + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.BatchUnarchiveResourceAttributesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreateResourceAttributeEnumValueRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_key_id.is_empty() { + len += 1; + } + if !self.display_name.is_empty() { + len += 1; + } + if !self.description.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.CreateResourceAttributeEnumValueRequest", len)?; + if !self.resource_attribute_key_id.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyId", &self.resource_attribute_key_id)?; + } + if !self.display_name.is_empty() { + struct_ser.serialize_field("displayName", &self.display_name)?; + } + if !self.description.is_empty() { + struct_ser.serialize_field("description", &self.description)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreateResourceAttributeEnumValueRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key_id", + "resourceAttributeKeyId", + "display_name", + "displayName", + "description", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKeyId, + DisplayName, + Description, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKeyId" | "resource_attribute_key_id" => Ok(GeneratedField::ResourceAttributeKeyId), + "displayName" | "display_name" => Ok(GeneratedField::DisplayName), + "description" => Ok(GeneratedField::Description), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreateResourceAttributeEnumValueRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.CreateResourceAttributeEnumValueRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key_id__ = None; + let mut display_name__ = None; + let mut description__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKeyId => { + if resource_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyId")); + } + resource_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::DisplayName => { + if display_name__.is_some() { + return Err(serde::de::Error::duplicate_field("displayName")); + } + display_name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = Some(map_.next_value()?); + } + } + } + Ok(CreateResourceAttributeEnumValueRequest { + resource_attribute_key_id: resource_attribute_key_id__.unwrap_or_default(), + display_name: display_name__.unwrap_or_default(), + description: description__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.CreateResourceAttributeEnumValueRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreateResourceAttributeEnumValueResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.resource_attribute_enum_value.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.CreateResourceAttributeEnumValueResponse", len)?; + if let Some(v) = self.resource_attribute_enum_value.as_ref() { + struct_ser.serialize_field("resourceAttributeEnumValue", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreateResourceAttributeEnumValueResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_enum_value", + "resourceAttributeEnumValue", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeEnumValue, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeEnumValue" | "resource_attribute_enum_value" => Ok(GeneratedField::ResourceAttributeEnumValue), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreateResourceAttributeEnumValueResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.CreateResourceAttributeEnumValueResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_enum_value__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeEnumValue => { + if resource_attribute_enum_value__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValue")); + } + resource_attribute_enum_value__ = map_.next_value()?; + } + } + } + Ok(CreateResourceAttributeEnumValueResponse { + resource_attribute_enum_value: resource_attribute_enum_value__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.CreateResourceAttributeEnumValueResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreateResourceAttributeKeyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.display_name.is_empty() { + len += 1; + } + if !self.description.is_empty() { + len += 1; + } + if self.r#type != 0 { + len += 1; + } + if !self.initial_enum_values.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.CreateResourceAttributeKeyRequest", len)?; + if !self.display_name.is_empty() { + struct_ser.serialize_field("displayName", &self.display_name)?; + } + if !self.description.is_empty() { + struct_ser.serialize_field("description", &self.description)?; + } + if self.r#type != 0 { + let v = ResourceAttributeKeyType::try_from(self.r#type) + .map_err(|_| serde::ser::Error::custom(format!("Invalid variant {}", self.r#type)))?; + struct_ser.serialize_field("type", &v)?; + } + if !self.initial_enum_values.is_empty() { + struct_ser.serialize_field("initialEnumValues", &self.initial_enum_values)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreateResourceAttributeKeyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "display_name", + "displayName", + "description", + "type", + "initial_enum_values", + "initialEnumValues", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + DisplayName, + Description, + Type, + InitialEnumValues, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "displayName" | "display_name" => Ok(GeneratedField::DisplayName), + "description" => Ok(GeneratedField::Description), + "type" => Ok(GeneratedField::Type), + "initialEnumValues" | "initial_enum_values" => Ok(GeneratedField::InitialEnumValues), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreateResourceAttributeKeyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.CreateResourceAttributeKeyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut display_name__ = None; + let mut description__ = None; + let mut r#type__ = None; + let mut initial_enum_values__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::DisplayName => { + if display_name__.is_some() { + return Err(serde::de::Error::duplicate_field("displayName")); + } + display_name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = Some(map_.next_value()?); + } + GeneratedField::Type => { + if r#type__.is_some() { + return Err(serde::de::Error::duplicate_field("type")); + } + r#type__ = Some(map_.next_value::()? as i32); + } + GeneratedField::InitialEnumValues => { + if initial_enum_values__.is_some() { + return Err(serde::de::Error::duplicate_field("initialEnumValues")); + } + initial_enum_values__ = Some(map_.next_value()?); + } + } + } + Ok(CreateResourceAttributeKeyRequest { + display_name: display_name__.unwrap_or_default(), + description: description__.unwrap_or_default(), + r#type: r#type__.unwrap_or_default(), + initial_enum_values: initial_enum_values__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.CreateResourceAttributeKeyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for create_resource_attribute_key_request::InitialEnumValue { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.display_name.is_empty() { + len += 1; + } + if !self.description.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.CreateResourceAttributeKeyRequest.InitialEnumValue", len)?; + if !self.display_name.is_empty() { + struct_ser.serialize_field("displayName", &self.display_name)?; + } + if !self.description.is_empty() { + struct_ser.serialize_field("description", &self.description)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for create_resource_attribute_key_request::InitialEnumValue { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "display_name", + "displayName", + "description", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + DisplayName, + Description, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "displayName" | "display_name" => Ok(GeneratedField::DisplayName), + "description" => Ok(GeneratedField::Description), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = create_resource_attribute_key_request::InitialEnumValue; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.CreateResourceAttributeKeyRequest.InitialEnumValue") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut display_name__ = None; + let mut description__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::DisplayName => { + if display_name__.is_some() { + return Err(serde::de::Error::duplicate_field("displayName")); + } + display_name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = Some(map_.next_value()?); + } + } + } + Ok(create_resource_attribute_key_request::InitialEnumValue { + display_name: display_name__.unwrap_or_default(), + description: description__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.CreateResourceAttributeKeyRequest.InitialEnumValue", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreateResourceAttributeKeyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.resource_attribute_key.is_some() { + len += 1; + } + if !self.enum_values.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.CreateResourceAttributeKeyResponse", len)?; + if let Some(v) = self.resource_attribute_key.as_ref() { + struct_ser.serialize_field("resourceAttributeKey", v)?; + } + if !self.enum_values.is_empty() { + struct_ser.serialize_field("enumValues", &self.enum_values)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreateResourceAttributeKeyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key", + "resourceAttributeKey", + "enum_values", + "enumValues", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKey, + EnumValues, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKey" | "resource_attribute_key" => Ok(GeneratedField::ResourceAttributeKey), + "enumValues" | "enum_values" => Ok(GeneratedField::EnumValues), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreateResourceAttributeKeyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.CreateResourceAttributeKeyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key__ = None; + let mut enum_values__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKey => { + if resource_attribute_key__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKey")); + } + resource_attribute_key__ = map_.next_value()?; + } + GeneratedField::EnumValues => { + if enum_values__.is_some() { + return Err(serde::de::Error::duplicate_field("enumValues")); + } + enum_values__ = Some(map_.next_value()?); + } + } + } + Ok(CreateResourceAttributeKeyResponse { + resource_attribute_key: resource_attribute_key__, + enum_values: enum_values__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.CreateResourceAttributeKeyResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreateResourceAttributeRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.entity.is_some() { + len += 1; + } + if !self.resource_attribute_key_id.is_empty() { + len += 1; + } + if self.value.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.CreateResourceAttributeRequest", len)?; + if let Some(v) = self.entity.as_ref() { + struct_ser.serialize_field("entity", v)?; + } + if !self.resource_attribute_key_id.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyId", &self.resource_attribute_key_id)?; + } + if let Some(v) = self.value.as_ref() { + match v { + create_resource_attribute_request::Value::ResourceAttributeEnumValueId(v) => { + struct_ser.serialize_field("resourceAttributeEnumValueId", v)?; + } + create_resource_attribute_request::Value::BooleanValue(v) => { + struct_ser.serialize_field("booleanValue", v)?; + } + create_resource_attribute_request::Value::NumberValue(v) => { + struct_ser.serialize_field("numberValue", v)?; + } + } + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreateResourceAttributeRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "entity", + "resource_attribute_key_id", + "resourceAttributeKeyId", + "resource_attribute_enum_value_id", + "resourceAttributeEnumValueId", + "boolean_value", + "booleanValue", + "number_value", + "numberValue", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Entity, + ResourceAttributeKeyId, + ResourceAttributeEnumValueId, + BooleanValue, + NumberValue, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "entity" => Ok(GeneratedField::Entity), + "resourceAttributeKeyId" | "resource_attribute_key_id" => Ok(GeneratedField::ResourceAttributeKeyId), + "resourceAttributeEnumValueId" | "resource_attribute_enum_value_id" => Ok(GeneratedField::ResourceAttributeEnumValueId), + "booleanValue" | "boolean_value" => Ok(GeneratedField::BooleanValue), + "numberValue" | "number_value" => Ok(GeneratedField::NumberValue), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreateResourceAttributeRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.CreateResourceAttributeRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut entity__ = None; + let mut resource_attribute_key_id__ = None; + let mut value__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Entity => { + if entity__.is_some() { + return Err(serde::de::Error::duplicate_field("entity")); + } + entity__ = map_.next_value()?; + } + GeneratedField::ResourceAttributeKeyId => { + if resource_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyId")); + } + resource_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::ResourceAttributeEnumValueId => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValueId")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(create_resource_attribute_request::Value::ResourceAttributeEnumValueId); + } + GeneratedField::BooleanValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("booleanValue")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(create_resource_attribute_request::Value::BooleanValue); + } + GeneratedField::NumberValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("numberValue")); + } + value__ = map_.next_value::<::std::option::Option<::pbjson::private::NumberDeserialize<_>>>()?.map(|x| create_resource_attribute_request::Value::NumberValue(x.0)); + } + } + } + Ok(CreateResourceAttributeRequest { + entity: entity__, + resource_attribute_key_id: resource_attribute_key_id__.unwrap_or_default(), + value: value__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.CreateResourceAttributeRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreateResourceAttributeResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.resource_attribute.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.CreateResourceAttributeResponse", len)?; + if let Some(v) = self.resource_attribute.as_ref() { + struct_ser.serialize_field("resourceAttribute", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreateResourceAttributeResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute", + "resourceAttribute", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttribute, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttribute" | "resource_attribute" => Ok(GeneratedField::ResourceAttribute), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreateResourceAttributeResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.CreateResourceAttributeResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttribute => { + if resource_attribute__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttribute")); + } + resource_attribute__ = map_.next_value()?; + } + } + } + Ok(CreateResourceAttributeResponse { + resource_attribute: resource_attribute__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.CreateResourceAttributeResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetResourceAttributeEnumValueRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_enum_value_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.GetResourceAttributeEnumValueRequest", len)?; + if !self.resource_attribute_enum_value_id.is_empty() { + struct_ser.serialize_field("resourceAttributeEnumValueId", &self.resource_attribute_enum_value_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetResourceAttributeEnumValueRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_enum_value_id", + "resourceAttributeEnumValueId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeEnumValueId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeEnumValueId" | "resource_attribute_enum_value_id" => Ok(GeneratedField::ResourceAttributeEnumValueId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetResourceAttributeEnumValueRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.GetResourceAttributeEnumValueRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_enum_value_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeEnumValueId => { + if resource_attribute_enum_value_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValueId")); + } + resource_attribute_enum_value_id__ = Some(map_.next_value()?); + } + } + } + Ok(GetResourceAttributeEnumValueRequest { + resource_attribute_enum_value_id: resource_attribute_enum_value_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.GetResourceAttributeEnumValueRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetResourceAttributeEnumValueResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.resource_attribute_enum_value.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.GetResourceAttributeEnumValueResponse", len)?; + if let Some(v) = self.resource_attribute_enum_value.as_ref() { + struct_ser.serialize_field("resourceAttributeEnumValue", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetResourceAttributeEnumValueResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_enum_value", + "resourceAttributeEnumValue", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeEnumValue, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeEnumValue" | "resource_attribute_enum_value" => Ok(GeneratedField::ResourceAttributeEnumValue), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetResourceAttributeEnumValueResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.GetResourceAttributeEnumValueResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_enum_value__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeEnumValue => { + if resource_attribute_enum_value__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValue")); + } + resource_attribute_enum_value__ = map_.next_value()?; + } + } + } + Ok(GetResourceAttributeEnumValueResponse { + resource_attribute_enum_value: resource_attribute_enum_value__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.GetResourceAttributeEnumValueResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetResourceAttributeKeyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_key_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.GetResourceAttributeKeyRequest", len)?; + if !self.resource_attribute_key_id.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyId", &self.resource_attribute_key_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetResourceAttributeKeyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key_id", + "resourceAttributeKeyId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKeyId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKeyId" | "resource_attribute_key_id" => Ok(GeneratedField::ResourceAttributeKeyId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetResourceAttributeKeyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.GetResourceAttributeKeyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKeyId => { + if resource_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyId")); + } + resource_attribute_key_id__ = Some(map_.next_value()?); + } + } + } + Ok(GetResourceAttributeKeyRequest { + resource_attribute_key_id: resource_attribute_key_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.GetResourceAttributeKeyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetResourceAttributeKeyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.resource_attribute_key.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.GetResourceAttributeKeyResponse", len)?; + if let Some(v) = self.resource_attribute_key.as_ref() { + struct_ser.serialize_field("resourceAttributeKey", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetResourceAttributeKeyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key", + "resourceAttributeKey", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKey, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKey" | "resource_attribute_key" => Ok(GeneratedField::ResourceAttributeKey), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetResourceAttributeKeyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.GetResourceAttributeKeyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKey => { + if resource_attribute_key__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKey")); + } + resource_attribute_key__ = map_.next_value()?; + } + } + } + Ok(GetResourceAttributeKeyResponse { + resource_attribute_key: resource_attribute_key__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.GetResourceAttributeKeyResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetResourceAttributeRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.GetResourceAttributeRequest", len)?; + if !self.resource_attribute_id.is_empty() { + struct_ser.serialize_field("resourceAttributeId", &self.resource_attribute_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetResourceAttributeRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_id", + "resourceAttributeId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeId" | "resource_attribute_id" => Ok(GeneratedField::ResourceAttributeId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetResourceAttributeRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.GetResourceAttributeRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeId => { + if resource_attribute_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeId")); + } + resource_attribute_id__ = Some(map_.next_value()?); + } + } + } + Ok(GetResourceAttributeRequest { + resource_attribute_id: resource_attribute_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.GetResourceAttributeRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetResourceAttributeResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.resource_attribute.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.GetResourceAttributeResponse", len)?; + if let Some(v) = self.resource_attribute.as_ref() { + struct_ser.serialize_field("resourceAttribute", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetResourceAttributeResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute", + "resourceAttribute", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttribute, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttribute" | "resource_attribute" => Ok(GeneratedField::ResourceAttribute), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetResourceAttributeResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.GetResourceAttributeResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttribute => { + if resource_attribute__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttribute")); + } + resource_attribute__ = map_.next_value()?; + } + } + } + Ok(GetResourceAttributeResponse { + resource_attribute: resource_attribute__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.GetResourceAttributeResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListResourceAttributeEnumValuesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_key_id.is_empty() { + len += 1; + } + if self.page_size != 0 { + len += 1; + } + if !self.page_token.is_empty() { + len += 1; + } + if !self.filter.is_empty() { + len += 1; + } + if !self.order_by.is_empty() { + len += 1; + } + if self.include_archived { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ListResourceAttributeEnumValuesRequest", len)?; + if !self.resource_attribute_key_id.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyId", &self.resource_attribute_key_id)?; + } + if self.page_size != 0 { + struct_ser.serialize_field("pageSize", &self.page_size)?; + } + if !self.page_token.is_empty() { + struct_ser.serialize_field("pageToken", &self.page_token)?; + } + if !self.filter.is_empty() { + struct_ser.serialize_field("filter", &self.filter)?; + } + if !self.order_by.is_empty() { + struct_ser.serialize_field("orderBy", &self.order_by)?; + } + if self.include_archived { + struct_ser.serialize_field("includeArchived", &self.include_archived)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListResourceAttributeEnumValuesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key_id", + "resourceAttributeKeyId", + "page_size", + "pageSize", + "page_token", + "pageToken", + "filter", + "order_by", + "orderBy", + "include_archived", + "includeArchived", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKeyId, + PageSize, + PageToken, + Filter, + OrderBy, + IncludeArchived, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKeyId" | "resource_attribute_key_id" => Ok(GeneratedField::ResourceAttributeKeyId), + "pageSize" | "page_size" => Ok(GeneratedField::PageSize), + "pageToken" | "page_token" => Ok(GeneratedField::PageToken), + "filter" => Ok(GeneratedField::Filter), + "orderBy" | "order_by" => Ok(GeneratedField::OrderBy), + "includeArchived" | "include_archived" => Ok(GeneratedField::IncludeArchived), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListResourceAttributeEnumValuesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ListResourceAttributeEnumValuesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key_id__ = None; + let mut page_size__ = None; + let mut page_token__ = None; + let mut filter__ = None; + let mut order_by__ = None; + let mut include_archived__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKeyId => { + if resource_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyId")); + } + resource_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::PageSize => { + if page_size__.is_some() { + return Err(serde::de::Error::duplicate_field("pageSize")); + } + page_size__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::PageToken => { + if page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("pageToken")); + } + page_token__ = Some(map_.next_value()?); + } + GeneratedField::Filter => { + if filter__.is_some() { + return Err(serde::de::Error::duplicate_field("filter")); + } + filter__ = Some(map_.next_value()?); + } + GeneratedField::OrderBy => { + if order_by__.is_some() { + return Err(serde::de::Error::duplicate_field("orderBy")); + } + order_by__ = Some(map_.next_value()?); + } + GeneratedField::IncludeArchived => { + if include_archived__.is_some() { + return Err(serde::de::Error::duplicate_field("includeArchived")); + } + include_archived__ = Some(map_.next_value()?); + } + } + } + Ok(ListResourceAttributeEnumValuesRequest { + resource_attribute_key_id: resource_attribute_key_id__.unwrap_or_default(), + page_size: page_size__.unwrap_or_default(), + page_token: page_token__.unwrap_or_default(), + filter: filter__.unwrap_or_default(), + order_by: order_by__.unwrap_or_default(), + include_archived: include_archived__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ListResourceAttributeEnumValuesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListResourceAttributeEnumValuesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_enum_values.is_empty() { + len += 1; + } + if !self.next_page_token.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ListResourceAttributeEnumValuesResponse", len)?; + if !self.resource_attribute_enum_values.is_empty() { + struct_ser.serialize_field("resourceAttributeEnumValues", &self.resource_attribute_enum_values)?; + } + if !self.next_page_token.is_empty() { + struct_ser.serialize_field("nextPageToken", &self.next_page_token)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListResourceAttributeEnumValuesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_enum_values", + "resourceAttributeEnumValues", + "next_page_token", + "nextPageToken", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeEnumValues, + NextPageToken, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeEnumValues" | "resource_attribute_enum_values" => Ok(GeneratedField::ResourceAttributeEnumValues), + "nextPageToken" | "next_page_token" => Ok(GeneratedField::NextPageToken), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListResourceAttributeEnumValuesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ListResourceAttributeEnumValuesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_enum_values__ = None; + let mut next_page_token__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeEnumValues => { + if resource_attribute_enum_values__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValues")); + } + resource_attribute_enum_values__ = Some(map_.next_value()?); + } + GeneratedField::NextPageToken => { + if next_page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("nextPageToken")); + } + next_page_token__ = Some(map_.next_value()?); + } + } + } + Ok(ListResourceAttributeEnumValuesResponse { + resource_attribute_enum_values: resource_attribute_enum_values__.unwrap_or_default(), + next_page_token: next_page_token__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ListResourceAttributeEnumValuesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListResourceAttributeKeysRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.page_size != 0 { + len += 1; + } + if !self.page_token.is_empty() { + len += 1; + } + if !self.filter.is_empty() { + len += 1; + } + if !self.order_by.is_empty() { + len += 1; + } + if self.include_archived { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ListResourceAttributeKeysRequest", len)?; + if self.page_size != 0 { + struct_ser.serialize_field("pageSize", &self.page_size)?; + } + if !self.page_token.is_empty() { + struct_ser.serialize_field("pageToken", &self.page_token)?; + } + if !self.filter.is_empty() { + struct_ser.serialize_field("filter", &self.filter)?; + } + if !self.order_by.is_empty() { + struct_ser.serialize_field("orderBy", &self.order_by)?; + } + if self.include_archived { + struct_ser.serialize_field("includeArchived", &self.include_archived)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListResourceAttributeKeysRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "page_size", + "pageSize", + "page_token", + "pageToken", + "filter", + "order_by", + "orderBy", + "include_archived", + "includeArchived", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + PageSize, + PageToken, + Filter, + OrderBy, + IncludeArchived, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "pageSize" | "page_size" => Ok(GeneratedField::PageSize), + "pageToken" | "page_token" => Ok(GeneratedField::PageToken), + "filter" => Ok(GeneratedField::Filter), + "orderBy" | "order_by" => Ok(GeneratedField::OrderBy), + "includeArchived" | "include_archived" => Ok(GeneratedField::IncludeArchived), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListResourceAttributeKeysRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ListResourceAttributeKeysRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut page_size__ = None; + let mut page_token__ = None; + let mut filter__ = None; + let mut order_by__ = None; + let mut include_archived__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::PageSize => { + if page_size__.is_some() { + return Err(serde::de::Error::duplicate_field("pageSize")); + } + page_size__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::PageToken => { + if page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("pageToken")); + } + page_token__ = Some(map_.next_value()?); + } + GeneratedField::Filter => { + if filter__.is_some() { + return Err(serde::de::Error::duplicate_field("filter")); + } + filter__ = Some(map_.next_value()?); + } + GeneratedField::OrderBy => { + if order_by__.is_some() { + return Err(serde::de::Error::duplicate_field("orderBy")); + } + order_by__ = Some(map_.next_value()?); + } + GeneratedField::IncludeArchived => { + if include_archived__.is_some() { + return Err(serde::de::Error::duplicate_field("includeArchived")); + } + include_archived__ = Some(map_.next_value()?); + } + } + } + Ok(ListResourceAttributeKeysRequest { + page_size: page_size__.unwrap_or_default(), + page_token: page_token__.unwrap_or_default(), + filter: filter__.unwrap_or_default(), + order_by: order_by__.unwrap_or_default(), + include_archived: include_archived__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ListResourceAttributeKeysRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListResourceAttributeKeysResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_keys.is_empty() { + len += 1; + } + if !self.next_page_token.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ListResourceAttributeKeysResponse", len)?; + if !self.resource_attribute_keys.is_empty() { + struct_ser.serialize_field("resourceAttributeKeys", &self.resource_attribute_keys)?; + } + if !self.next_page_token.is_empty() { + struct_ser.serialize_field("nextPageToken", &self.next_page_token)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListResourceAttributeKeysResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_keys", + "resourceAttributeKeys", + "next_page_token", + "nextPageToken", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKeys, + NextPageToken, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKeys" | "resource_attribute_keys" => Ok(GeneratedField::ResourceAttributeKeys), + "nextPageToken" | "next_page_token" => Ok(GeneratedField::NextPageToken), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListResourceAttributeKeysResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ListResourceAttributeKeysResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_keys__ = None; + let mut next_page_token__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKeys => { + if resource_attribute_keys__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeys")); + } + resource_attribute_keys__ = Some(map_.next_value()?); + } + GeneratedField::NextPageToken => { + if next_page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("nextPageToken")); + } + next_page_token__ = Some(map_.next_value()?); + } + } + } + Ok(ListResourceAttributeKeysResponse { + resource_attribute_keys: resource_attribute_keys__.unwrap_or_default(), + next_page_token: next_page_token__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ListResourceAttributeKeysResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListResourceAttributesByEntityRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.entity.is_some() { + len += 1; + } + if self.include_archived { + len += 1; + } + if self.page_size != 0 { + len += 1; + } + if !self.page_token.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ListResourceAttributesByEntityRequest", len)?; + if let Some(v) = self.entity.as_ref() { + struct_ser.serialize_field("entity", v)?; + } + if self.include_archived { + struct_ser.serialize_field("includeArchived", &self.include_archived)?; + } + if self.page_size != 0 { + struct_ser.serialize_field("pageSize", &self.page_size)?; + } + if !self.page_token.is_empty() { + struct_ser.serialize_field("pageToken", &self.page_token)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListResourceAttributesByEntityRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "entity", + "include_archived", + "includeArchived", + "page_size", + "pageSize", + "page_token", + "pageToken", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Entity, + IncludeArchived, + PageSize, + PageToken, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "entity" => Ok(GeneratedField::Entity), + "includeArchived" | "include_archived" => Ok(GeneratedField::IncludeArchived), + "pageSize" | "page_size" => Ok(GeneratedField::PageSize), + "pageToken" | "page_token" => Ok(GeneratedField::PageToken), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListResourceAttributesByEntityRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ListResourceAttributesByEntityRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut entity__ = None; + let mut include_archived__ = None; + let mut page_size__ = None; + let mut page_token__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Entity => { + if entity__.is_some() { + return Err(serde::de::Error::duplicate_field("entity")); + } + entity__ = map_.next_value()?; + } + GeneratedField::IncludeArchived => { + if include_archived__.is_some() { + return Err(serde::de::Error::duplicate_field("includeArchived")); + } + include_archived__ = Some(map_.next_value()?); + } + GeneratedField::PageSize => { + if page_size__.is_some() { + return Err(serde::de::Error::duplicate_field("pageSize")); + } + page_size__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::PageToken => { + if page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("pageToken")); + } + page_token__ = Some(map_.next_value()?); + } + } + } + Ok(ListResourceAttributesByEntityRequest { + entity: entity__, + include_archived: include_archived__.unwrap_or_default(), + page_size: page_size__.unwrap_or_default(), + page_token: page_token__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ListResourceAttributesByEntityRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListResourceAttributesByEntityResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attributes.is_empty() { + len += 1; + } + if !self.next_page_token.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ListResourceAttributesByEntityResponse", len)?; + if !self.resource_attributes.is_empty() { + struct_ser.serialize_field("resourceAttributes", &self.resource_attributes)?; + } + if !self.next_page_token.is_empty() { + struct_ser.serialize_field("nextPageToken", &self.next_page_token)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListResourceAttributesByEntityResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attributes", + "resourceAttributes", + "next_page_token", + "nextPageToken", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributes, + NextPageToken, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributes" | "resource_attributes" => Ok(GeneratedField::ResourceAttributes), + "nextPageToken" | "next_page_token" => Ok(GeneratedField::NextPageToken), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListResourceAttributesByEntityResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ListResourceAttributesByEntityResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attributes__ = None; + let mut next_page_token__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributes => { + if resource_attributes__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributes")); + } + resource_attributes__ = Some(map_.next_value()?); + } + GeneratedField::NextPageToken => { + if next_page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("nextPageToken")); + } + next_page_token__ = Some(map_.next_value()?); + } + } + } + Ok(ListResourceAttributesByEntityResponse { + resource_attributes: resource_attributes__.unwrap_or_default(), + next_page_token: next_page_token__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ListResourceAttributesByEntityResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListResourceAttributesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.page_size != 0 { + len += 1; + } + if !self.page_token.is_empty() { + len += 1; + } + if !self.filter.is_empty() { + len += 1; + } + if !self.order_by.is_empty() { + len += 1; + } + if self.include_archived { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ListResourceAttributesRequest", len)?; + if self.page_size != 0 { + struct_ser.serialize_field("pageSize", &self.page_size)?; + } + if !self.page_token.is_empty() { + struct_ser.serialize_field("pageToken", &self.page_token)?; + } + if !self.filter.is_empty() { + struct_ser.serialize_field("filter", &self.filter)?; + } + if !self.order_by.is_empty() { + struct_ser.serialize_field("orderBy", &self.order_by)?; + } + if self.include_archived { + struct_ser.serialize_field("includeArchived", &self.include_archived)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListResourceAttributesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "page_size", + "pageSize", + "page_token", + "pageToken", + "filter", + "order_by", + "orderBy", + "include_archived", + "includeArchived", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + PageSize, + PageToken, + Filter, + OrderBy, + IncludeArchived, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "pageSize" | "page_size" => Ok(GeneratedField::PageSize), + "pageToken" | "page_token" => Ok(GeneratedField::PageToken), + "filter" => Ok(GeneratedField::Filter), + "orderBy" | "order_by" => Ok(GeneratedField::OrderBy), + "includeArchived" | "include_archived" => Ok(GeneratedField::IncludeArchived), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListResourceAttributesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ListResourceAttributesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut page_size__ = None; + let mut page_token__ = None; + let mut filter__ = None; + let mut order_by__ = None; + let mut include_archived__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::PageSize => { + if page_size__.is_some() { + return Err(serde::de::Error::duplicate_field("pageSize")); + } + page_size__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::PageToken => { + if page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("pageToken")); + } + page_token__ = Some(map_.next_value()?); + } + GeneratedField::Filter => { + if filter__.is_some() { + return Err(serde::de::Error::duplicate_field("filter")); + } + filter__ = Some(map_.next_value()?); + } + GeneratedField::OrderBy => { + if order_by__.is_some() { + return Err(serde::de::Error::duplicate_field("orderBy")); + } + order_by__ = Some(map_.next_value()?); + } + GeneratedField::IncludeArchived => { + if include_archived__.is_some() { + return Err(serde::de::Error::duplicate_field("includeArchived")); + } + include_archived__ = Some(map_.next_value()?); + } + } + } + Ok(ListResourceAttributesRequest { + page_size: page_size__.unwrap_or_default(), + page_token: page_token__.unwrap_or_default(), + filter: filter__.unwrap_or_default(), + order_by: order_by__.unwrap_or_default(), + include_archived: include_archived__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ListResourceAttributesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListResourceAttributesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attributes.is_empty() { + len += 1; + } + if !self.next_page_token.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ListResourceAttributesResponse", len)?; + if !self.resource_attributes.is_empty() { + struct_ser.serialize_field("resourceAttributes", &self.resource_attributes)?; + } + if !self.next_page_token.is_empty() { + struct_ser.serialize_field("nextPageToken", &self.next_page_token)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListResourceAttributesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attributes", + "resourceAttributes", + "next_page_token", + "nextPageToken", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributes, + NextPageToken, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributes" | "resource_attributes" => Ok(GeneratedField::ResourceAttributes), + "nextPageToken" | "next_page_token" => Ok(GeneratedField::NextPageToken), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListResourceAttributesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ListResourceAttributesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attributes__ = None; + let mut next_page_token__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributes => { + if resource_attributes__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributes")); + } + resource_attributes__ = Some(map_.next_value()?); + } + GeneratedField::NextPageToken => { + if next_page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("nextPageToken")); + } + next_page_token__ = Some(map_.next_value()?); + } + } + } + Ok(ListResourceAttributesResponse { + resource_attributes: resource_attributes__.unwrap_or_default(), + next_page_token: next_page_token__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ListResourceAttributesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ResourceAttribute { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_id.is_empty() { + len += 1; + } + if !self.organization_id.is_empty() { + len += 1; + } + if self.entity.is_some() { + len += 1; + } + if !self.resource_attribute_key_id.is_empty() { + len += 1; + } + if self.key.is_some() { + len += 1; + } + if self.enum_value_details.is_some() { + len += 1; + } + if self.created_date.is_some() { + len += 1; + } + if !self.created_by_user_id.is_empty() { + len += 1; + } + if self.archived_date.is_some() { + len += 1; + } + if self.value.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ResourceAttribute", len)?; + if !self.resource_attribute_id.is_empty() { + struct_ser.serialize_field("resourceAttributeId", &self.resource_attribute_id)?; + } + if !self.organization_id.is_empty() { + struct_ser.serialize_field("organizationId", &self.organization_id)?; + } + if let Some(v) = self.entity.as_ref() { + struct_ser.serialize_field("entity", v)?; + } + if !self.resource_attribute_key_id.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyId", &self.resource_attribute_key_id)?; + } + if let Some(v) = self.key.as_ref() { + struct_ser.serialize_field("key", v)?; + } + if let Some(v) = self.enum_value_details.as_ref() { + struct_ser.serialize_field("enumValueDetails", v)?; + } + if let Some(v) = self.created_date.as_ref() { + struct_ser.serialize_field("createdDate", v)?; + } + if !self.created_by_user_id.is_empty() { + struct_ser.serialize_field("createdByUserId", &self.created_by_user_id)?; + } + if let Some(v) = self.archived_date.as_ref() { + struct_ser.serialize_field("archivedDate", v)?; + } + if let Some(v) = self.value.as_ref() { + match v { + resource_attribute::Value::ResourceAttributeEnumValueId(v) => { + struct_ser.serialize_field("resourceAttributeEnumValueId", v)?; + } + resource_attribute::Value::BooleanValue(v) => { + struct_ser.serialize_field("booleanValue", v)?; + } + resource_attribute::Value::NumberValue(v) => { + struct_ser.serialize_field("numberValue", v)?; + } + } + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ResourceAttribute { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_id", + "resourceAttributeId", + "organization_id", + "organizationId", + "entity", + "resource_attribute_key_id", + "resourceAttributeKeyId", + "key", + "enum_value_details", + "enumValueDetails", + "created_date", + "createdDate", + "created_by_user_id", + "createdByUserId", + "archived_date", + "archivedDate", + "resource_attribute_enum_value_id", + "resourceAttributeEnumValueId", + "boolean_value", + "booleanValue", + "number_value", + "numberValue", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeId, + OrganizationId, + Entity, + ResourceAttributeKeyId, + Key, + EnumValueDetails, + CreatedDate, + CreatedByUserId, + ArchivedDate, + ResourceAttributeEnumValueId, + BooleanValue, + NumberValue, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeId" | "resource_attribute_id" => Ok(GeneratedField::ResourceAttributeId), + "organizationId" | "organization_id" => Ok(GeneratedField::OrganizationId), + "entity" => Ok(GeneratedField::Entity), + "resourceAttributeKeyId" | "resource_attribute_key_id" => Ok(GeneratedField::ResourceAttributeKeyId), + "key" => Ok(GeneratedField::Key), + "enumValueDetails" | "enum_value_details" => Ok(GeneratedField::EnumValueDetails), + "createdDate" | "created_date" => Ok(GeneratedField::CreatedDate), + "createdByUserId" | "created_by_user_id" => Ok(GeneratedField::CreatedByUserId), + "archivedDate" | "archived_date" => Ok(GeneratedField::ArchivedDate), + "resourceAttributeEnumValueId" | "resource_attribute_enum_value_id" => Ok(GeneratedField::ResourceAttributeEnumValueId), + "booleanValue" | "boolean_value" => Ok(GeneratedField::BooleanValue), + "numberValue" | "number_value" => Ok(GeneratedField::NumberValue), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ResourceAttribute; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ResourceAttribute") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_id__ = None; + let mut organization_id__ = None; + let mut entity__ = None; + let mut resource_attribute_key_id__ = None; + let mut key__ = None; + let mut enum_value_details__ = None; + let mut created_date__ = None; + let mut created_by_user_id__ = None; + let mut archived_date__ = None; + let mut value__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeId => { + if resource_attribute_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeId")); + } + resource_attribute_id__ = Some(map_.next_value()?); + } + GeneratedField::OrganizationId => { + if organization_id__.is_some() { + return Err(serde::de::Error::duplicate_field("organizationId")); + } + organization_id__ = Some(map_.next_value()?); + } + GeneratedField::Entity => { + if entity__.is_some() { + return Err(serde::de::Error::duplicate_field("entity")); + } + entity__ = map_.next_value()?; + } + GeneratedField::ResourceAttributeKeyId => { + if resource_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyId")); + } + resource_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::Key => { + if key__.is_some() { + return Err(serde::de::Error::duplicate_field("key")); + } + key__ = map_.next_value()?; + } + GeneratedField::EnumValueDetails => { + if enum_value_details__.is_some() { + return Err(serde::de::Error::duplicate_field("enumValueDetails")); + } + enum_value_details__ = map_.next_value()?; + } + GeneratedField::CreatedDate => { + if created_date__.is_some() { + return Err(serde::de::Error::duplicate_field("createdDate")); + } + created_date__ = map_.next_value()?; + } + GeneratedField::CreatedByUserId => { + if created_by_user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("createdByUserId")); + } + created_by_user_id__ = Some(map_.next_value()?); + } + GeneratedField::ArchivedDate => { + if archived_date__.is_some() { + return Err(serde::de::Error::duplicate_field("archivedDate")); + } + archived_date__ = map_.next_value()?; + } + GeneratedField::ResourceAttributeEnumValueId => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValueId")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(resource_attribute::Value::ResourceAttributeEnumValueId); + } + GeneratedField::BooleanValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("booleanValue")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(resource_attribute::Value::BooleanValue); + } + GeneratedField::NumberValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("numberValue")); + } + value__ = map_.next_value::<::std::option::Option<::pbjson::private::NumberDeserialize<_>>>()?.map(|x| resource_attribute::Value::NumberValue(x.0)); + } + } + } + Ok(ResourceAttribute { + resource_attribute_id: resource_attribute_id__.unwrap_or_default(), + organization_id: organization_id__.unwrap_or_default(), + entity: entity__, + resource_attribute_key_id: resource_attribute_key_id__.unwrap_or_default(), + key: key__, + enum_value_details: enum_value_details__, + created_date: created_date__, + created_by_user_id: created_by_user_id__.unwrap_or_default(), + archived_date: archived_date__, + value: value__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ResourceAttribute", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ResourceAttributeEntityIdentifier { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.entity_id.is_empty() { + len += 1; + } + if self.entity_type != 0 { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ResourceAttributeEntityIdentifier", len)?; + if !self.entity_id.is_empty() { + struct_ser.serialize_field("entityId", &self.entity_id)?; + } + if self.entity_type != 0 { + let v = ResourceAttributeEntityType::try_from(self.entity_type) + .map_err(|_| serde::ser::Error::custom(format!("Invalid variant {}", self.entity_type)))?; + struct_ser.serialize_field("entityType", &v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ResourceAttributeEntityIdentifier { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "entity_id", + "entityId", + "entity_type", + "entityType", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + EntityId, + EntityType, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "entityId" | "entity_id" => Ok(GeneratedField::EntityId), + "entityType" | "entity_type" => Ok(GeneratedField::EntityType), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ResourceAttributeEntityIdentifier; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ResourceAttributeEntityIdentifier") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut entity_id__ = None; + let mut entity_type__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::EntityId => { + if entity_id__.is_some() { + return Err(serde::de::Error::duplicate_field("entityId")); + } + entity_id__ = Some(map_.next_value()?); + } + GeneratedField::EntityType => { + if entity_type__.is_some() { + return Err(serde::de::Error::duplicate_field("entityType")); + } + entity_type__ = Some(map_.next_value::()? as i32); + } + } + } + Ok(ResourceAttributeEntityIdentifier { + entity_id: entity_id__.unwrap_or_default(), + entity_type: entity_type__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ResourceAttributeEntityIdentifier", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ResourceAttributeEntityType { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + let variant = match self { + Self::Unspecified => "RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED", + Self::Asset => "RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET", + Self::Channel => "RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL", + }; + serializer.serialize_str(variant) + } +} +impl<'de> serde::Deserialize<'de> for ResourceAttributeEntityType { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED", + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET", + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL", + ]; + + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ResourceAttributeEntityType; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + fn visit_i64(self, v: i64) -> std::result::Result + where + E: serde::de::Error, + { + i32::try_from(v) + .ok() + .and_then(|x| x.try_into().ok()) + .ok_or_else(|| { + serde::de::Error::invalid_value(serde::de::Unexpected::Signed(v), &self) + }) + } + + fn visit_u64(self, v: u64) -> std::result::Result + where + E: serde::de::Error, + { + i32::try_from(v) + .ok() + .and_then(|x| x.try_into().ok()) + .ok_or_else(|| { + serde::de::Error::invalid_value(serde::de::Unexpected::Unsigned(v), &self) + }) + } + + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_UNSPECIFIED" => Ok(ResourceAttributeEntityType::Unspecified), + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_ASSET" => Ok(ResourceAttributeEntityType::Asset), + "RESOURCE_ATTRIBUTE_ENTITY_TYPE_CHANNEL" => Ok(ResourceAttributeEntityType::Channel), + _ => Err(serde::de::Error::unknown_variant(value, FIELDS)), + } + } + } + deserializer.deserialize_any(GeneratedVisitor) + } +} +impl serde::Serialize for ResourceAttributeEnumValue { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_enum_value_id.is_empty() { + len += 1; + } + if !self.resource_attribute_key_id.is_empty() { + len += 1; + } + if !self.display_name.is_empty() { + len += 1; + } + if !self.description.is_empty() { + len += 1; + } + if self.created_date.is_some() { + len += 1; + } + if !self.created_by_user_id.is_empty() { + len += 1; + } + if self.modified_date.is_some() { + len += 1; + } + if !self.modified_by_user_id.is_empty() { + len += 1; + } + if self.archived_date.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ResourceAttributeEnumValue", len)?; + if !self.resource_attribute_enum_value_id.is_empty() { + struct_ser.serialize_field("resourceAttributeEnumValueId", &self.resource_attribute_enum_value_id)?; + } + if !self.resource_attribute_key_id.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyId", &self.resource_attribute_key_id)?; + } + if !self.display_name.is_empty() { + struct_ser.serialize_field("displayName", &self.display_name)?; + } + if !self.description.is_empty() { + struct_ser.serialize_field("description", &self.description)?; + } + if let Some(v) = self.created_date.as_ref() { + struct_ser.serialize_field("createdDate", v)?; + } + if !self.created_by_user_id.is_empty() { + struct_ser.serialize_field("createdByUserId", &self.created_by_user_id)?; + } + if let Some(v) = self.modified_date.as_ref() { + struct_ser.serialize_field("modifiedDate", v)?; + } + if !self.modified_by_user_id.is_empty() { + struct_ser.serialize_field("modifiedByUserId", &self.modified_by_user_id)?; + } + if let Some(v) = self.archived_date.as_ref() { + struct_ser.serialize_field("archivedDate", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ResourceAttributeEnumValue { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_enum_value_id", + "resourceAttributeEnumValueId", + "resource_attribute_key_id", + "resourceAttributeKeyId", + "display_name", + "displayName", + "description", + "created_date", + "createdDate", + "created_by_user_id", + "createdByUserId", + "modified_date", + "modifiedDate", + "modified_by_user_id", + "modifiedByUserId", + "archived_date", + "archivedDate", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeEnumValueId, + ResourceAttributeKeyId, + DisplayName, + Description, + CreatedDate, + CreatedByUserId, + ModifiedDate, + ModifiedByUserId, + ArchivedDate, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeEnumValueId" | "resource_attribute_enum_value_id" => Ok(GeneratedField::ResourceAttributeEnumValueId), + "resourceAttributeKeyId" | "resource_attribute_key_id" => Ok(GeneratedField::ResourceAttributeKeyId), + "displayName" | "display_name" => Ok(GeneratedField::DisplayName), + "description" => Ok(GeneratedField::Description), + "createdDate" | "created_date" => Ok(GeneratedField::CreatedDate), + "createdByUserId" | "created_by_user_id" => Ok(GeneratedField::CreatedByUserId), + "modifiedDate" | "modified_date" => Ok(GeneratedField::ModifiedDate), + "modifiedByUserId" | "modified_by_user_id" => Ok(GeneratedField::ModifiedByUserId), + "archivedDate" | "archived_date" => Ok(GeneratedField::ArchivedDate), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ResourceAttributeEnumValue; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ResourceAttributeEnumValue") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_enum_value_id__ = None; + let mut resource_attribute_key_id__ = None; + let mut display_name__ = None; + let mut description__ = None; + let mut created_date__ = None; + let mut created_by_user_id__ = None; + let mut modified_date__ = None; + let mut modified_by_user_id__ = None; + let mut archived_date__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeEnumValueId => { + if resource_attribute_enum_value_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValueId")); + } + resource_attribute_enum_value_id__ = Some(map_.next_value()?); + } + GeneratedField::ResourceAttributeKeyId => { + if resource_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyId")); + } + resource_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::DisplayName => { + if display_name__.is_some() { + return Err(serde::de::Error::duplicate_field("displayName")); + } + display_name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = Some(map_.next_value()?); + } + GeneratedField::CreatedDate => { + if created_date__.is_some() { + return Err(serde::de::Error::duplicate_field("createdDate")); + } + created_date__ = map_.next_value()?; + } + GeneratedField::CreatedByUserId => { + if created_by_user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("createdByUserId")); + } + created_by_user_id__ = Some(map_.next_value()?); + } + GeneratedField::ModifiedDate => { + if modified_date__.is_some() { + return Err(serde::de::Error::duplicate_field("modifiedDate")); + } + modified_date__ = map_.next_value()?; + } + GeneratedField::ModifiedByUserId => { + if modified_by_user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("modifiedByUserId")); + } + modified_by_user_id__ = Some(map_.next_value()?); + } + GeneratedField::ArchivedDate => { + if archived_date__.is_some() { + return Err(serde::de::Error::duplicate_field("archivedDate")); + } + archived_date__ = map_.next_value()?; + } + } + } + Ok(ResourceAttributeEnumValue { + resource_attribute_enum_value_id: resource_attribute_enum_value_id__.unwrap_or_default(), + resource_attribute_key_id: resource_attribute_key_id__.unwrap_or_default(), + display_name: display_name__.unwrap_or_default(), + description: description__.unwrap_or_default(), + created_date: created_date__, + created_by_user_id: created_by_user_id__.unwrap_or_default(), + modified_date: modified_date__, + modified_by_user_id: modified_by_user_id__.unwrap_or_default(), + archived_date: archived_date__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ResourceAttributeEnumValue", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ResourceAttributeKey { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_key_id.is_empty() { + len += 1; + } + if !self.organization_id.is_empty() { + len += 1; + } + if !self.display_name.is_empty() { + len += 1; + } + if !self.description.is_empty() { + len += 1; + } + if self.r#type != 0 { + len += 1; + } + if self.created_date.is_some() { + len += 1; + } + if !self.created_by_user_id.is_empty() { + len += 1; + } + if self.modified_date.is_some() { + len += 1; + } + if !self.modified_by_user_id.is_empty() { + len += 1; + } + if self.archived_date.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.ResourceAttributeKey", len)?; + if !self.resource_attribute_key_id.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyId", &self.resource_attribute_key_id)?; + } + if !self.organization_id.is_empty() { + struct_ser.serialize_field("organizationId", &self.organization_id)?; + } + if !self.display_name.is_empty() { + struct_ser.serialize_field("displayName", &self.display_name)?; + } + if !self.description.is_empty() { + struct_ser.serialize_field("description", &self.description)?; + } + if self.r#type != 0 { + let v = ResourceAttributeKeyType::try_from(self.r#type) + .map_err(|_| serde::ser::Error::custom(format!("Invalid variant {}", self.r#type)))?; + struct_ser.serialize_field("type", &v)?; + } + if let Some(v) = self.created_date.as_ref() { + struct_ser.serialize_field("createdDate", v)?; + } + if !self.created_by_user_id.is_empty() { + struct_ser.serialize_field("createdByUserId", &self.created_by_user_id)?; + } + if let Some(v) = self.modified_date.as_ref() { + struct_ser.serialize_field("modifiedDate", v)?; + } + if !self.modified_by_user_id.is_empty() { + struct_ser.serialize_field("modifiedByUserId", &self.modified_by_user_id)?; + } + if let Some(v) = self.archived_date.as_ref() { + struct_ser.serialize_field("archivedDate", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ResourceAttributeKey { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key_id", + "resourceAttributeKeyId", + "organization_id", + "organizationId", + "display_name", + "displayName", + "description", + "type", + "created_date", + "createdDate", + "created_by_user_id", + "createdByUserId", + "modified_date", + "modifiedDate", + "modified_by_user_id", + "modifiedByUserId", + "archived_date", + "archivedDate", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKeyId, + OrganizationId, + DisplayName, + Description, + Type, + CreatedDate, + CreatedByUserId, + ModifiedDate, + ModifiedByUserId, + ArchivedDate, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKeyId" | "resource_attribute_key_id" => Ok(GeneratedField::ResourceAttributeKeyId), + "organizationId" | "organization_id" => Ok(GeneratedField::OrganizationId), + "displayName" | "display_name" => Ok(GeneratedField::DisplayName), + "description" => Ok(GeneratedField::Description), + "type" => Ok(GeneratedField::Type), + "createdDate" | "created_date" => Ok(GeneratedField::CreatedDate), + "createdByUserId" | "created_by_user_id" => Ok(GeneratedField::CreatedByUserId), + "modifiedDate" | "modified_date" => Ok(GeneratedField::ModifiedDate), + "modifiedByUserId" | "modified_by_user_id" => Ok(GeneratedField::ModifiedByUserId), + "archivedDate" | "archived_date" => Ok(GeneratedField::ArchivedDate), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ResourceAttributeKey; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.ResourceAttributeKey") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key_id__ = None; + let mut organization_id__ = None; + let mut display_name__ = None; + let mut description__ = None; + let mut r#type__ = None; + let mut created_date__ = None; + let mut created_by_user_id__ = None; + let mut modified_date__ = None; + let mut modified_by_user_id__ = None; + let mut archived_date__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKeyId => { + if resource_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyId")); + } + resource_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::OrganizationId => { + if organization_id__.is_some() { + return Err(serde::de::Error::duplicate_field("organizationId")); + } + organization_id__ = Some(map_.next_value()?); + } + GeneratedField::DisplayName => { + if display_name__.is_some() { + return Err(serde::de::Error::duplicate_field("displayName")); + } + display_name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = Some(map_.next_value()?); + } + GeneratedField::Type => { + if r#type__.is_some() { + return Err(serde::de::Error::duplicate_field("type")); + } + r#type__ = Some(map_.next_value::()? as i32); + } + GeneratedField::CreatedDate => { + if created_date__.is_some() { + return Err(serde::de::Error::duplicate_field("createdDate")); + } + created_date__ = map_.next_value()?; + } + GeneratedField::CreatedByUserId => { + if created_by_user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("createdByUserId")); + } + created_by_user_id__ = Some(map_.next_value()?); + } + GeneratedField::ModifiedDate => { + if modified_date__.is_some() { + return Err(serde::de::Error::duplicate_field("modifiedDate")); + } + modified_date__ = map_.next_value()?; + } + GeneratedField::ModifiedByUserId => { + if modified_by_user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("modifiedByUserId")); + } + modified_by_user_id__ = Some(map_.next_value()?); + } + GeneratedField::ArchivedDate => { + if archived_date__.is_some() { + return Err(serde::de::Error::duplicate_field("archivedDate")); + } + archived_date__ = map_.next_value()?; + } + } + } + Ok(ResourceAttributeKey { + resource_attribute_key_id: resource_attribute_key_id__.unwrap_or_default(), + organization_id: organization_id__.unwrap_or_default(), + display_name: display_name__.unwrap_or_default(), + description: description__.unwrap_or_default(), + r#type: r#type__.unwrap_or_default(), + created_date: created_date__, + created_by_user_id: created_by_user_id__.unwrap_or_default(), + modified_date: modified_date__, + modified_by_user_id: modified_by_user_id__.unwrap_or_default(), + archived_date: archived_date__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.ResourceAttributeKey", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ResourceAttributeKeyType { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + let variant = match self { + Self::Unspecified => "RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED", + Self::Enum => "RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM", + Self::Boolean => "RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN", + Self::Number => "RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER", + Self::SetOfEnum => "RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM", + }; + serializer.serialize_str(variant) + } +} +impl<'de> serde::Deserialize<'de> for ResourceAttributeKeyType { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED", + "RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM", + "RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN", + "RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER", + "RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM", + ]; + + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ResourceAttributeKeyType; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + fn visit_i64(self, v: i64) -> std::result::Result + where + E: serde::de::Error, + { + i32::try_from(v) + .ok() + .and_then(|x| x.try_into().ok()) + .ok_or_else(|| { + serde::de::Error::invalid_value(serde::de::Unexpected::Signed(v), &self) + }) + } + + fn visit_u64(self, v: u64) -> std::result::Result + where + E: serde::de::Error, + { + i32::try_from(v) + .ok() + .and_then(|x| x.try_into().ok()) + .ok_or_else(|| { + serde::de::Error::invalid_value(serde::de::Unexpected::Unsigned(v), &self) + }) + } + + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "RESOURCE_ATTRIBUTE_KEY_TYPE_UNSPECIFIED" => Ok(ResourceAttributeKeyType::Unspecified), + "RESOURCE_ATTRIBUTE_KEY_TYPE_ENUM" => Ok(ResourceAttributeKeyType::Enum), + "RESOURCE_ATTRIBUTE_KEY_TYPE_BOOLEAN" => Ok(ResourceAttributeKeyType::Boolean), + "RESOURCE_ATTRIBUTE_KEY_TYPE_NUMBER" => Ok(ResourceAttributeKeyType::Number), + "RESOURCE_ATTRIBUTE_KEY_TYPE_SET_OF_ENUM" => Ok(ResourceAttributeKeyType::SetOfEnum), + _ => Err(serde::de::Error::unknown_variant(value, FIELDS)), + } + } + } + deserializer.deserialize_any(GeneratedVisitor) + } +} +impl serde::Serialize for UnarchiveResourceAttributeEnumValueRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_enum_value_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueRequest", len)?; + if !self.resource_attribute_enum_value_id.is_empty() { + struct_ser.serialize_field("resourceAttributeEnumValueId", &self.resource_attribute_enum_value_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UnarchiveResourceAttributeEnumValueRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_enum_value_id", + "resourceAttributeEnumValueId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeEnumValueId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeEnumValueId" | "resource_attribute_enum_value_id" => Ok(GeneratedField::ResourceAttributeEnumValueId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UnarchiveResourceAttributeEnumValueRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_enum_value_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeEnumValueId => { + if resource_attribute_enum_value_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValueId")); + } + resource_attribute_enum_value_id__ = Some(map_.next_value()?); + } + } + } + Ok(UnarchiveResourceAttributeEnumValueRequest { + resource_attribute_enum_value_id: resource_attribute_enum_value_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UnarchiveResourceAttributeEnumValueResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UnarchiveResourceAttributeEnumValueResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UnarchiveResourceAttributeEnumValueResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(UnarchiveResourceAttributeEnumValueResponse { + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeEnumValueResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UnarchiveResourceAttributeKeyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_key_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeKeyRequest", len)?; + if !self.resource_attribute_key_id.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyId", &self.resource_attribute_key_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UnarchiveResourceAttributeKeyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key_id", + "resourceAttributeKeyId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKeyId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKeyId" | "resource_attribute_key_id" => Ok(GeneratedField::ResourceAttributeKeyId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UnarchiveResourceAttributeKeyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.UnarchiveResourceAttributeKeyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKeyId => { + if resource_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyId")); + } + resource_attribute_key_id__ = Some(map_.next_value()?); + } + } + } + Ok(UnarchiveResourceAttributeKeyRequest { + resource_attribute_key_id: resource_attribute_key_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeKeyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UnarchiveResourceAttributeKeyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeKeyResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UnarchiveResourceAttributeKeyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UnarchiveResourceAttributeKeyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.UnarchiveResourceAttributeKeyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(UnarchiveResourceAttributeKeyResponse { + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeKeyResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UnarchiveResourceAttributeRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeRequest", len)?; + if !self.resource_attribute_id.is_empty() { + struct_ser.serialize_field("resourceAttributeId", &self.resource_attribute_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UnarchiveResourceAttributeRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_id", + "resourceAttributeId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeId" | "resource_attribute_id" => Ok(GeneratedField::ResourceAttributeId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UnarchiveResourceAttributeRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.UnarchiveResourceAttributeRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeId => { + if resource_attribute_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeId")); + } + resource_attribute_id__ = Some(map_.next_value()?); + } + } + } + Ok(UnarchiveResourceAttributeRequest { + resource_attribute_id: resource_attribute_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UnarchiveResourceAttributeResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UnarchiveResourceAttributeResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UnarchiveResourceAttributeResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.UnarchiveResourceAttributeResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(UnarchiveResourceAttributeResponse { + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.UnarchiveResourceAttributeResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UpdateResourceAttributeEnumValueRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_enum_value_id.is_empty() { + len += 1; + } + if !self.display_name.is_empty() { + len += 1; + } + if !self.description.is_empty() { + len += 1; + } + if self.update_mask.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.UpdateResourceAttributeEnumValueRequest", len)?; + if !self.resource_attribute_enum_value_id.is_empty() { + struct_ser.serialize_field("resourceAttributeEnumValueId", &self.resource_attribute_enum_value_id)?; + } + if !self.display_name.is_empty() { + struct_ser.serialize_field("displayName", &self.display_name)?; + } + if !self.description.is_empty() { + struct_ser.serialize_field("description", &self.description)?; + } + if let Some(v) = self.update_mask.as_ref() { + struct_ser.serialize_field("updateMask", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UpdateResourceAttributeEnumValueRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_enum_value_id", + "resourceAttributeEnumValueId", + "display_name", + "displayName", + "description", + "update_mask", + "updateMask", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeEnumValueId, + DisplayName, + Description, + UpdateMask, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeEnumValueId" | "resource_attribute_enum_value_id" => Ok(GeneratedField::ResourceAttributeEnumValueId), + "displayName" | "display_name" => Ok(GeneratedField::DisplayName), + "description" => Ok(GeneratedField::Description), + "updateMask" | "update_mask" => Ok(GeneratedField::UpdateMask), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UpdateResourceAttributeEnumValueRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.UpdateResourceAttributeEnumValueRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_enum_value_id__ = None; + let mut display_name__ = None; + let mut description__ = None; + let mut update_mask__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeEnumValueId => { + if resource_attribute_enum_value_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValueId")); + } + resource_attribute_enum_value_id__ = Some(map_.next_value()?); + } + GeneratedField::DisplayName => { + if display_name__.is_some() { + return Err(serde::de::Error::duplicate_field("displayName")); + } + display_name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = Some(map_.next_value()?); + } + GeneratedField::UpdateMask => { + if update_mask__.is_some() { + return Err(serde::de::Error::duplicate_field("updateMask")); + } + update_mask__ = map_.next_value()?; + } + } + } + Ok(UpdateResourceAttributeEnumValueRequest { + resource_attribute_enum_value_id: resource_attribute_enum_value_id__.unwrap_or_default(), + display_name: display_name__.unwrap_or_default(), + description: description__.unwrap_or_default(), + update_mask: update_mask__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.UpdateResourceAttributeEnumValueRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UpdateResourceAttributeEnumValueResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.resource_attribute_enum_value.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.UpdateResourceAttributeEnumValueResponse", len)?; + if let Some(v) = self.resource_attribute_enum_value.as_ref() { + struct_ser.serialize_field("resourceAttributeEnumValue", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UpdateResourceAttributeEnumValueResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_enum_value", + "resourceAttributeEnumValue", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeEnumValue, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeEnumValue" | "resource_attribute_enum_value" => Ok(GeneratedField::ResourceAttributeEnumValue), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UpdateResourceAttributeEnumValueResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.UpdateResourceAttributeEnumValueResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_enum_value__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeEnumValue => { + if resource_attribute_enum_value__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeEnumValue")); + } + resource_attribute_enum_value__ = map_.next_value()?; + } + } + } + Ok(UpdateResourceAttributeEnumValueResponse { + resource_attribute_enum_value: resource_attribute_enum_value__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.UpdateResourceAttributeEnumValueResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UpdateResourceAttributeKeyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.resource_attribute_key_id.is_empty() { + len += 1; + } + if !self.display_name.is_empty() { + len += 1; + } + if !self.description.is_empty() { + len += 1; + } + if self.update_mask.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.UpdateResourceAttributeKeyRequest", len)?; + if !self.resource_attribute_key_id.is_empty() { + struct_ser.serialize_field("resourceAttributeKeyId", &self.resource_attribute_key_id)?; + } + if !self.display_name.is_empty() { + struct_ser.serialize_field("displayName", &self.display_name)?; + } + if !self.description.is_empty() { + struct_ser.serialize_field("description", &self.description)?; + } + if let Some(v) = self.update_mask.as_ref() { + struct_ser.serialize_field("updateMask", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UpdateResourceAttributeKeyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key_id", + "resourceAttributeKeyId", + "display_name", + "displayName", + "description", + "update_mask", + "updateMask", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKeyId, + DisplayName, + Description, + UpdateMask, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKeyId" | "resource_attribute_key_id" => Ok(GeneratedField::ResourceAttributeKeyId), + "displayName" | "display_name" => Ok(GeneratedField::DisplayName), + "description" => Ok(GeneratedField::Description), + "updateMask" | "update_mask" => Ok(GeneratedField::UpdateMask), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UpdateResourceAttributeKeyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.UpdateResourceAttributeKeyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key_id__ = None; + let mut display_name__ = None; + let mut description__ = None; + let mut update_mask__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKeyId => { + if resource_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKeyId")); + } + resource_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::DisplayName => { + if display_name__.is_some() { + return Err(serde::de::Error::duplicate_field("displayName")); + } + display_name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = Some(map_.next_value()?); + } + GeneratedField::UpdateMask => { + if update_mask__.is_some() { + return Err(serde::de::Error::duplicate_field("updateMask")); + } + update_mask__ = map_.next_value()?; + } + } + } + Ok(UpdateResourceAttributeKeyRequest { + resource_attribute_key_id: resource_attribute_key_id__.unwrap_or_default(), + display_name: display_name__.unwrap_or_default(), + description: description__.unwrap_or_default(), + update_mask: update_mask__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.UpdateResourceAttributeKeyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UpdateResourceAttributeKeyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.resource_attribute_key.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.resource_attribute.v1.UpdateResourceAttributeKeyResponse", len)?; + if let Some(v) = self.resource_attribute_key.as_ref() { + struct_ser.serialize_field("resourceAttributeKey", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UpdateResourceAttributeKeyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "resource_attribute_key", + "resourceAttributeKey", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ResourceAttributeKey, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "resourceAttributeKey" | "resource_attribute_key" => Ok(GeneratedField::ResourceAttributeKey), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UpdateResourceAttributeKeyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.resource_attribute.v1.UpdateResourceAttributeKeyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut resource_attribute_key__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ResourceAttributeKey => { + if resource_attribute_key__.is_some() { + return Err(serde::de::Error::duplicate_field("resourceAttributeKey")); + } + resource_attribute_key__ = map_.next_value()?; + } + } + } + Ok(UpdateResourceAttributeKeyResponse { + resource_attribute_key: resource_attribute_key__, + }) + } + } + deserializer.deserialize_struct("sift.resource_attribute.v1.UpdateResourceAttributeKeyResponse", FIELDS, GeneratedVisitor) + } +} diff --git a/rust/crates/sift_rs/src/gen/sift.resource_attribute.v1.tonic.rs b/rust/crates/sift_rs/src/gen/sift.resource_attribute.v1.tonic.rs new file mode 100644 index 000000000..6e697d1f7 --- /dev/null +++ b/rust/crates/sift_rs/src/gen/sift.resource_attribute.v1.tonic.rs @@ -0,0 +1,2563 @@ +// @generated +/// Generated client implementations. +pub mod resource_attribute_service_client { + #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + use tonic::codegen::*; + use tonic::codegen::http::Uri; + #[derive(Debug, Clone)] + pub struct ResourceAttributeServiceClient { + inner: tonic::client::Grpc, + } + impl ResourceAttributeServiceClient { + /// Attempt to create a new client by connecting to a given endpoint. + pub async fn connect(dst: D) -> Result + where + D: TryInto, + D::Error: Into, + { + let conn = tonic::transport::Endpoint::new(dst)?.connect().await?; + Ok(Self::new(conn)) + } + } + impl ResourceAttributeServiceClient + where + T: tonic::client::GrpcService, + T::Error: Into, + T::ResponseBody: Body + Send + 'static, + ::Error: Into + Send, + { + pub fn new(inner: T) -> Self { + let inner = tonic::client::Grpc::new(inner); + Self { inner } + } + pub fn with_origin(inner: T, origin: Uri) -> Self { + let inner = tonic::client::Grpc::with_origin(inner, origin); + Self { inner } + } + pub fn with_interceptor( + inner: T, + interceptor: F, + ) -> ResourceAttributeServiceClient> + where + F: tonic::service::Interceptor, + T::ResponseBody: Default, + T: tonic::codegen::Service< + http::Request, + Response = http::Response< + >::ResponseBody, + >, + >, + , + >>::Error: Into + Send + Sync, + { + ResourceAttributeServiceClient::new( + InterceptedService::new(inner, interceptor), + ) + } + /// Compress requests with the given encoding. + /// + /// This requires the server to support it otherwise it might respond with an + /// error. + #[must_use] + pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.inner = self.inner.send_compressed(encoding); + self + } + /// Enable decompressing responses. + #[must_use] + pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.inner = self.inner.accept_compressed(encoding); + self + } + /// Limits the maximum size of a decoded message. + /// + /// Default: `4MB` + #[must_use] + pub fn max_decoding_message_size(mut self, limit: usize) -> Self { + self.inner = self.inner.max_decoding_message_size(limit); + self + } + /// Limits the maximum size of an encoded message. + /// + /// Default: `usize::MAX` + #[must_use] + pub fn max_encoding_message_size(mut self, limit: usize) -> Self { + self.inner = self.inner.max_encoding_message_size(limit); + self + } + pub async fn create_resource_attribute_key( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeKey", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "CreateResourceAttributeKey", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn get_resource_attribute_key( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeKey", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "GetResourceAttributeKey", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn list_resource_attribute_keys( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeKeys", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "ListResourceAttributeKeys", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn update_resource_attribute_key( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeKey", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "UpdateResourceAttributeKey", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn archive_resource_attribute_key( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeKey", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "ArchiveResourceAttributeKey", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn unarchive_resource_attribute_key( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeKey", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "UnarchiveResourceAttributeKey", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn batch_archive_resource_attribute_keys( + &mut self, + request: impl tonic::IntoRequest< + super::BatchArchiveResourceAttributeKeysRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeKeys", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "BatchArchiveResourceAttributeKeys", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn batch_unarchive_resource_attribute_keys( + &mut self, + request: impl tonic::IntoRequest< + super::BatchUnarchiveResourceAttributeKeysRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeKeys", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "BatchUnarchiveResourceAttributeKeys", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn create_resource_attribute_enum_value( + &mut self, + request: impl tonic::IntoRequest< + super::CreateResourceAttributeEnumValueRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeEnumValue", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "CreateResourceAttributeEnumValue", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn get_resource_attribute_enum_value( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeEnumValue", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "GetResourceAttributeEnumValue", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn list_resource_attribute_enum_values( + &mut self, + request: impl tonic::IntoRequest< + super::ListResourceAttributeEnumValuesRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeEnumValues", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "ListResourceAttributeEnumValues", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn update_resource_attribute_enum_value( + &mut self, + request: impl tonic::IntoRequest< + super::UpdateResourceAttributeEnumValueRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeEnumValue", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "UpdateResourceAttributeEnumValue", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn archive_resource_attribute_enum_value( + &mut self, + request: impl tonic::IntoRequest< + super::ArchiveResourceAttributeEnumValueRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeEnumValue", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "ArchiveResourceAttributeEnumValue", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn unarchive_resource_attribute_enum_value( + &mut self, + request: impl tonic::IntoRequest< + super::UnarchiveResourceAttributeEnumValueRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeEnumValue", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "UnarchiveResourceAttributeEnumValue", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn batch_archive_resource_attribute_enum_values( + &mut self, + request: impl tonic::IntoRequest< + super::BatchArchiveResourceAttributeEnumValuesRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeEnumValues", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "BatchArchiveResourceAttributeEnumValues", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn batch_unarchive_resource_attribute_enum_values( + &mut self, + request: impl tonic::IntoRequest< + super::BatchUnarchiveResourceAttributeEnumValuesRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeEnumValues", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "BatchUnarchiveResourceAttributeEnumValues", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn create_resource_attribute( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttribute", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "CreateResourceAttribute", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn batch_create_resource_attributes( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/BatchCreateResourceAttributes", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "BatchCreateResourceAttributes", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn get_resource_attribute( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttribute", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "GetResourceAttribute", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn list_resource_attributes( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributes", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "ListResourceAttributes", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn list_resource_attributes_by_entity( + &mut self, + request: impl tonic::IntoRequest< + super::ListResourceAttributesByEntityRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributesByEntity", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "ListResourceAttributesByEntity", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn archive_resource_attribute( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttribute", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "ArchiveResourceAttribute", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn unarchive_resource_attribute( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttribute", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "UnarchiveResourceAttribute", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn batch_archive_resource_attributes( + &mut self, + request: impl tonic::IntoRequest< + super::BatchArchiveResourceAttributesRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributes", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "BatchArchiveResourceAttributes", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn batch_unarchive_resource_attributes( + &mut self, + request: impl tonic::IntoRequest< + super::BatchUnarchiveResourceAttributesRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributes", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.resource_attribute.v1.ResourceAttributeService", + "BatchUnarchiveResourceAttributes", + ), + ); + self.inner.unary(req, path, codec).await + } + } +} +/// Generated server implementations. +pub mod resource_attribute_service_server { + #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + use tonic::codegen::*; + /// Generated trait containing gRPC methods that should be implemented for use with ResourceAttributeServiceServer. + #[async_trait] + pub trait ResourceAttributeService: Send + Sync + 'static { + async fn create_resource_attribute_key( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn get_resource_attribute_key( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn list_resource_attribute_keys( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn update_resource_attribute_key( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn archive_resource_attribute_key( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn unarchive_resource_attribute_key( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn batch_archive_resource_attribute_keys( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn batch_unarchive_resource_attribute_keys( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn create_resource_attribute_enum_value( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn get_resource_attribute_enum_value( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn list_resource_attribute_enum_values( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn update_resource_attribute_enum_value( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn archive_resource_attribute_enum_value( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn unarchive_resource_attribute_enum_value( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn batch_archive_resource_attribute_enum_values( + &self, + request: tonic::Request< + super::BatchArchiveResourceAttributeEnumValuesRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn batch_unarchive_resource_attribute_enum_values( + &self, + request: tonic::Request< + super::BatchUnarchiveResourceAttributeEnumValuesRequest, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn create_resource_attribute( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn batch_create_resource_attributes( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn get_resource_attribute( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn list_resource_attributes( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn list_resource_attributes_by_entity( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn archive_resource_attribute( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn unarchive_resource_attribute( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn batch_archive_resource_attributes( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn batch_unarchive_resource_attributes( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + } + #[derive(Debug)] + pub struct ResourceAttributeServiceServer { + inner: _Inner, + accept_compression_encodings: EnabledCompressionEncodings, + send_compression_encodings: EnabledCompressionEncodings, + max_decoding_message_size: Option, + max_encoding_message_size: Option, + } + struct _Inner(Arc); + impl ResourceAttributeServiceServer { + pub fn new(inner: T) -> Self { + Self::from_arc(Arc::new(inner)) + } + pub fn from_arc(inner: Arc) -> Self { + let inner = _Inner(inner); + Self { + inner, + accept_compression_encodings: Default::default(), + send_compression_encodings: Default::default(), + max_decoding_message_size: None, + max_encoding_message_size: None, + } + } + pub fn with_interceptor( + inner: T, + interceptor: F, + ) -> InterceptedService + where + F: tonic::service::Interceptor, + { + InterceptedService::new(Self::new(inner), interceptor) + } + /// Enable decompressing requests with the given encoding. + #[must_use] + pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.accept_compression_encodings.enable(encoding); + self + } + /// Compress responses with the given encoding, if the client supports it. + #[must_use] + pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.send_compression_encodings.enable(encoding); + self + } + /// Limits the maximum size of a decoded message. + /// + /// Default: `4MB` + #[must_use] + pub fn max_decoding_message_size(mut self, limit: usize) -> Self { + self.max_decoding_message_size = Some(limit); + self + } + /// Limits the maximum size of an encoded message. + /// + /// Default: `usize::MAX` + #[must_use] + pub fn max_encoding_message_size(mut self, limit: usize) -> Self { + self.max_encoding_message_size = Some(limit); + self + } + } + impl tonic::codegen::Service> + for ResourceAttributeServiceServer + where + T: ResourceAttributeService, + B: Body + Send + 'static, + B::Error: Into + Send + 'static, + { + type Response = http::Response; + type Error = std::convert::Infallible; + type Future = BoxFuture; + fn poll_ready( + &mut self, + _cx: &mut Context<'_>, + ) -> Poll> { + Poll::Ready(Ok(())) + } + fn call(&mut self, req: http::Request) -> Self::Future { + let inner = self.inner.clone(); + match req.uri().path() { + "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeKey" => { + #[allow(non_camel_case_types)] + struct CreateResourceAttributeKeySvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::CreateResourceAttributeKeyRequest, + > for CreateResourceAttributeKeySvc { + type Response = super::CreateResourceAttributeKeyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::CreateResourceAttributeKeyRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::create_resource_attribute_key( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = CreateResourceAttributeKeySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeKey" => { + #[allow(non_camel_case_types)] + struct GetResourceAttributeKeySvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService + for GetResourceAttributeKeySvc { + type Response = super::GetResourceAttributeKeyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::GetResourceAttributeKeyRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::get_resource_attribute_key( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = GetResourceAttributeKeySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeKeys" => { + #[allow(non_camel_case_types)] + struct ListResourceAttributeKeysSvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::ListResourceAttributeKeysRequest, + > for ListResourceAttributeKeysSvc { + type Response = super::ListResourceAttributeKeysResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::ListResourceAttributeKeysRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::list_resource_attribute_keys( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ListResourceAttributeKeysSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeKey" => { + #[allow(non_camel_case_types)] + struct UpdateResourceAttributeKeySvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::UpdateResourceAttributeKeyRequest, + > for UpdateResourceAttributeKeySvc { + type Response = super::UpdateResourceAttributeKeyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::UpdateResourceAttributeKeyRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::update_resource_attribute_key( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = UpdateResourceAttributeKeySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeKey" => { + #[allow(non_camel_case_types)] + struct ArchiveResourceAttributeKeySvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::ArchiveResourceAttributeKeyRequest, + > for ArchiveResourceAttributeKeySvc { + type Response = super::ArchiveResourceAttributeKeyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::ArchiveResourceAttributeKeyRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::archive_resource_attribute_key( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ArchiveResourceAttributeKeySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeKey" => { + #[allow(non_camel_case_types)] + struct UnarchiveResourceAttributeKeySvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::UnarchiveResourceAttributeKeyRequest, + > for UnarchiveResourceAttributeKeySvc { + type Response = super::UnarchiveResourceAttributeKeyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::UnarchiveResourceAttributeKeyRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::unarchive_resource_attribute_key( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = UnarchiveResourceAttributeKeySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeKeys" => { + #[allow(non_camel_case_types)] + struct BatchArchiveResourceAttributeKeysSvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::BatchArchiveResourceAttributeKeysRequest, + > for BatchArchiveResourceAttributeKeysSvc { + type Response = super::BatchArchiveResourceAttributeKeysResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::BatchArchiveResourceAttributeKeysRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::batch_archive_resource_attribute_keys( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = BatchArchiveResourceAttributeKeysSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeKeys" => { + #[allow(non_camel_case_types)] + struct BatchUnarchiveResourceAttributeKeysSvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::BatchUnarchiveResourceAttributeKeysRequest, + > for BatchUnarchiveResourceAttributeKeysSvc { + type Response = super::BatchUnarchiveResourceAttributeKeysResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::BatchUnarchiveResourceAttributeKeysRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::batch_unarchive_resource_attribute_keys( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = BatchUnarchiveResourceAttributeKeysSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttributeEnumValue" => { + #[allow(non_camel_case_types)] + struct CreateResourceAttributeEnumValueSvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::CreateResourceAttributeEnumValueRequest, + > for CreateResourceAttributeEnumValueSvc { + type Response = super::CreateResourceAttributeEnumValueResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::CreateResourceAttributeEnumValueRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::create_resource_attribute_enum_value( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = CreateResourceAttributeEnumValueSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttributeEnumValue" => { + #[allow(non_camel_case_types)] + struct GetResourceAttributeEnumValueSvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::GetResourceAttributeEnumValueRequest, + > for GetResourceAttributeEnumValueSvc { + type Response = super::GetResourceAttributeEnumValueResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::GetResourceAttributeEnumValueRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::get_resource_attribute_enum_value( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = GetResourceAttributeEnumValueSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributeEnumValues" => { + #[allow(non_camel_case_types)] + struct ListResourceAttributeEnumValuesSvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::ListResourceAttributeEnumValuesRequest, + > for ListResourceAttributeEnumValuesSvc { + type Response = super::ListResourceAttributeEnumValuesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::ListResourceAttributeEnumValuesRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::list_resource_attribute_enum_values( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ListResourceAttributeEnumValuesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/UpdateResourceAttributeEnumValue" => { + #[allow(non_camel_case_types)] + struct UpdateResourceAttributeEnumValueSvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::UpdateResourceAttributeEnumValueRequest, + > for UpdateResourceAttributeEnumValueSvc { + type Response = super::UpdateResourceAttributeEnumValueResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::UpdateResourceAttributeEnumValueRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::update_resource_attribute_enum_value( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = UpdateResourceAttributeEnumValueSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttributeEnumValue" => { + #[allow(non_camel_case_types)] + struct ArchiveResourceAttributeEnumValueSvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::ArchiveResourceAttributeEnumValueRequest, + > for ArchiveResourceAttributeEnumValueSvc { + type Response = super::ArchiveResourceAttributeEnumValueResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::ArchiveResourceAttributeEnumValueRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::archive_resource_attribute_enum_value( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ArchiveResourceAttributeEnumValueSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttributeEnumValue" => { + #[allow(non_camel_case_types)] + struct UnarchiveResourceAttributeEnumValueSvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::UnarchiveResourceAttributeEnumValueRequest, + > for UnarchiveResourceAttributeEnumValueSvc { + type Response = super::UnarchiveResourceAttributeEnumValueResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::UnarchiveResourceAttributeEnumValueRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::unarchive_resource_attribute_enum_value( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = UnarchiveResourceAttributeEnumValueSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributeEnumValues" => { + #[allow(non_camel_case_types)] + struct BatchArchiveResourceAttributeEnumValuesSvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::BatchArchiveResourceAttributeEnumValuesRequest, + > for BatchArchiveResourceAttributeEnumValuesSvc { + type Response = super::BatchArchiveResourceAttributeEnumValuesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::BatchArchiveResourceAttributeEnumValuesRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::batch_archive_resource_attribute_enum_values( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = BatchArchiveResourceAttributeEnumValuesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributeEnumValues" => { + #[allow(non_camel_case_types)] + struct BatchUnarchiveResourceAttributeEnumValuesSvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::BatchUnarchiveResourceAttributeEnumValuesRequest, + > for BatchUnarchiveResourceAttributeEnumValuesSvc { + type Response = super::BatchUnarchiveResourceAttributeEnumValuesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::BatchUnarchiveResourceAttributeEnumValuesRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::batch_unarchive_resource_attribute_enum_values( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = BatchUnarchiveResourceAttributeEnumValuesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/CreateResourceAttribute" => { + #[allow(non_camel_case_types)] + struct CreateResourceAttributeSvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService + for CreateResourceAttributeSvc { + type Response = super::CreateResourceAttributeResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::CreateResourceAttributeRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::create_resource_attribute( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = CreateResourceAttributeSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/BatchCreateResourceAttributes" => { + #[allow(non_camel_case_types)] + struct BatchCreateResourceAttributesSvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::BatchCreateResourceAttributesRequest, + > for BatchCreateResourceAttributesSvc { + type Response = super::BatchCreateResourceAttributesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::BatchCreateResourceAttributesRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::batch_create_resource_attributes( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = BatchCreateResourceAttributesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/GetResourceAttribute" => { + #[allow(non_camel_case_types)] + struct GetResourceAttributeSvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService + for GetResourceAttributeSvc { + type Response = super::GetResourceAttributeResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::get_resource_attribute( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = GetResourceAttributeSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributes" => { + #[allow(non_camel_case_types)] + struct ListResourceAttributesSvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService + for ListResourceAttributesSvc { + type Response = super::ListResourceAttributesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::list_resource_attributes( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ListResourceAttributesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/ListResourceAttributesByEntity" => { + #[allow(non_camel_case_types)] + struct ListResourceAttributesByEntitySvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::ListResourceAttributesByEntityRequest, + > for ListResourceAttributesByEntitySvc { + type Response = super::ListResourceAttributesByEntityResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::ListResourceAttributesByEntityRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::list_resource_attributes_by_entity( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ListResourceAttributesByEntitySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/ArchiveResourceAttribute" => { + #[allow(non_camel_case_types)] + struct ArchiveResourceAttributeSvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService + for ArchiveResourceAttributeSvc { + type Response = super::ArchiveResourceAttributeResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::ArchiveResourceAttributeRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::archive_resource_attribute( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ArchiveResourceAttributeSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/UnarchiveResourceAttribute" => { + #[allow(non_camel_case_types)] + struct UnarchiveResourceAttributeSvc( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::UnarchiveResourceAttributeRequest, + > for UnarchiveResourceAttributeSvc { + type Response = super::UnarchiveResourceAttributeResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::UnarchiveResourceAttributeRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::unarchive_resource_attribute( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = UnarchiveResourceAttributeSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/BatchArchiveResourceAttributes" => { + #[allow(non_camel_case_types)] + struct BatchArchiveResourceAttributesSvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::BatchArchiveResourceAttributesRequest, + > for BatchArchiveResourceAttributesSvc { + type Response = super::BatchArchiveResourceAttributesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::BatchArchiveResourceAttributesRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::batch_archive_resource_attributes( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = BatchArchiveResourceAttributesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.resource_attribute.v1.ResourceAttributeService/BatchUnarchiveResourceAttributes" => { + #[allow(non_camel_case_types)] + struct BatchUnarchiveResourceAttributesSvc< + T: ResourceAttributeService, + >( + pub Arc, + ); + impl< + T: ResourceAttributeService, + > tonic::server::UnaryService< + super::BatchUnarchiveResourceAttributesRequest, + > for BatchUnarchiveResourceAttributesSvc { + type Response = super::BatchUnarchiveResourceAttributesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::BatchUnarchiveResourceAttributesRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::batch_unarchive_resource_attributes( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = BatchUnarchiveResourceAttributesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + _ => { + Box::pin(async move { + Ok( + http::Response::builder() + .status(200) + .header("grpc-status", "12") + .header("content-type", "application/grpc") + .body(empty_body()) + .unwrap(), + ) + }) + } + } + } + } + impl Clone for ResourceAttributeServiceServer { + fn clone(&self) -> Self { + let inner = self.inner.clone(); + Self { + inner, + accept_compression_encodings: self.accept_compression_encodings, + send_compression_encodings: self.send_compression_encodings, + max_decoding_message_size: self.max_decoding_message_size, + max_encoding_message_size: self.max_encoding_message_size, + } + } + } + impl Clone for _Inner { + fn clone(&self) -> Self { + Self(Arc::clone(&self.0)) + } + } + impl std::fmt::Debug for _Inner { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{:?}", self.0) + } + } + impl tonic::server::NamedService + for ResourceAttributeServiceServer { + const NAME: &'static str = "sift.resource_attribute.v1.ResourceAttributeService"; + } +} diff --git a/rust/crates/sift_rs/src/gen/sift.user_attributes.v1.rs b/rust/crates/sift_rs/src/gen/sift.user_attributes.v1.rs new file mode 100644 index 000000000..17f4cc31b --- /dev/null +++ b/rust/crates/sift_rs/src/gen/sift.user_attributes.v1.rs @@ -0,0 +1,327 @@ +// @generated +// This file is @generated by prost-build. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UserAttributeKey { + #[prost(string, tag="1")] + pub user_attribute_key_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub organization_id: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub description: ::prost::alloc::string::String, + #[prost(enumeration="UserAttributeValueType", tag="5")] + pub r#type: i32, + #[prost(message, optional, tag="6")] + pub created_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(string, tag="7")] + pub created_by_user_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="8")] + pub modified_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(string, tag="9")] + pub modified_by_user_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="10")] + pub archived_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(bool, tag="11")] + pub is_archived: bool, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateUserAttributeKeyRequest { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub description: ::prost::alloc::string::String, + #[prost(enumeration="UserAttributeValueType", tag="3")] + pub r#type: i32, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateUserAttributeKeyResponse { + #[prost(message, optional, tag="1")] + pub user_attribute_key: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateUserAttributeKeyRequest { + #[prost(string, tag="1")] + pub user_attribute_key_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub description: ::prost::alloc::string::String, + #[prost(message, optional, tag="4")] + pub update_mask: ::core::option::Option<::pbjson_types::FieldMask>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateUserAttributeKeyResponse { + #[prost(message, optional, tag="1")] + pub user_attribute_key: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetUserAttributeKeyRequest { + #[prost(string, tag="1")] + pub user_attribute_key_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetUserAttributeKeyResponse { + #[prost(message, optional, tag="1")] + pub user_attribute_key: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListUserAttributeKeysRequest { + #[prost(uint32, tag="1")] + pub page_size: u32, + #[prost(string, tag="2")] + pub page_token: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub filter: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub order_by: ::prost::alloc::string::String, + #[prost(string, tag="5")] + pub organization_id: ::prost::alloc::string::String, + #[prost(bool, tag="6")] + pub include_archived: bool, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListUserAttributeKeysResponse { + #[prost(message, repeated, tag="1")] + pub user_attribute_keys: ::prost::alloc::vec::Vec, + #[prost(string, tag="2")] + pub next_page_token: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArchiveUserAttributeKeysRequest { + #[prost(string, repeated, tag="1")] + pub user_attribute_key_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct ArchiveUserAttributeKeysResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UnarchiveUserAttributeKeysRequest { + #[prost(string, repeated, tag="1")] + pub user_attribute_key_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct UnarchiveUserAttributeKeysResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UserAttributeValue { + #[prost(string, tag="1")] + pub user_attribute_value_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub user_attribute_key_id: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub user_id: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub organization_id: ::prost::alloc::string::String, + #[prost(string, tag="8")] + pub created_by_user_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="9")] + pub created_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(message, optional, tag="10")] + pub archived_date: ::core::option::Option<::pbjson_types::Timestamp>, + #[prost(bool, tag="11")] + pub is_archived: bool, + #[prost(message, optional, tag="12")] + pub key: ::core::option::Option, + #[prost(oneof="user_attribute_value::Value", tags="5, 6, 7")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `UserAttributeValue`. +pub mod user_attribute_value { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + #[prost(string, tag="5")] + StringValue(::prost::alloc::string::String), + #[prost(double, tag="6")] + NumberValue(f64), + #[prost(bool, tag="7")] + BooleanValue(bool), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateUserAttributeValueRequest { + #[prost(string, tag="1")] + pub user_attribute_key_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub user_id: ::prost::alloc::string::String, + #[prost(oneof="create_user_attribute_value_request::Value", tags="4, 5, 6")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `CreateUserAttributeValueRequest`. +pub mod create_user_attribute_value_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + #[prost(string, tag="4")] + StringValue(::prost::alloc::string::String), + #[prost(double, tag="5")] + NumberValue(f64), + #[prost(bool, tag="6")] + BooleanValue(bool), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateUserAttributeValueResponse { + #[prost(message, optional, tag="1")] + pub user_attribute_value: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BatchCreateUserAttributeValueRequest { + #[prost(string, tag="1")] + pub user_attribute_key_id: ::prost::alloc::string::String, + #[prost(string, repeated, tag="2")] + pub user_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + #[prost(oneof="batch_create_user_attribute_value_request::Value", tags="3, 4, 5")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `BatchCreateUserAttributeValueRequest`. +pub mod batch_create_user_attribute_value_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + #[prost(string, tag="3")] + StringValue(::prost::alloc::string::String), + #[prost(double, tag="4")] + NumberValue(f64), + #[prost(bool, tag="5")] + BooleanValue(bool), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BatchCreateUserAttributeValueResponse { + #[prost(message, repeated, tag="1")] + pub user_attribute_values: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListUserAttributeKeyValuesRequest { + #[prost(string, tag="1")] + pub user_attribute_key_id: ::prost::alloc::string::String, + #[prost(uint32, tag="2")] + pub page_size: u32, + #[prost(string, tag="3")] + pub page_token: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub filter: ::prost::alloc::string::String, + #[prost(string, tag="5")] + pub order_by: ::prost::alloc::string::String, + #[prost(bool, tag="6")] + pub include_archived: bool, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListUserAttributeKeyValuesResponse { + #[prost(message, repeated, tag="1")] + pub user_attribute_values: ::prost::alloc::vec::Vec, + #[prost(string, tag="2")] + pub next_page_token: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListUserAttributeValuesRequest { + #[prost(uint32, tag="1")] + pub page_size: u32, + #[prost(string, tag="2")] + pub page_token: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub filter: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub order_by: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListUserAttributeValuesResponse { + #[prost(message, repeated, tag="1")] + pub user_attribute_values: ::prost::alloc::vec::Vec, + #[prost(string, tag="2")] + pub next_page_token: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetUserAttributeValueRequest { + #[prost(string, tag="1")] + pub user_attribute_value_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetUserAttributeValueResponse { + #[prost(message, optional, tag="1")] + pub user_attribute_value: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArchiveUserAttributeValuesRequest { + #[prost(string, repeated, tag="1")] + pub user_attribute_value_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct ArchiveUserAttributeValuesResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UnarchiveUserAttributeValuesRequest { + #[prost(string, repeated, tag="1")] + pub user_attribute_value_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct UnarchiveUserAttributeValuesResponse { +} +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum UserAttributeValueType { + Unspecified = 0, + String = 1, + Boolean = 2, + Number = 3, + SetOfString = 4, +} +impl UserAttributeValueType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + UserAttributeValueType::Unspecified => "USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED", + UserAttributeValueType::String => "USER_ATTRIBUTE_VALUE_TYPE_STRING", + UserAttributeValueType::Boolean => "USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN", + UserAttributeValueType::Number => "USER_ATTRIBUTE_VALUE_TYPE_NUMBER", + UserAttributeValueType::SetOfString => "USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED" => Some(Self::Unspecified), + "USER_ATTRIBUTE_VALUE_TYPE_STRING" => Some(Self::String), + "USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN" => Some(Self::Boolean), + "USER_ATTRIBUTE_VALUE_TYPE_NUMBER" => Some(Self::Number), + "USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING" => Some(Self::SetOfString), + _ => None, + } + } +} +include!("sift.user_attributes.v1.tonic.rs"); +include!("sift.user_attributes.v1.serde.rs"); +// @@protoc_insertion_point(module) \ No newline at end of file diff --git a/rust/crates/sift_rs/src/gen/sift.user_attributes.v1.serde.rs b/rust/crates/sift_rs/src/gen/sift.user_attributes.v1.serde.rs new file mode 100644 index 000000000..23a57aa0d --- /dev/null +++ b/rust/crates/sift_rs/src/gen/sift.user_attributes.v1.serde.rs @@ -0,0 +1,3453 @@ +// @generated +impl serde::Serialize for ArchiveUserAttributeKeysRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_key_ids.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.ArchiveUserAttributeKeysRequest", len)?; + if !self.user_attribute_key_ids.is_empty() { + struct_ser.serialize_field("userAttributeKeyIds", &self.user_attribute_key_ids)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchiveUserAttributeKeysRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_key_ids", + "userAttributeKeyIds", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKeyIds, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKeyIds" | "user_attribute_key_ids" => Ok(GeneratedField::UserAttributeKeyIds), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchiveUserAttributeKeysRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.ArchiveUserAttributeKeysRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_key_ids__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKeyIds => { + if user_attribute_key_ids__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKeyIds")); + } + user_attribute_key_ids__ = Some(map_.next_value()?); + } + } + } + Ok(ArchiveUserAttributeKeysRequest { + user_attribute_key_ids: user_attribute_key_ids__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.ArchiveUserAttributeKeysRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ArchiveUserAttributeKeysResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.user_attributes.v1.ArchiveUserAttributeKeysResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchiveUserAttributeKeysResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchiveUserAttributeKeysResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.ArchiveUserAttributeKeysResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(ArchiveUserAttributeKeysResponse { + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.ArchiveUserAttributeKeysResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ArchiveUserAttributeValuesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_value_ids.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.ArchiveUserAttributeValuesRequest", len)?; + if !self.user_attribute_value_ids.is_empty() { + struct_ser.serialize_field("userAttributeValueIds", &self.user_attribute_value_ids)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchiveUserAttributeValuesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_value_ids", + "userAttributeValueIds", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeValueIds, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeValueIds" | "user_attribute_value_ids" => Ok(GeneratedField::UserAttributeValueIds), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchiveUserAttributeValuesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.ArchiveUserAttributeValuesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_value_ids__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeValueIds => { + if user_attribute_value_ids__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeValueIds")); + } + user_attribute_value_ids__ = Some(map_.next_value()?); + } + } + } + Ok(ArchiveUserAttributeValuesRequest { + user_attribute_value_ids: user_attribute_value_ids__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.ArchiveUserAttributeValuesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ArchiveUserAttributeValuesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.user_attributes.v1.ArchiveUserAttributeValuesResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ArchiveUserAttributeValuesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ArchiveUserAttributeValuesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.ArchiveUserAttributeValuesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(ArchiveUserAttributeValuesResponse { + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.ArchiveUserAttributeValuesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchCreateUserAttributeValueRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_key_id.is_empty() { + len += 1; + } + if !self.user_ids.is_empty() { + len += 1; + } + if self.value.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.BatchCreateUserAttributeValueRequest", len)?; + if !self.user_attribute_key_id.is_empty() { + struct_ser.serialize_field("userAttributeKeyId", &self.user_attribute_key_id)?; + } + if !self.user_ids.is_empty() { + struct_ser.serialize_field("userIds", &self.user_ids)?; + } + if let Some(v) = self.value.as_ref() { + match v { + batch_create_user_attribute_value_request::Value::StringValue(v) => { + struct_ser.serialize_field("stringValue", v)?; + } + batch_create_user_attribute_value_request::Value::NumberValue(v) => { + struct_ser.serialize_field("numberValue", v)?; + } + batch_create_user_attribute_value_request::Value::BooleanValue(v) => { + struct_ser.serialize_field("booleanValue", v)?; + } + } + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchCreateUserAttributeValueRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_key_id", + "userAttributeKeyId", + "user_ids", + "userIds", + "string_value", + "stringValue", + "number_value", + "numberValue", + "boolean_value", + "booleanValue", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKeyId, + UserIds, + StringValue, + NumberValue, + BooleanValue, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKeyId" | "user_attribute_key_id" => Ok(GeneratedField::UserAttributeKeyId), + "userIds" | "user_ids" => Ok(GeneratedField::UserIds), + "stringValue" | "string_value" => Ok(GeneratedField::StringValue), + "numberValue" | "number_value" => Ok(GeneratedField::NumberValue), + "booleanValue" | "boolean_value" => Ok(GeneratedField::BooleanValue), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchCreateUserAttributeValueRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.BatchCreateUserAttributeValueRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_key_id__ = None; + let mut user_ids__ = None; + let mut value__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKeyId => { + if user_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKeyId")); + } + user_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::UserIds => { + if user_ids__.is_some() { + return Err(serde::de::Error::duplicate_field("userIds")); + } + user_ids__ = Some(map_.next_value()?); + } + GeneratedField::StringValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("stringValue")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(batch_create_user_attribute_value_request::Value::StringValue); + } + GeneratedField::NumberValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("numberValue")); + } + value__ = map_.next_value::<::std::option::Option<::pbjson::private::NumberDeserialize<_>>>()?.map(|x| batch_create_user_attribute_value_request::Value::NumberValue(x.0)); + } + GeneratedField::BooleanValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("booleanValue")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(batch_create_user_attribute_value_request::Value::BooleanValue); + } + } + } + Ok(BatchCreateUserAttributeValueRequest { + user_attribute_key_id: user_attribute_key_id__.unwrap_or_default(), + user_ids: user_ids__.unwrap_or_default(), + value: value__, + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.BatchCreateUserAttributeValueRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for BatchCreateUserAttributeValueResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_values.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.BatchCreateUserAttributeValueResponse", len)?; + if !self.user_attribute_values.is_empty() { + struct_ser.serialize_field("userAttributeValues", &self.user_attribute_values)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for BatchCreateUserAttributeValueResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_values", + "userAttributeValues", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeValues, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeValues" | "user_attribute_values" => Ok(GeneratedField::UserAttributeValues), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = BatchCreateUserAttributeValueResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.BatchCreateUserAttributeValueResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_values__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeValues => { + if user_attribute_values__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeValues")); + } + user_attribute_values__ = Some(map_.next_value()?); + } + } + } + Ok(BatchCreateUserAttributeValueResponse { + user_attribute_values: user_attribute_values__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.BatchCreateUserAttributeValueResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreateUserAttributeKeyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.name.is_empty() { + len += 1; + } + if !self.description.is_empty() { + len += 1; + } + if self.r#type != 0 { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.CreateUserAttributeKeyRequest", len)?; + if !self.name.is_empty() { + struct_ser.serialize_field("name", &self.name)?; + } + if !self.description.is_empty() { + struct_ser.serialize_field("description", &self.description)?; + } + if self.r#type != 0 { + let v = UserAttributeValueType::try_from(self.r#type) + .map_err(|_| serde::ser::Error::custom(format!("Invalid variant {}", self.r#type)))?; + struct_ser.serialize_field("type", &v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreateUserAttributeKeyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "name", + "description", + "type", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Name, + Description, + Type, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "name" => Ok(GeneratedField::Name), + "description" => Ok(GeneratedField::Description), + "type" => Ok(GeneratedField::Type), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreateUserAttributeKeyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.CreateUserAttributeKeyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut name__ = None; + let mut description__ = None; + let mut r#type__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Name => { + if name__.is_some() { + return Err(serde::de::Error::duplicate_field("name")); + } + name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = Some(map_.next_value()?); + } + GeneratedField::Type => { + if r#type__.is_some() { + return Err(serde::de::Error::duplicate_field("type")); + } + r#type__ = Some(map_.next_value::()? as i32); + } + } + } + Ok(CreateUserAttributeKeyRequest { + name: name__.unwrap_or_default(), + description: description__.unwrap_or_default(), + r#type: r#type__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.CreateUserAttributeKeyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreateUserAttributeKeyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.user_attribute_key.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.CreateUserAttributeKeyResponse", len)?; + if let Some(v) = self.user_attribute_key.as_ref() { + struct_ser.serialize_field("userAttributeKey", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreateUserAttributeKeyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_key", + "userAttributeKey", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKey, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKey" | "user_attribute_key" => Ok(GeneratedField::UserAttributeKey), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreateUserAttributeKeyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.CreateUserAttributeKeyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_key__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKey => { + if user_attribute_key__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKey")); + } + user_attribute_key__ = map_.next_value()?; + } + } + } + Ok(CreateUserAttributeKeyResponse { + user_attribute_key: user_attribute_key__, + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.CreateUserAttributeKeyResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreateUserAttributeValueRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_key_id.is_empty() { + len += 1; + } + if !self.user_id.is_empty() { + len += 1; + } + if self.value.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.CreateUserAttributeValueRequest", len)?; + if !self.user_attribute_key_id.is_empty() { + struct_ser.serialize_field("userAttributeKeyId", &self.user_attribute_key_id)?; + } + if !self.user_id.is_empty() { + struct_ser.serialize_field("userId", &self.user_id)?; + } + if let Some(v) = self.value.as_ref() { + match v { + create_user_attribute_value_request::Value::StringValue(v) => { + struct_ser.serialize_field("stringValue", v)?; + } + create_user_attribute_value_request::Value::NumberValue(v) => { + struct_ser.serialize_field("numberValue", v)?; + } + create_user_attribute_value_request::Value::BooleanValue(v) => { + struct_ser.serialize_field("booleanValue", v)?; + } + } + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreateUserAttributeValueRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_key_id", + "userAttributeKeyId", + "user_id", + "userId", + "string_value", + "stringValue", + "number_value", + "numberValue", + "boolean_value", + "booleanValue", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKeyId, + UserId, + StringValue, + NumberValue, + BooleanValue, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKeyId" | "user_attribute_key_id" => Ok(GeneratedField::UserAttributeKeyId), + "userId" | "user_id" => Ok(GeneratedField::UserId), + "stringValue" | "string_value" => Ok(GeneratedField::StringValue), + "numberValue" | "number_value" => Ok(GeneratedField::NumberValue), + "booleanValue" | "boolean_value" => Ok(GeneratedField::BooleanValue), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreateUserAttributeValueRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.CreateUserAttributeValueRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_key_id__ = None; + let mut user_id__ = None; + let mut value__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKeyId => { + if user_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKeyId")); + } + user_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::UserId => { + if user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("userId")); + } + user_id__ = Some(map_.next_value()?); + } + GeneratedField::StringValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("stringValue")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(create_user_attribute_value_request::Value::StringValue); + } + GeneratedField::NumberValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("numberValue")); + } + value__ = map_.next_value::<::std::option::Option<::pbjson::private::NumberDeserialize<_>>>()?.map(|x| create_user_attribute_value_request::Value::NumberValue(x.0)); + } + GeneratedField::BooleanValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("booleanValue")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(create_user_attribute_value_request::Value::BooleanValue); + } + } + } + Ok(CreateUserAttributeValueRequest { + user_attribute_key_id: user_attribute_key_id__.unwrap_or_default(), + user_id: user_id__.unwrap_or_default(), + value: value__, + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.CreateUserAttributeValueRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for CreateUserAttributeValueResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.user_attribute_value.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.CreateUserAttributeValueResponse", len)?; + if let Some(v) = self.user_attribute_value.as_ref() { + struct_ser.serialize_field("userAttributeValue", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for CreateUserAttributeValueResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_value", + "userAttributeValue", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeValue, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeValue" | "user_attribute_value" => Ok(GeneratedField::UserAttributeValue), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = CreateUserAttributeValueResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.CreateUserAttributeValueResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_value__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeValue => { + if user_attribute_value__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeValue")); + } + user_attribute_value__ = map_.next_value()?; + } + } + } + Ok(CreateUserAttributeValueResponse { + user_attribute_value: user_attribute_value__, + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.CreateUserAttributeValueResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetUserAttributeKeyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_key_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.GetUserAttributeKeyRequest", len)?; + if !self.user_attribute_key_id.is_empty() { + struct_ser.serialize_field("userAttributeKeyId", &self.user_attribute_key_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetUserAttributeKeyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_key_id", + "userAttributeKeyId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKeyId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKeyId" | "user_attribute_key_id" => Ok(GeneratedField::UserAttributeKeyId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetUserAttributeKeyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.GetUserAttributeKeyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_key_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKeyId => { + if user_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKeyId")); + } + user_attribute_key_id__ = Some(map_.next_value()?); + } + } + } + Ok(GetUserAttributeKeyRequest { + user_attribute_key_id: user_attribute_key_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.GetUserAttributeKeyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetUserAttributeKeyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.user_attribute_key.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.GetUserAttributeKeyResponse", len)?; + if let Some(v) = self.user_attribute_key.as_ref() { + struct_ser.serialize_field("userAttributeKey", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetUserAttributeKeyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_key", + "userAttributeKey", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKey, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKey" | "user_attribute_key" => Ok(GeneratedField::UserAttributeKey), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetUserAttributeKeyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.GetUserAttributeKeyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_key__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKey => { + if user_attribute_key__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKey")); + } + user_attribute_key__ = map_.next_value()?; + } + } + } + Ok(GetUserAttributeKeyResponse { + user_attribute_key: user_attribute_key__, + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.GetUserAttributeKeyResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetUserAttributeValueRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_value_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.GetUserAttributeValueRequest", len)?; + if !self.user_attribute_value_id.is_empty() { + struct_ser.serialize_field("userAttributeValueId", &self.user_attribute_value_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetUserAttributeValueRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_value_id", + "userAttributeValueId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeValueId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeValueId" | "user_attribute_value_id" => Ok(GeneratedField::UserAttributeValueId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetUserAttributeValueRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.GetUserAttributeValueRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_value_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeValueId => { + if user_attribute_value_id__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeValueId")); + } + user_attribute_value_id__ = Some(map_.next_value()?); + } + } + } + Ok(GetUserAttributeValueRequest { + user_attribute_value_id: user_attribute_value_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.GetUserAttributeValueRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for GetUserAttributeValueResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.user_attribute_value.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.GetUserAttributeValueResponse", len)?; + if let Some(v) = self.user_attribute_value.as_ref() { + struct_ser.serialize_field("userAttributeValue", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for GetUserAttributeValueResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_value", + "userAttributeValue", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeValue, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeValue" | "user_attribute_value" => Ok(GeneratedField::UserAttributeValue), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GetUserAttributeValueResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.GetUserAttributeValueResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_value__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeValue => { + if user_attribute_value__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeValue")); + } + user_attribute_value__ = map_.next_value()?; + } + } + } + Ok(GetUserAttributeValueResponse { + user_attribute_value: user_attribute_value__, + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.GetUserAttributeValueResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListUserAttributeKeyValuesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_key_id.is_empty() { + len += 1; + } + if self.page_size != 0 { + len += 1; + } + if !self.page_token.is_empty() { + len += 1; + } + if !self.filter.is_empty() { + len += 1; + } + if !self.order_by.is_empty() { + len += 1; + } + if self.include_archived { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.ListUserAttributeKeyValuesRequest", len)?; + if !self.user_attribute_key_id.is_empty() { + struct_ser.serialize_field("userAttributeKeyId", &self.user_attribute_key_id)?; + } + if self.page_size != 0 { + struct_ser.serialize_field("pageSize", &self.page_size)?; + } + if !self.page_token.is_empty() { + struct_ser.serialize_field("pageToken", &self.page_token)?; + } + if !self.filter.is_empty() { + struct_ser.serialize_field("filter", &self.filter)?; + } + if !self.order_by.is_empty() { + struct_ser.serialize_field("orderBy", &self.order_by)?; + } + if self.include_archived { + struct_ser.serialize_field("includeArchived", &self.include_archived)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListUserAttributeKeyValuesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_key_id", + "userAttributeKeyId", + "page_size", + "pageSize", + "page_token", + "pageToken", + "filter", + "order_by", + "orderBy", + "include_archived", + "includeArchived", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKeyId, + PageSize, + PageToken, + Filter, + OrderBy, + IncludeArchived, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKeyId" | "user_attribute_key_id" => Ok(GeneratedField::UserAttributeKeyId), + "pageSize" | "page_size" => Ok(GeneratedField::PageSize), + "pageToken" | "page_token" => Ok(GeneratedField::PageToken), + "filter" => Ok(GeneratedField::Filter), + "orderBy" | "order_by" => Ok(GeneratedField::OrderBy), + "includeArchived" | "include_archived" => Ok(GeneratedField::IncludeArchived), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListUserAttributeKeyValuesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.ListUserAttributeKeyValuesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_key_id__ = None; + let mut page_size__ = None; + let mut page_token__ = None; + let mut filter__ = None; + let mut order_by__ = None; + let mut include_archived__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKeyId => { + if user_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKeyId")); + } + user_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::PageSize => { + if page_size__.is_some() { + return Err(serde::de::Error::duplicate_field("pageSize")); + } + page_size__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::PageToken => { + if page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("pageToken")); + } + page_token__ = Some(map_.next_value()?); + } + GeneratedField::Filter => { + if filter__.is_some() { + return Err(serde::de::Error::duplicate_field("filter")); + } + filter__ = Some(map_.next_value()?); + } + GeneratedField::OrderBy => { + if order_by__.is_some() { + return Err(serde::de::Error::duplicate_field("orderBy")); + } + order_by__ = Some(map_.next_value()?); + } + GeneratedField::IncludeArchived => { + if include_archived__.is_some() { + return Err(serde::de::Error::duplicate_field("includeArchived")); + } + include_archived__ = Some(map_.next_value()?); + } + } + } + Ok(ListUserAttributeKeyValuesRequest { + user_attribute_key_id: user_attribute_key_id__.unwrap_or_default(), + page_size: page_size__.unwrap_or_default(), + page_token: page_token__.unwrap_or_default(), + filter: filter__.unwrap_or_default(), + order_by: order_by__.unwrap_or_default(), + include_archived: include_archived__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.ListUserAttributeKeyValuesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListUserAttributeKeyValuesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_values.is_empty() { + len += 1; + } + if !self.next_page_token.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.ListUserAttributeKeyValuesResponse", len)?; + if !self.user_attribute_values.is_empty() { + struct_ser.serialize_field("userAttributeValues", &self.user_attribute_values)?; + } + if !self.next_page_token.is_empty() { + struct_ser.serialize_field("nextPageToken", &self.next_page_token)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListUserAttributeKeyValuesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_values", + "userAttributeValues", + "next_page_token", + "nextPageToken", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeValues, + NextPageToken, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeValues" | "user_attribute_values" => Ok(GeneratedField::UserAttributeValues), + "nextPageToken" | "next_page_token" => Ok(GeneratedField::NextPageToken), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListUserAttributeKeyValuesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.ListUserAttributeKeyValuesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_values__ = None; + let mut next_page_token__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeValues => { + if user_attribute_values__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeValues")); + } + user_attribute_values__ = Some(map_.next_value()?); + } + GeneratedField::NextPageToken => { + if next_page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("nextPageToken")); + } + next_page_token__ = Some(map_.next_value()?); + } + } + } + Ok(ListUserAttributeKeyValuesResponse { + user_attribute_values: user_attribute_values__.unwrap_or_default(), + next_page_token: next_page_token__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.ListUserAttributeKeyValuesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListUserAttributeKeysRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.page_size != 0 { + len += 1; + } + if !self.page_token.is_empty() { + len += 1; + } + if !self.filter.is_empty() { + len += 1; + } + if !self.order_by.is_empty() { + len += 1; + } + if !self.organization_id.is_empty() { + len += 1; + } + if self.include_archived { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.ListUserAttributeKeysRequest", len)?; + if self.page_size != 0 { + struct_ser.serialize_field("pageSize", &self.page_size)?; + } + if !self.page_token.is_empty() { + struct_ser.serialize_field("pageToken", &self.page_token)?; + } + if !self.filter.is_empty() { + struct_ser.serialize_field("filter", &self.filter)?; + } + if !self.order_by.is_empty() { + struct_ser.serialize_field("orderBy", &self.order_by)?; + } + if !self.organization_id.is_empty() { + struct_ser.serialize_field("organizationId", &self.organization_id)?; + } + if self.include_archived { + struct_ser.serialize_field("includeArchived", &self.include_archived)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListUserAttributeKeysRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "page_size", + "pageSize", + "page_token", + "pageToken", + "filter", + "order_by", + "orderBy", + "organization_id", + "organizationId", + "include_archived", + "includeArchived", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + PageSize, + PageToken, + Filter, + OrderBy, + OrganizationId, + IncludeArchived, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "pageSize" | "page_size" => Ok(GeneratedField::PageSize), + "pageToken" | "page_token" => Ok(GeneratedField::PageToken), + "filter" => Ok(GeneratedField::Filter), + "orderBy" | "order_by" => Ok(GeneratedField::OrderBy), + "organizationId" | "organization_id" => Ok(GeneratedField::OrganizationId), + "includeArchived" | "include_archived" => Ok(GeneratedField::IncludeArchived), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListUserAttributeKeysRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.ListUserAttributeKeysRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut page_size__ = None; + let mut page_token__ = None; + let mut filter__ = None; + let mut order_by__ = None; + let mut organization_id__ = None; + let mut include_archived__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::PageSize => { + if page_size__.is_some() { + return Err(serde::de::Error::duplicate_field("pageSize")); + } + page_size__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::PageToken => { + if page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("pageToken")); + } + page_token__ = Some(map_.next_value()?); + } + GeneratedField::Filter => { + if filter__.is_some() { + return Err(serde::de::Error::duplicate_field("filter")); + } + filter__ = Some(map_.next_value()?); + } + GeneratedField::OrderBy => { + if order_by__.is_some() { + return Err(serde::de::Error::duplicate_field("orderBy")); + } + order_by__ = Some(map_.next_value()?); + } + GeneratedField::OrganizationId => { + if organization_id__.is_some() { + return Err(serde::de::Error::duplicate_field("organizationId")); + } + organization_id__ = Some(map_.next_value()?); + } + GeneratedField::IncludeArchived => { + if include_archived__.is_some() { + return Err(serde::de::Error::duplicate_field("includeArchived")); + } + include_archived__ = Some(map_.next_value()?); + } + } + } + Ok(ListUserAttributeKeysRequest { + page_size: page_size__.unwrap_or_default(), + page_token: page_token__.unwrap_or_default(), + filter: filter__.unwrap_or_default(), + order_by: order_by__.unwrap_or_default(), + organization_id: organization_id__.unwrap_or_default(), + include_archived: include_archived__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.ListUserAttributeKeysRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListUserAttributeKeysResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_keys.is_empty() { + len += 1; + } + if !self.next_page_token.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.ListUserAttributeKeysResponse", len)?; + if !self.user_attribute_keys.is_empty() { + struct_ser.serialize_field("userAttributeKeys", &self.user_attribute_keys)?; + } + if !self.next_page_token.is_empty() { + struct_ser.serialize_field("nextPageToken", &self.next_page_token)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListUserAttributeKeysResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_keys", + "userAttributeKeys", + "next_page_token", + "nextPageToken", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKeys, + NextPageToken, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKeys" | "user_attribute_keys" => Ok(GeneratedField::UserAttributeKeys), + "nextPageToken" | "next_page_token" => Ok(GeneratedField::NextPageToken), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListUserAttributeKeysResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.ListUserAttributeKeysResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_keys__ = None; + let mut next_page_token__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKeys => { + if user_attribute_keys__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKeys")); + } + user_attribute_keys__ = Some(map_.next_value()?); + } + GeneratedField::NextPageToken => { + if next_page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("nextPageToken")); + } + next_page_token__ = Some(map_.next_value()?); + } + } + } + Ok(ListUserAttributeKeysResponse { + user_attribute_keys: user_attribute_keys__.unwrap_or_default(), + next_page_token: next_page_token__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.ListUserAttributeKeysResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListUserAttributeValuesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.page_size != 0 { + len += 1; + } + if !self.page_token.is_empty() { + len += 1; + } + if !self.filter.is_empty() { + len += 1; + } + if !self.order_by.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.ListUserAttributeValuesRequest", len)?; + if self.page_size != 0 { + struct_ser.serialize_field("pageSize", &self.page_size)?; + } + if !self.page_token.is_empty() { + struct_ser.serialize_field("pageToken", &self.page_token)?; + } + if !self.filter.is_empty() { + struct_ser.serialize_field("filter", &self.filter)?; + } + if !self.order_by.is_empty() { + struct_ser.serialize_field("orderBy", &self.order_by)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListUserAttributeValuesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "page_size", + "pageSize", + "page_token", + "pageToken", + "filter", + "order_by", + "orderBy", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + PageSize, + PageToken, + Filter, + OrderBy, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "pageSize" | "page_size" => Ok(GeneratedField::PageSize), + "pageToken" | "page_token" => Ok(GeneratedField::PageToken), + "filter" => Ok(GeneratedField::Filter), + "orderBy" | "order_by" => Ok(GeneratedField::OrderBy), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListUserAttributeValuesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.ListUserAttributeValuesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut page_size__ = None; + let mut page_token__ = None; + let mut filter__ = None; + let mut order_by__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::PageSize => { + if page_size__.is_some() { + return Err(serde::de::Error::duplicate_field("pageSize")); + } + page_size__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::PageToken => { + if page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("pageToken")); + } + page_token__ = Some(map_.next_value()?); + } + GeneratedField::Filter => { + if filter__.is_some() { + return Err(serde::de::Error::duplicate_field("filter")); + } + filter__ = Some(map_.next_value()?); + } + GeneratedField::OrderBy => { + if order_by__.is_some() { + return Err(serde::de::Error::duplicate_field("orderBy")); + } + order_by__ = Some(map_.next_value()?); + } + } + } + Ok(ListUserAttributeValuesRequest { + page_size: page_size__.unwrap_or_default(), + page_token: page_token__.unwrap_or_default(), + filter: filter__.unwrap_or_default(), + order_by: order_by__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.ListUserAttributeValuesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ListUserAttributeValuesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_values.is_empty() { + len += 1; + } + if !self.next_page_token.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.ListUserAttributeValuesResponse", len)?; + if !self.user_attribute_values.is_empty() { + struct_ser.serialize_field("userAttributeValues", &self.user_attribute_values)?; + } + if !self.next_page_token.is_empty() { + struct_ser.serialize_field("nextPageToken", &self.next_page_token)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ListUserAttributeValuesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_values", + "userAttributeValues", + "next_page_token", + "nextPageToken", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeValues, + NextPageToken, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeValues" | "user_attribute_values" => Ok(GeneratedField::UserAttributeValues), + "nextPageToken" | "next_page_token" => Ok(GeneratedField::NextPageToken), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ListUserAttributeValuesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.ListUserAttributeValuesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_values__ = None; + let mut next_page_token__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeValues => { + if user_attribute_values__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeValues")); + } + user_attribute_values__ = Some(map_.next_value()?); + } + GeneratedField::NextPageToken => { + if next_page_token__.is_some() { + return Err(serde::de::Error::duplicate_field("nextPageToken")); + } + next_page_token__ = Some(map_.next_value()?); + } + } + } + Ok(ListUserAttributeValuesResponse { + user_attribute_values: user_attribute_values__.unwrap_or_default(), + next_page_token: next_page_token__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.ListUserAttributeValuesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UnarchiveUserAttributeKeysRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_key_ids.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.UnarchiveUserAttributeKeysRequest", len)?; + if !self.user_attribute_key_ids.is_empty() { + struct_ser.serialize_field("userAttributeKeyIds", &self.user_attribute_key_ids)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UnarchiveUserAttributeKeysRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_key_ids", + "userAttributeKeyIds", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKeyIds, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKeyIds" | "user_attribute_key_ids" => Ok(GeneratedField::UserAttributeKeyIds), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UnarchiveUserAttributeKeysRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.UnarchiveUserAttributeKeysRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_key_ids__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKeyIds => { + if user_attribute_key_ids__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKeyIds")); + } + user_attribute_key_ids__ = Some(map_.next_value()?); + } + } + } + Ok(UnarchiveUserAttributeKeysRequest { + user_attribute_key_ids: user_attribute_key_ids__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.UnarchiveUserAttributeKeysRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UnarchiveUserAttributeKeysResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.user_attributes.v1.UnarchiveUserAttributeKeysResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UnarchiveUserAttributeKeysResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UnarchiveUserAttributeKeysResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.UnarchiveUserAttributeKeysResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(UnarchiveUserAttributeKeysResponse { + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.UnarchiveUserAttributeKeysResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UnarchiveUserAttributeValuesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_value_ids.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.UnarchiveUserAttributeValuesRequest", len)?; + if !self.user_attribute_value_ids.is_empty() { + struct_ser.serialize_field("userAttributeValueIds", &self.user_attribute_value_ids)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UnarchiveUserAttributeValuesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_value_ids", + "userAttributeValueIds", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeValueIds, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeValueIds" | "user_attribute_value_ids" => Ok(GeneratedField::UserAttributeValueIds), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UnarchiveUserAttributeValuesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.UnarchiveUserAttributeValuesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_value_ids__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeValueIds => { + if user_attribute_value_ids__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeValueIds")); + } + user_attribute_value_ids__ = Some(map_.next_value()?); + } + } + } + Ok(UnarchiveUserAttributeValuesRequest { + user_attribute_value_ids: user_attribute_value_ids__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.UnarchiveUserAttributeValuesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UnarchiveUserAttributeValuesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("sift.user_attributes.v1.UnarchiveUserAttributeValuesResponse", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UnarchiveUserAttributeValuesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UnarchiveUserAttributeValuesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.UnarchiveUserAttributeValuesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(UnarchiveUserAttributeValuesResponse { + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.UnarchiveUserAttributeValuesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UpdateUserAttributeKeyRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_key_id.is_empty() { + len += 1; + } + if !self.name.is_empty() { + len += 1; + } + if !self.description.is_empty() { + len += 1; + } + if self.update_mask.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.UpdateUserAttributeKeyRequest", len)?; + if !self.user_attribute_key_id.is_empty() { + struct_ser.serialize_field("userAttributeKeyId", &self.user_attribute_key_id)?; + } + if !self.name.is_empty() { + struct_ser.serialize_field("name", &self.name)?; + } + if !self.description.is_empty() { + struct_ser.serialize_field("description", &self.description)?; + } + if let Some(v) = self.update_mask.as_ref() { + struct_ser.serialize_field("updateMask", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UpdateUserAttributeKeyRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_key_id", + "userAttributeKeyId", + "name", + "description", + "update_mask", + "updateMask", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKeyId, + Name, + Description, + UpdateMask, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKeyId" | "user_attribute_key_id" => Ok(GeneratedField::UserAttributeKeyId), + "name" => Ok(GeneratedField::Name), + "description" => Ok(GeneratedField::Description), + "updateMask" | "update_mask" => Ok(GeneratedField::UpdateMask), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UpdateUserAttributeKeyRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.UpdateUserAttributeKeyRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_key_id__ = None; + let mut name__ = None; + let mut description__ = None; + let mut update_mask__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKeyId => { + if user_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKeyId")); + } + user_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::Name => { + if name__.is_some() { + return Err(serde::de::Error::duplicate_field("name")); + } + name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = Some(map_.next_value()?); + } + GeneratedField::UpdateMask => { + if update_mask__.is_some() { + return Err(serde::de::Error::duplicate_field("updateMask")); + } + update_mask__ = map_.next_value()?; + } + } + } + Ok(UpdateUserAttributeKeyRequest { + user_attribute_key_id: user_attribute_key_id__.unwrap_or_default(), + name: name__.unwrap_or_default(), + description: description__.unwrap_or_default(), + update_mask: update_mask__, + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.UpdateUserAttributeKeyRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UpdateUserAttributeKeyResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.user_attribute_key.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.UpdateUserAttributeKeyResponse", len)?; + if let Some(v) = self.user_attribute_key.as_ref() { + struct_ser.serialize_field("userAttributeKey", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UpdateUserAttributeKeyResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_key", + "userAttributeKey", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKey, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKey" | "user_attribute_key" => Ok(GeneratedField::UserAttributeKey), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UpdateUserAttributeKeyResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.UpdateUserAttributeKeyResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_key__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKey => { + if user_attribute_key__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKey")); + } + user_attribute_key__ = map_.next_value()?; + } + } + } + Ok(UpdateUserAttributeKeyResponse { + user_attribute_key: user_attribute_key__, + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.UpdateUserAttributeKeyResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UserAttributeKey { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_key_id.is_empty() { + len += 1; + } + if !self.organization_id.is_empty() { + len += 1; + } + if !self.name.is_empty() { + len += 1; + } + if !self.description.is_empty() { + len += 1; + } + if self.r#type != 0 { + len += 1; + } + if self.created_date.is_some() { + len += 1; + } + if !self.created_by_user_id.is_empty() { + len += 1; + } + if self.modified_date.is_some() { + len += 1; + } + if !self.modified_by_user_id.is_empty() { + len += 1; + } + if self.archived_date.is_some() { + len += 1; + } + if self.is_archived { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.UserAttributeKey", len)?; + if !self.user_attribute_key_id.is_empty() { + struct_ser.serialize_field("userAttributeKeyId", &self.user_attribute_key_id)?; + } + if !self.organization_id.is_empty() { + struct_ser.serialize_field("organizationId", &self.organization_id)?; + } + if !self.name.is_empty() { + struct_ser.serialize_field("name", &self.name)?; + } + if !self.description.is_empty() { + struct_ser.serialize_field("description", &self.description)?; + } + if self.r#type != 0 { + let v = UserAttributeValueType::try_from(self.r#type) + .map_err(|_| serde::ser::Error::custom(format!("Invalid variant {}", self.r#type)))?; + struct_ser.serialize_field("type", &v)?; + } + if let Some(v) = self.created_date.as_ref() { + struct_ser.serialize_field("createdDate", v)?; + } + if !self.created_by_user_id.is_empty() { + struct_ser.serialize_field("createdByUserId", &self.created_by_user_id)?; + } + if let Some(v) = self.modified_date.as_ref() { + struct_ser.serialize_field("modifiedDate", v)?; + } + if !self.modified_by_user_id.is_empty() { + struct_ser.serialize_field("modifiedByUserId", &self.modified_by_user_id)?; + } + if let Some(v) = self.archived_date.as_ref() { + struct_ser.serialize_field("archivedDate", v)?; + } + if self.is_archived { + struct_ser.serialize_field("isArchived", &self.is_archived)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UserAttributeKey { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_key_id", + "userAttributeKeyId", + "organization_id", + "organizationId", + "name", + "description", + "type", + "created_date", + "createdDate", + "created_by_user_id", + "createdByUserId", + "modified_date", + "modifiedDate", + "modified_by_user_id", + "modifiedByUserId", + "archived_date", + "archivedDate", + "is_archived", + "isArchived", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeKeyId, + OrganizationId, + Name, + Description, + Type, + CreatedDate, + CreatedByUserId, + ModifiedDate, + ModifiedByUserId, + ArchivedDate, + IsArchived, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeKeyId" | "user_attribute_key_id" => Ok(GeneratedField::UserAttributeKeyId), + "organizationId" | "organization_id" => Ok(GeneratedField::OrganizationId), + "name" => Ok(GeneratedField::Name), + "description" => Ok(GeneratedField::Description), + "type" => Ok(GeneratedField::Type), + "createdDate" | "created_date" => Ok(GeneratedField::CreatedDate), + "createdByUserId" | "created_by_user_id" => Ok(GeneratedField::CreatedByUserId), + "modifiedDate" | "modified_date" => Ok(GeneratedField::ModifiedDate), + "modifiedByUserId" | "modified_by_user_id" => Ok(GeneratedField::ModifiedByUserId), + "archivedDate" | "archived_date" => Ok(GeneratedField::ArchivedDate), + "isArchived" | "is_archived" => Ok(GeneratedField::IsArchived), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UserAttributeKey; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.UserAttributeKey") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_key_id__ = None; + let mut organization_id__ = None; + let mut name__ = None; + let mut description__ = None; + let mut r#type__ = None; + let mut created_date__ = None; + let mut created_by_user_id__ = None; + let mut modified_date__ = None; + let mut modified_by_user_id__ = None; + let mut archived_date__ = None; + let mut is_archived__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeKeyId => { + if user_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKeyId")); + } + user_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::OrganizationId => { + if organization_id__.is_some() { + return Err(serde::de::Error::duplicate_field("organizationId")); + } + organization_id__ = Some(map_.next_value()?); + } + GeneratedField::Name => { + if name__.is_some() { + return Err(serde::de::Error::duplicate_field("name")); + } + name__ = Some(map_.next_value()?); + } + GeneratedField::Description => { + if description__.is_some() { + return Err(serde::de::Error::duplicate_field("description")); + } + description__ = Some(map_.next_value()?); + } + GeneratedField::Type => { + if r#type__.is_some() { + return Err(serde::de::Error::duplicate_field("type")); + } + r#type__ = Some(map_.next_value::()? as i32); + } + GeneratedField::CreatedDate => { + if created_date__.is_some() { + return Err(serde::de::Error::duplicate_field("createdDate")); + } + created_date__ = map_.next_value()?; + } + GeneratedField::CreatedByUserId => { + if created_by_user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("createdByUserId")); + } + created_by_user_id__ = Some(map_.next_value()?); + } + GeneratedField::ModifiedDate => { + if modified_date__.is_some() { + return Err(serde::de::Error::duplicate_field("modifiedDate")); + } + modified_date__ = map_.next_value()?; + } + GeneratedField::ModifiedByUserId => { + if modified_by_user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("modifiedByUserId")); + } + modified_by_user_id__ = Some(map_.next_value()?); + } + GeneratedField::ArchivedDate => { + if archived_date__.is_some() { + return Err(serde::de::Error::duplicate_field("archivedDate")); + } + archived_date__ = map_.next_value()?; + } + GeneratedField::IsArchived => { + if is_archived__.is_some() { + return Err(serde::de::Error::duplicate_field("isArchived")); + } + is_archived__ = Some(map_.next_value()?); + } + } + } + Ok(UserAttributeKey { + user_attribute_key_id: user_attribute_key_id__.unwrap_or_default(), + organization_id: organization_id__.unwrap_or_default(), + name: name__.unwrap_or_default(), + description: description__.unwrap_or_default(), + r#type: r#type__.unwrap_or_default(), + created_date: created_date__, + created_by_user_id: created_by_user_id__.unwrap_or_default(), + modified_date: modified_date__, + modified_by_user_id: modified_by_user_id__.unwrap_or_default(), + archived_date: archived_date__, + is_archived: is_archived__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.UserAttributeKey", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UserAttributeValue { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.user_attribute_value_id.is_empty() { + len += 1; + } + if !self.user_attribute_key_id.is_empty() { + len += 1; + } + if !self.user_id.is_empty() { + len += 1; + } + if !self.organization_id.is_empty() { + len += 1; + } + if !self.created_by_user_id.is_empty() { + len += 1; + } + if self.created_date.is_some() { + len += 1; + } + if self.archived_date.is_some() { + len += 1; + } + if self.is_archived { + len += 1; + } + if self.key.is_some() { + len += 1; + } + if self.value.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.user_attributes.v1.UserAttributeValue", len)?; + if !self.user_attribute_value_id.is_empty() { + struct_ser.serialize_field("userAttributeValueId", &self.user_attribute_value_id)?; + } + if !self.user_attribute_key_id.is_empty() { + struct_ser.serialize_field("userAttributeKeyId", &self.user_attribute_key_id)?; + } + if !self.user_id.is_empty() { + struct_ser.serialize_field("userId", &self.user_id)?; + } + if !self.organization_id.is_empty() { + struct_ser.serialize_field("organizationId", &self.organization_id)?; + } + if !self.created_by_user_id.is_empty() { + struct_ser.serialize_field("createdByUserId", &self.created_by_user_id)?; + } + if let Some(v) = self.created_date.as_ref() { + struct_ser.serialize_field("createdDate", v)?; + } + if let Some(v) = self.archived_date.as_ref() { + struct_ser.serialize_field("archivedDate", v)?; + } + if self.is_archived { + struct_ser.serialize_field("isArchived", &self.is_archived)?; + } + if let Some(v) = self.key.as_ref() { + struct_ser.serialize_field("key", v)?; + } + if let Some(v) = self.value.as_ref() { + match v { + user_attribute_value::Value::StringValue(v) => { + struct_ser.serialize_field("stringValue", v)?; + } + user_attribute_value::Value::NumberValue(v) => { + struct_ser.serialize_field("numberValue", v)?; + } + user_attribute_value::Value::BooleanValue(v) => { + struct_ser.serialize_field("booleanValue", v)?; + } + } + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UserAttributeValue { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "user_attribute_value_id", + "userAttributeValueId", + "user_attribute_key_id", + "userAttributeKeyId", + "user_id", + "userId", + "organization_id", + "organizationId", + "created_by_user_id", + "createdByUserId", + "created_date", + "createdDate", + "archived_date", + "archivedDate", + "is_archived", + "isArchived", + "key", + "string_value", + "stringValue", + "number_value", + "numberValue", + "boolean_value", + "booleanValue", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + UserAttributeValueId, + UserAttributeKeyId, + UserId, + OrganizationId, + CreatedByUserId, + CreatedDate, + ArchivedDate, + IsArchived, + Key, + StringValue, + NumberValue, + BooleanValue, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "userAttributeValueId" | "user_attribute_value_id" => Ok(GeneratedField::UserAttributeValueId), + "userAttributeKeyId" | "user_attribute_key_id" => Ok(GeneratedField::UserAttributeKeyId), + "userId" | "user_id" => Ok(GeneratedField::UserId), + "organizationId" | "organization_id" => Ok(GeneratedField::OrganizationId), + "createdByUserId" | "created_by_user_id" => Ok(GeneratedField::CreatedByUserId), + "createdDate" | "created_date" => Ok(GeneratedField::CreatedDate), + "archivedDate" | "archived_date" => Ok(GeneratedField::ArchivedDate), + "isArchived" | "is_archived" => Ok(GeneratedField::IsArchived), + "key" => Ok(GeneratedField::Key), + "stringValue" | "string_value" => Ok(GeneratedField::StringValue), + "numberValue" | "number_value" => Ok(GeneratedField::NumberValue), + "booleanValue" | "boolean_value" => Ok(GeneratedField::BooleanValue), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UserAttributeValue; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.user_attributes.v1.UserAttributeValue") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut user_attribute_value_id__ = None; + let mut user_attribute_key_id__ = None; + let mut user_id__ = None; + let mut organization_id__ = None; + let mut created_by_user_id__ = None; + let mut created_date__ = None; + let mut archived_date__ = None; + let mut is_archived__ = None; + let mut key__ = None; + let mut value__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::UserAttributeValueId => { + if user_attribute_value_id__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeValueId")); + } + user_attribute_value_id__ = Some(map_.next_value()?); + } + GeneratedField::UserAttributeKeyId => { + if user_attribute_key_id__.is_some() { + return Err(serde::de::Error::duplicate_field("userAttributeKeyId")); + } + user_attribute_key_id__ = Some(map_.next_value()?); + } + GeneratedField::UserId => { + if user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("userId")); + } + user_id__ = Some(map_.next_value()?); + } + GeneratedField::OrganizationId => { + if organization_id__.is_some() { + return Err(serde::de::Error::duplicate_field("organizationId")); + } + organization_id__ = Some(map_.next_value()?); + } + GeneratedField::CreatedByUserId => { + if created_by_user_id__.is_some() { + return Err(serde::de::Error::duplicate_field("createdByUserId")); + } + created_by_user_id__ = Some(map_.next_value()?); + } + GeneratedField::CreatedDate => { + if created_date__.is_some() { + return Err(serde::de::Error::duplicate_field("createdDate")); + } + created_date__ = map_.next_value()?; + } + GeneratedField::ArchivedDate => { + if archived_date__.is_some() { + return Err(serde::de::Error::duplicate_field("archivedDate")); + } + archived_date__ = map_.next_value()?; + } + GeneratedField::IsArchived => { + if is_archived__.is_some() { + return Err(serde::de::Error::duplicate_field("isArchived")); + } + is_archived__ = Some(map_.next_value()?); + } + GeneratedField::Key => { + if key__.is_some() { + return Err(serde::de::Error::duplicate_field("key")); + } + key__ = map_.next_value()?; + } + GeneratedField::StringValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("stringValue")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(user_attribute_value::Value::StringValue); + } + GeneratedField::NumberValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("numberValue")); + } + value__ = map_.next_value::<::std::option::Option<::pbjson::private::NumberDeserialize<_>>>()?.map(|x| user_attribute_value::Value::NumberValue(x.0)); + } + GeneratedField::BooleanValue => { + if value__.is_some() { + return Err(serde::de::Error::duplicate_field("booleanValue")); + } + value__ = map_.next_value::<::std::option::Option<_>>()?.map(user_attribute_value::Value::BooleanValue); + } + } + } + Ok(UserAttributeValue { + user_attribute_value_id: user_attribute_value_id__.unwrap_or_default(), + user_attribute_key_id: user_attribute_key_id__.unwrap_or_default(), + user_id: user_id__.unwrap_or_default(), + organization_id: organization_id__.unwrap_or_default(), + created_by_user_id: created_by_user_id__.unwrap_or_default(), + created_date: created_date__, + archived_date: archived_date__, + is_archived: is_archived__.unwrap_or_default(), + key: key__, + value: value__, + }) + } + } + deserializer.deserialize_struct("sift.user_attributes.v1.UserAttributeValue", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UserAttributeValueType { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + let variant = match self { + Self::Unspecified => "USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED", + Self::String => "USER_ATTRIBUTE_VALUE_TYPE_STRING", + Self::Boolean => "USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN", + Self::Number => "USER_ATTRIBUTE_VALUE_TYPE_NUMBER", + Self::SetOfString => "USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING", + }; + serializer.serialize_str(variant) + } +} +impl<'de> serde::Deserialize<'de> for UserAttributeValueType { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED", + "USER_ATTRIBUTE_VALUE_TYPE_STRING", + "USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN", + "USER_ATTRIBUTE_VALUE_TYPE_NUMBER", + "USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING", + ]; + + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UserAttributeValueType; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + fn visit_i64(self, v: i64) -> std::result::Result + where + E: serde::de::Error, + { + i32::try_from(v) + .ok() + .and_then(|x| x.try_into().ok()) + .ok_or_else(|| { + serde::de::Error::invalid_value(serde::de::Unexpected::Signed(v), &self) + }) + } + + fn visit_u64(self, v: u64) -> std::result::Result + where + E: serde::de::Error, + { + i32::try_from(v) + .ok() + .and_then(|x| x.try_into().ok()) + .ok_or_else(|| { + serde::de::Error::invalid_value(serde::de::Unexpected::Unsigned(v), &self) + }) + } + + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "USER_ATTRIBUTE_VALUE_TYPE_UNSPECIFIED" => Ok(UserAttributeValueType::Unspecified), + "USER_ATTRIBUTE_VALUE_TYPE_STRING" => Ok(UserAttributeValueType::String), + "USER_ATTRIBUTE_VALUE_TYPE_BOOLEAN" => Ok(UserAttributeValueType::Boolean), + "USER_ATTRIBUTE_VALUE_TYPE_NUMBER" => Ok(UserAttributeValueType::Number), + "USER_ATTRIBUTE_VALUE_TYPE_SET_OF_STRING" => Ok(UserAttributeValueType::SetOfString), + _ => Err(serde::de::Error::unknown_variant(value, FIELDS)), + } + } + } + deserializer.deserialize_any(GeneratedVisitor) + } +} diff --git a/rust/crates/sift_rs/src/gen/sift.user_attributes.v1.tonic.rs b/rust/crates/sift_rs/src/gen/sift.user_attributes.v1.tonic.rs new file mode 100644 index 000000000..76f8f341a --- /dev/null +++ b/rust/crates/sift_rs/src/gen/sift.user_attributes.v1.tonic.rs @@ -0,0 +1,1394 @@ +// @generated +/// Generated client implementations. +pub mod user_attributes_service_client { + #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + use tonic::codegen::*; + use tonic::codegen::http::Uri; + #[derive(Debug, Clone)] + pub struct UserAttributesServiceClient { + inner: tonic::client::Grpc, + } + impl UserAttributesServiceClient { + /// Attempt to create a new client by connecting to a given endpoint. + pub async fn connect(dst: D) -> Result + where + D: TryInto, + D::Error: Into, + { + let conn = tonic::transport::Endpoint::new(dst)?.connect().await?; + Ok(Self::new(conn)) + } + } + impl UserAttributesServiceClient + where + T: tonic::client::GrpcService, + T::Error: Into, + T::ResponseBody: Body + Send + 'static, + ::Error: Into + Send, + { + pub fn new(inner: T) -> Self { + let inner = tonic::client::Grpc::new(inner); + Self { inner } + } + pub fn with_origin(inner: T, origin: Uri) -> Self { + let inner = tonic::client::Grpc::with_origin(inner, origin); + Self { inner } + } + pub fn with_interceptor( + inner: T, + interceptor: F, + ) -> UserAttributesServiceClient> + where + F: tonic::service::Interceptor, + T::ResponseBody: Default, + T: tonic::codegen::Service< + http::Request, + Response = http::Response< + >::ResponseBody, + >, + >, + , + >>::Error: Into + Send + Sync, + { + UserAttributesServiceClient::new(InterceptedService::new(inner, interceptor)) + } + /// Compress requests with the given encoding. + /// + /// This requires the server to support it otherwise it might respond with an + /// error. + #[must_use] + pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.inner = self.inner.send_compressed(encoding); + self + } + /// Enable decompressing responses. + #[must_use] + pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.inner = self.inner.accept_compressed(encoding); + self + } + /// Limits the maximum size of a decoded message. + /// + /// Default: `4MB` + #[must_use] + pub fn max_decoding_message_size(mut self, limit: usize) -> Self { + self.inner = self.inner.max_decoding_message_size(limit); + self + } + /// Limits the maximum size of an encoded message. + /// + /// Default: `usize::MAX` + #[must_use] + pub fn max_encoding_message_size(mut self, limit: usize) -> Self { + self.inner = self.inner.max_encoding_message_size(limit); + self + } + pub async fn create_user_attribute_key( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeKey", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "CreateUserAttributeKey", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn get_user_attribute_key( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeKey", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "GetUserAttributeKey", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn list_user_attribute_keys( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeys", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "ListUserAttributeKeys", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn update_user_attribute_key( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/UpdateUserAttributeKey", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "UpdateUserAttributeKey", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn archive_user_attribute_keys( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeKeys", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "ArchiveUserAttributeKeys", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn unarchive_user_attribute_keys( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeKeys", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "UnarchiveUserAttributeKeys", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn create_user_attribute_value( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeValue", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "CreateUserAttributeValue", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn batch_create_user_attribute_value( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/BatchCreateUserAttributeValue", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "BatchCreateUserAttributeValue", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn get_user_attribute_value( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeValue", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "GetUserAttributeValue", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn list_user_attribute_key_values( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeyValues", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "ListUserAttributeKeyValues", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn list_user_attribute_values( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeValues", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "ListUserAttributeValues", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn archive_user_attribute_values( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeValues", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "ArchiveUserAttributeValues", + ), + ); + self.inner.unary(req, path, codec).await + } + pub async fn unarchive_user_attribute_values( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeValues", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new( + "sift.user_attributes.v1.UserAttributesService", + "UnarchiveUserAttributeValues", + ), + ); + self.inner.unary(req, path, codec).await + } + } +} +/// Generated server implementations. +pub mod user_attributes_service_server { + #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + use tonic::codegen::*; + /// Generated trait containing gRPC methods that should be implemented for use with UserAttributesServiceServer. + #[async_trait] + pub trait UserAttributesService: Send + Sync + 'static { + async fn create_user_attribute_key( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn get_user_attribute_key( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn list_user_attribute_keys( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn update_user_attribute_key( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn archive_user_attribute_keys( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn unarchive_user_attribute_keys( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn create_user_attribute_value( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn batch_create_user_attribute_value( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn get_user_attribute_value( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn list_user_attribute_key_values( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn list_user_attribute_values( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn archive_user_attribute_values( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn unarchive_user_attribute_values( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + } + #[derive(Debug)] + pub struct UserAttributesServiceServer { + inner: _Inner, + accept_compression_encodings: EnabledCompressionEncodings, + send_compression_encodings: EnabledCompressionEncodings, + max_decoding_message_size: Option, + max_encoding_message_size: Option, + } + struct _Inner(Arc); + impl UserAttributesServiceServer { + pub fn new(inner: T) -> Self { + Self::from_arc(Arc::new(inner)) + } + pub fn from_arc(inner: Arc) -> Self { + let inner = _Inner(inner); + Self { + inner, + accept_compression_encodings: Default::default(), + send_compression_encodings: Default::default(), + max_decoding_message_size: None, + max_encoding_message_size: None, + } + } + pub fn with_interceptor( + inner: T, + interceptor: F, + ) -> InterceptedService + where + F: tonic::service::Interceptor, + { + InterceptedService::new(Self::new(inner), interceptor) + } + /// Enable decompressing requests with the given encoding. + #[must_use] + pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.accept_compression_encodings.enable(encoding); + self + } + /// Compress responses with the given encoding, if the client supports it. + #[must_use] + pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.send_compression_encodings.enable(encoding); + self + } + /// Limits the maximum size of a decoded message. + /// + /// Default: `4MB` + #[must_use] + pub fn max_decoding_message_size(mut self, limit: usize) -> Self { + self.max_decoding_message_size = Some(limit); + self + } + /// Limits the maximum size of an encoded message. + /// + /// Default: `usize::MAX` + #[must_use] + pub fn max_encoding_message_size(mut self, limit: usize) -> Self { + self.max_encoding_message_size = Some(limit); + self + } + } + impl tonic::codegen::Service> + for UserAttributesServiceServer + where + T: UserAttributesService, + B: Body + Send + 'static, + B::Error: Into + Send + 'static, + { + type Response = http::Response; + type Error = std::convert::Infallible; + type Future = BoxFuture; + fn poll_ready( + &mut self, + _cx: &mut Context<'_>, + ) -> Poll> { + Poll::Ready(Ok(())) + } + fn call(&mut self, req: http::Request) -> Self::Future { + let inner = self.inner.clone(); + match req.uri().path() { + "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeKey" => { + #[allow(non_camel_case_types)] + struct CreateUserAttributeKeySvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService + for CreateUserAttributeKeySvc { + type Response = super::CreateUserAttributeKeyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::create_user_attribute_key( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = CreateUserAttributeKeySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeKey" => { + #[allow(non_camel_case_types)] + struct GetUserAttributeKeySvc(pub Arc); + impl< + T: UserAttributesService, + > tonic::server::UnaryService + for GetUserAttributeKeySvc { + type Response = super::GetUserAttributeKeyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::get_user_attribute_key( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = GetUserAttributeKeySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeys" => { + #[allow(non_camel_case_types)] + struct ListUserAttributeKeysSvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService + for ListUserAttributeKeysSvc { + type Response = super::ListUserAttributeKeysResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::list_user_attribute_keys( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ListUserAttributeKeysSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/UpdateUserAttributeKey" => { + #[allow(non_camel_case_types)] + struct UpdateUserAttributeKeySvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService + for UpdateUserAttributeKeySvc { + type Response = super::UpdateUserAttributeKeyResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::update_user_attribute_key( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = UpdateUserAttributeKeySvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeKeys" => { + #[allow(non_camel_case_types)] + struct ArchiveUserAttributeKeysSvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService + for ArchiveUserAttributeKeysSvc { + type Response = super::ArchiveUserAttributeKeysResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::ArchiveUserAttributeKeysRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::archive_user_attribute_keys( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ArchiveUserAttributeKeysSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeKeys" => { + #[allow(non_camel_case_types)] + struct UnarchiveUserAttributeKeysSvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService< + super::UnarchiveUserAttributeKeysRequest, + > for UnarchiveUserAttributeKeysSvc { + type Response = super::UnarchiveUserAttributeKeysResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::UnarchiveUserAttributeKeysRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::unarchive_user_attribute_keys( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = UnarchiveUserAttributeKeysSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/CreateUserAttributeValue" => { + #[allow(non_camel_case_types)] + struct CreateUserAttributeValueSvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService + for CreateUserAttributeValueSvc { + type Response = super::CreateUserAttributeValueResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::CreateUserAttributeValueRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::create_user_attribute_value( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = CreateUserAttributeValueSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/BatchCreateUserAttributeValue" => { + #[allow(non_camel_case_types)] + struct BatchCreateUserAttributeValueSvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService< + super::BatchCreateUserAttributeValueRequest, + > for BatchCreateUserAttributeValueSvc { + type Response = super::BatchCreateUserAttributeValueResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::BatchCreateUserAttributeValueRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::batch_create_user_attribute_value( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = BatchCreateUserAttributeValueSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/GetUserAttributeValue" => { + #[allow(non_camel_case_types)] + struct GetUserAttributeValueSvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService + for GetUserAttributeValueSvc { + type Response = super::GetUserAttributeValueResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::get_user_attribute_value( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = GetUserAttributeValueSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeKeyValues" => { + #[allow(non_camel_case_types)] + struct ListUserAttributeKeyValuesSvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService< + super::ListUserAttributeKeyValuesRequest, + > for ListUserAttributeKeyValuesSvc { + type Response = super::ListUserAttributeKeyValuesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::ListUserAttributeKeyValuesRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::list_user_attribute_key_values( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ListUserAttributeKeyValuesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/ListUserAttributeValues" => { + #[allow(non_camel_case_types)] + struct ListUserAttributeValuesSvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService + for ListUserAttributeValuesSvc { + type Response = super::ListUserAttributeValuesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::ListUserAttributeValuesRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::list_user_attribute_values( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ListUserAttributeValuesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/ArchiveUserAttributeValues" => { + #[allow(non_camel_case_types)] + struct ArchiveUserAttributeValuesSvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService< + super::ArchiveUserAttributeValuesRequest, + > for ArchiveUserAttributeValuesSvc { + type Response = super::ArchiveUserAttributeValuesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::ArchiveUserAttributeValuesRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::archive_user_attribute_values( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ArchiveUserAttributeValuesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.user_attributes.v1.UserAttributesService/UnarchiveUserAttributeValues" => { + #[allow(non_camel_case_types)] + struct UnarchiveUserAttributeValuesSvc( + pub Arc, + ); + impl< + T: UserAttributesService, + > tonic::server::UnaryService< + super::UnarchiveUserAttributeValuesRequest, + > for UnarchiveUserAttributeValuesSvc { + type Response = super::UnarchiveUserAttributeValuesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::UnarchiveUserAttributeValuesRequest, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::unarchive_user_attribute_values( + &inner, + request, + ) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = UnarchiveUserAttributeValuesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + _ => { + Box::pin(async move { + Ok( + http::Response::builder() + .status(200) + .header("grpc-status", "12") + .header("content-type", "application/grpc") + .body(empty_body()) + .unwrap(), + ) + }) + } + } + } + } + impl Clone for UserAttributesServiceServer { + fn clone(&self) -> Self { + let inner = self.inner.clone(); + Self { + inner, + accept_compression_encodings: self.accept_compression_encodings, + send_compression_encodings: self.send_compression_encodings, + max_decoding_message_size: self.max_decoding_message_size, + max_encoding_message_size: self.max_encoding_message_size, + } + } + } + impl Clone for _Inner { + fn clone(&self) -> Self { + Self(Arc::clone(&self.0)) + } + } + impl std::fmt::Debug for _Inner { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{:?}", self.0) + } + } + impl tonic::server::NamedService + for UserAttributesServiceServer { + const NAME: &'static str = "sift.user_attributes.v1.UserAttributesService"; + } +}