From e794c623bd142b05c31cd38aaadfbf6d602e6221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pablo=20Villaf=C3=A1=C3=B1ez?= Date: Wed, 12 Jan 2022 10:38:14 +0100 Subject: [PATCH] Add proto files for the settings service and include generated code --- .../ocis/messages/settings/v1/grpc.md | 253 +++ .../ocis/services/settings/v1/grpc.md | 286 +++ .../ocis/messages/settings/v1/settings.pb.go | 1978 ++++++++++++++++ .../messages/settings/v1/settings.pb.micro.go | 15 + .../messages/settings/v1/settings.pb.web.go | 587 +++++ .../settings/v1/settings.swagger.json | 43 + .../ocis/services/settings/v1/settings.pb.go | 2004 +++++++++++++++++ .../services/settings/v1/settings.pb.micro.go | 669 ++++++ .../services/settings/v1/settings.pb.web.go | 1329 +++++++++++ .../settings/v1/settings.swagger.json | 1114 +++++++++ .../ocis/messages/settings/v1/settings.proto | 172 ++ .../ocis/services/settings/v1/settings.proto | 257 +++ 12 files changed, 8707 insertions(+) create mode 100644 protogen/docs/extensions/ocis/messages/settings/v1/grpc.md create mode 100644 protogen/docs/extensions/ocis/services/settings/v1/grpc.md create mode 100644 protogen/gen/ocis/messages/settings/v1/settings.pb.go create mode 100644 protogen/gen/ocis/messages/settings/v1/settings.pb.micro.go create mode 100644 protogen/gen/ocis/messages/settings/v1/settings.pb.web.go create mode 100644 protogen/gen/ocis/messages/settings/v1/settings.swagger.json create mode 100644 protogen/gen/ocis/services/settings/v1/settings.pb.go create mode 100644 protogen/gen/ocis/services/settings/v1/settings.pb.micro.go create mode 100644 protogen/gen/ocis/services/settings/v1/settings.pb.web.go create mode 100644 protogen/gen/ocis/services/settings/v1/settings.swagger.json create mode 100644 protogen/proto/ocis/messages/settings/v1/settings.proto create mode 100644 protogen/proto/ocis/services/settings/v1/settings.proto diff --git a/protogen/docs/extensions/ocis/messages/settings/v1/grpc.md b/protogen/docs/extensions/ocis/messages/settings/v1/grpc.md new file mode 100644 index 0000000000..74aa559760 --- /dev/null +++ b/protogen/docs/extensions/ocis/messages/settings/v1/grpc.md @@ -0,0 +1,253 @@ +--- +title: "GRPC API" +date: 2018-05-02T00:00:00+00:00 +weight: 50 +geekdocRepo: https://github.com/owncloud/ocis-thumbnails +geekdocEditPath: edit/master/docs +geekdocFilePath: grpc.md +--- + +{{< toc >}} + + + +## ocis/messages/settings/v1/settings.proto + +### Bool + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| default | [bool](#bool) | | | +| label | [string](#string) | | | + +### Bundle + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| name | [string](#string) | | | +| type | [Bundle.Type](#bundletype) | | | +| extension | [string](#string) | | | +| display_name | [string](#string) | | | +| settings | [Setting](#setting) | repeated | | +| resource | [Resource](#resource) | | | + +### Identifier + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| extension | [string](#string) | | | +| bundle | [string](#string) | | | +| setting | [string](#string) | | | + +### Int + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| default | [int64](#int64) | | | +| min | [int64](#int64) | | | +| max | [int64](#int64) | | | +| step | [int64](#int64) | | | +| placeholder | [string](#string) | | | + +### ListOption + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| value | [ListOptionValue](#listoptionvalue) | | | +| default | [bool](#bool) | | | +| display_value | [string](#string) | | | + +### ListOptionValue + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| string_value | [string](#string) | | | +| int_value | [int64](#int64) | | | + +### ListValue + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| values | [ListOptionValue](#listoptionvalue) | repeated | | + +### MultiChoiceList + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| options | [ListOption](#listoption) | repeated | | + +### Permission + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| operation | [Permission.Operation](#permissionoperation) | | | +| constraint | [Permission.Constraint](#permissionconstraint) | | | + +### Resource + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| type | [Resource.Type](#resourcetype) | | | +| id | [string](#string) | | | + +### Setting + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | +| name | [string](#string) | | | +| display_name | [string](#string) | | | +| description | [string](#string) | | | +| int_value | [Int](#int) | | | +| string_value | [String](#string) | | | +| bool_value | [Bool](#bool) | | | +| single_choice_value | [SingleChoiceList](#singlechoicelist) | | | +| multi_choice_value | [MultiChoiceList](#multichoicelist) | | | +| permission_value | [Permission](#permission) | | | +| resource | [Resource](#resource) | | | + +### SingleChoiceList + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| options | [ListOption](#listoption) | repeated | | + +### String + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| default | [string](#string) | | | +| required | [bool](#bool) | | | +| min_length | [int32](#int32) | | | +| max_length | [int32](#int32) | | | +| placeholder | [string](#string) | | | + +### UserRoleAssignment + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | id is generated upon saving the assignment | +| account_uuid | [string](#string) | | | +| role_id | [string](#string) | | the role_id is a bundle_id internally | + +### Value + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | id is the id of the Value. It is generated on saving it. | +| bundle_id | [string](#string) | | | +| setting_id | [string](#string) | | setting_id is the id of the setting from within its bundle. | +| account_uuid | [string](#string) | | | +| resource | [Resource](#resource) | | | +| bool_value | [bool](#bool) | | | +| int_value | [int64](#int64) | | | +| string_value | [string](#string) | | | +| list_value | [ListValue](#listvalue) | | | + +### ValueWithIdentifier + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| identifier | [Identifier](#identifier) | | | +| value | [Value](#value) | | | + +### Bundle.Type + + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| TYPE_UNKNOWN | 0 | | +| TYPE_DEFAULT | 1 | | +| TYPE_ROLE | 2 | | +### Permission.Constraint + + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| CONSTRAINT_UNKNOWN | 0 | | +| CONSTRAINT_OWN | 1 | | +| CONSTRAINT_SHARED | 2 | | +| CONSTRAINT_ALL | 3 | | +### Permission.Operation + + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| OPERATION_UNKNOWN | 0 | | +| OPERATION_CREATE | 1 | | +| OPERATION_READ | 2 | | +| OPERATION_UPDATE | 3 | | +| OPERATION_DELETE | 4 | | +| OPERATION_WRITE | 5 | WRITE is a combination of CREATE and UPDATE | +| OPERATION_READWRITE | 6 | READWRITE is a combination of READ and WRITE | +### Resource.Type + + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| TYPE_UNKNOWN | 0 | | +| TYPE_SYSTEM | 1 | | +| TYPE_FILE | 2 | | +| TYPE_SHARE | 3 | | +| TYPE_SETTING | 4 | | +| TYPE_BUNDLE | 5 | | +| TYPE_USER | 6 | | +| TYPE_GROUP | 7 | | + +## Scalar Value Types + +| .proto Type | Notes | C++ | Java | +| ----------- | ----- | --- | ---- | +| {{< div id="double" content="double" >}} | | double | double | +| {{< div id="float" content="float" >}} | | float | float | +| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | +| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | +| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int | +| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long | +| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | +| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | +| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | +| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | +| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int | +| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long | +| {{< div id="bool" content="bool" >}} | | bool | boolean | +| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | +| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString | + diff --git a/protogen/docs/extensions/ocis/services/settings/v1/grpc.md b/protogen/docs/extensions/ocis/services/settings/v1/grpc.md new file mode 100644 index 0000000000..7f83d3a8c5 --- /dev/null +++ b/protogen/docs/extensions/ocis/services/settings/v1/grpc.md @@ -0,0 +1,286 @@ +--- +title: "GRPC API" +date: 2018-05-02T00:00:00+00:00 +weight: 50 +geekdocRepo: https://github.com/owncloud/ocis-thumbnails +geekdocEditPath: edit/master/docs +geekdocFilePath: grpc.md +--- + +{{< toc >}} + + + +## ocis/services/settings/v1/settings.proto + +### AddSettingToBundleRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| bundle_id | [string](#string) | | | +| setting | [ocis.messages.settings.v1.Setting](../../../messages/settings/v1/grpc.md#setting) | | | + +### AddSettingToBundleResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| setting | [ocis.messages.settings.v1.Setting](../../../messages/settings/v1/grpc.md#setting) | | | + +### AssignRoleToUserRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| account_uuid | [string](#string) | | | +| role_id | [string](#string) | | the role_id is a bundle_id internally | + +### AssignRoleToUserResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| assignment | [ocis.messages.settings.v1.UserRoleAssignment](../../../messages/settings/v1/grpc.md#userroleassignment) | | | + +### GetBundleRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| bundle_id | [string](#string) | | | + +### GetBundleResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| bundle | [ocis.messages.settings.v1.Bundle](../../../messages/settings/v1/grpc.md#bundle) | | | + +### GetPermissionByIDRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| permission_id | [string](#string) | | | + +### GetPermissionByIDResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| permission | [ocis.messages.settings.v1.Permission](../../../messages/settings/v1/grpc.md#permission) | | | + +### GetValueByUniqueIdentifiersRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| account_uuid | [string](#string) | | | +| setting_id | [string](#string) | | | + +### GetValueRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | + +### GetValueResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| value | [ocis.messages.settings.v1.ValueWithIdentifier](../../../messages/settings/v1/grpc.md#valuewithidentifier) | | | + +### ListBundlesRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| bundle_ids | [string](#string) | repeated | | + +### ListBundlesResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| bundles | [ocis.messages.settings.v1.Bundle](../../../messages/settings/v1/grpc.md#bundle) | repeated | | + +### ListPermissionsByResourceRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| resource | [ocis.messages.settings.v1.Resource](../../../messages/settings/v1/grpc.md#resource) | | | + +### ListPermissionsByResourceResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| permissions | [ocis.messages.settings.v1.Permission](../../../messages/settings/v1/grpc.md#permission) | repeated | | + +### ListRoleAssignmentsRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| account_uuid | [string](#string) | | | + +### ListRoleAssignmentsResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| assignments | [ocis.messages.settings.v1.UserRoleAssignment](../../../messages/settings/v1/grpc.md#userroleassignment) | repeated | | + +### ListValuesRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| bundle_id | [string](#string) | | | +| account_uuid | [string](#string) | | | + +### ListValuesResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| values | [ocis.messages.settings.v1.ValueWithIdentifier](../../../messages/settings/v1/grpc.md#valuewithidentifier) | repeated | | + +### RemoveRoleFromUserRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [string](#string) | | | + +### RemoveSettingFromBundleRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| bundle_id | [string](#string) | | | +| setting_id | [string](#string) | | | + +### SaveBundleRequest + +--- +requests and responses for settings bundles +--- + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| bundle | [ocis.messages.settings.v1.Bundle](../../../messages/settings/v1/grpc.md#bundle) | | | + +### SaveBundleResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| bundle | [ocis.messages.settings.v1.Bundle](../../../messages/settings/v1/grpc.md#bundle) | | | + +### SaveValueRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| value | [ocis.messages.settings.v1.Value](../../../messages/settings/v1/grpc.md#value) | | | + +### SaveValueResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| value | [ocis.messages.settings.v1.ValueWithIdentifier](../../../messages/settings/v1/grpc.md#valuewithidentifier) | | | + + +### BundleService + + + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| SaveBundle | [SaveBundleRequest](#savebundlerequest) | [SaveBundleResponse](#savebundleresponse) | | +| GetBundle | [GetBundleRequest](#getbundlerequest) | [GetBundleResponse](#getbundleresponse) | | +| ListBundles | [ListBundlesRequest](#listbundlesrequest) | [ListBundlesResponse](#listbundlesresponse) | | +| AddSettingToBundle | [AddSettingToBundleRequest](#addsettingtobundlerequest) | [AddSettingToBundleResponse](#addsettingtobundleresponse) | | +| RemoveSettingFromBundle | [RemoveSettingFromBundleRequest](#removesettingfrombundlerequest) | [.google.protobuf.Empty](#googleprotobufempty) | | + +### PermissionService + + + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| ListPermissionsByResource | [ListPermissionsByResourceRequest](#listpermissionsbyresourcerequest) | [ListPermissionsByResourceResponse](#listpermissionsbyresourceresponse) | | +| GetPermissionByID | [GetPermissionByIDRequest](#getpermissionbyidrequest) | [GetPermissionByIDResponse](#getpermissionbyidresponse) | | + +### RoleService + + + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| ListRoles | [ListBundlesRequest](#listbundlesrequest) | [ListBundlesResponse](#listbundlesresponse) | | +| ListRoleAssignments | [ListRoleAssignmentsRequest](#listroleassignmentsrequest) | [ListRoleAssignmentsResponse](#listroleassignmentsresponse) | | +| AssignRoleToUser | [AssignRoleToUserRequest](#assignroletouserrequest) | [AssignRoleToUserResponse](#assignroletouserresponse) | | +| RemoveRoleFromUser | [RemoveRoleFromUserRequest](#removerolefromuserrequest) | [.google.protobuf.Empty](#googleprotobufempty) | | + +### ValueService + + + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| SaveValue | [SaveValueRequest](#savevaluerequest) | [SaveValueResponse](#savevalueresponse) | | +| GetValue | [GetValueRequest](#getvaluerequest) | [GetValueResponse](#getvalueresponse) | | +| ListValues | [ListValuesRequest](#listvaluesrequest) | [ListValuesResponse](#listvaluesresponse) | | +| GetValueByUniqueIdentifiers | [GetValueByUniqueIdentifiersRequest](#getvaluebyuniqueidentifiersrequest) | [GetValueResponse](#getvalueresponse) | | + +## Scalar Value Types + +| .proto Type | Notes | C++ | Java | +| ----------- | ----- | --- | ---- | +| {{< div id="double" content="double" >}} | | double | double | +| {{< div id="float" content="float" >}} | | float | float | +| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | +| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | +| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int | +| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long | +| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | +| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | +| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | +| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | +| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int | +| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long | +| {{< div id="bool" content="bool" >}} | | bool | boolean | +| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | +| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString | + diff --git a/protogen/gen/ocis/messages/settings/v1/settings.pb.go b/protogen/gen/ocis/messages/settings/v1/settings.pb.go new file mode 100644 index 0000000000..1b7630c703 --- /dev/null +++ b/protogen/gen/ocis/messages/settings/v1/settings.pb.go @@ -0,0 +1,1978 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.17.3 +// source: ocis/messages/settings/v1/settings.proto + +package v1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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 Resource_Type int32 + +const ( + Resource_TYPE_UNKNOWN Resource_Type = 0 + Resource_TYPE_SYSTEM Resource_Type = 1 + Resource_TYPE_FILE Resource_Type = 2 + Resource_TYPE_SHARE Resource_Type = 3 + Resource_TYPE_SETTING Resource_Type = 4 + Resource_TYPE_BUNDLE Resource_Type = 5 + Resource_TYPE_USER Resource_Type = 6 + Resource_TYPE_GROUP Resource_Type = 7 +) + +// Enum value maps for Resource_Type. +var ( + Resource_Type_name = map[int32]string{ + 0: "TYPE_UNKNOWN", + 1: "TYPE_SYSTEM", + 2: "TYPE_FILE", + 3: "TYPE_SHARE", + 4: "TYPE_SETTING", + 5: "TYPE_BUNDLE", + 6: "TYPE_USER", + 7: "TYPE_GROUP", + } + Resource_Type_value = map[string]int32{ + "TYPE_UNKNOWN": 0, + "TYPE_SYSTEM": 1, + "TYPE_FILE": 2, + "TYPE_SHARE": 3, + "TYPE_SETTING": 4, + "TYPE_BUNDLE": 5, + "TYPE_USER": 6, + "TYPE_GROUP": 7, + } +) + +func (x Resource_Type) Enum() *Resource_Type { + p := new(Resource_Type) + *p = x + return p +} + +func (x Resource_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Resource_Type) Descriptor() protoreflect.EnumDescriptor { + return file_ocis_messages_settings_v1_settings_proto_enumTypes[0].Descriptor() +} + +func (Resource_Type) Type() protoreflect.EnumType { + return &file_ocis_messages_settings_v1_settings_proto_enumTypes[0] +} + +func (x Resource_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Resource_Type.Descriptor instead. +func (Resource_Type) EnumDescriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{3, 0} +} + +type Bundle_Type int32 + +const ( + Bundle_TYPE_UNKNOWN Bundle_Type = 0 + Bundle_TYPE_DEFAULT Bundle_Type = 1 + Bundle_TYPE_ROLE Bundle_Type = 2 +) + +// Enum value maps for Bundle_Type. +var ( + Bundle_Type_name = map[int32]string{ + 0: "TYPE_UNKNOWN", + 1: "TYPE_DEFAULT", + 2: "TYPE_ROLE", + } + Bundle_Type_value = map[string]int32{ + "TYPE_UNKNOWN": 0, + "TYPE_DEFAULT": 1, + "TYPE_ROLE": 2, + } +) + +func (x Bundle_Type) Enum() *Bundle_Type { + p := new(Bundle_Type) + *p = x + return p +} + +func (x Bundle_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Bundle_Type) Descriptor() protoreflect.EnumDescriptor { + return file_ocis_messages_settings_v1_settings_proto_enumTypes[1].Descriptor() +} + +func (Bundle_Type) Type() protoreflect.EnumType { + return &file_ocis_messages_settings_v1_settings_proto_enumTypes[1] +} + +func (x Bundle_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Bundle_Type.Descriptor instead. +func (Bundle_Type) EnumDescriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{4, 0} +} + +type Permission_Operation int32 + +const ( + Permission_OPERATION_UNKNOWN Permission_Operation = 0 + Permission_OPERATION_CREATE Permission_Operation = 1 + Permission_OPERATION_READ Permission_Operation = 2 + Permission_OPERATION_UPDATE Permission_Operation = 3 + Permission_OPERATION_DELETE Permission_Operation = 4 + Permission_OPERATION_WRITE Permission_Operation = 5 // WRITE is a combination of CREATE and UPDATE + Permission_OPERATION_READWRITE Permission_Operation = 6 // READWRITE is a combination of READ and WRITE +) + +// Enum value maps for Permission_Operation. +var ( + Permission_Operation_name = map[int32]string{ + 0: "OPERATION_UNKNOWN", + 1: "OPERATION_CREATE", + 2: "OPERATION_READ", + 3: "OPERATION_UPDATE", + 4: "OPERATION_DELETE", + 5: "OPERATION_WRITE", + 6: "OPERATION_READWRITE", + } + Permission_Operation_value = map[string]int32{ + "OPERATION_UNKNOWN": 0, + "OPERATION_CREATE": 1, + "OPERATION_READ": 2, + "OPERATION_UPDATE": 3, + "OPERATION_DELETE": 4, + "OPERATION_WRITE": 5, + "OPERATION_READWRITE": 6, + } +) + +func (x Permission_Operation) Enum() *Permission_Operation { + p := new(Permission_Operation) + *p = x + return p +} + +func (x Permission_Operation) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Permission_Operation) Descriptor() protoreflect.EnumDescriptor { + return file_ocis_messages_settings_v1_settings_proto_enumTypes[2].Descriptor() +} + +func (Permission_Operation) Type() protoreflect.EnumType { + return &file_ocis_messages_settings_v1_settings_proto_enumTypes[2] +} + +func (x Permission_Operation) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Permission_Operation.Descriptor instead. +func (Permission_Operation) EnumDescriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{12, 0} +} + +type Permission_Constraint int32 + +const ( + Permission_CONSTRAINT_UNKNOWN Permission_Constraint = 0 + Permission_CONSTRAINT_OWN Permission_Constraint = 1 + Permission_CONSTRAINT_SHARED Permission_Constraint = 2 + Permission_CONSTRAINT_ALL Permission_Constraint = 3 +) + +// Enum value maps for Permission_Constraint. +var ( + Permission_Constraint_name = map[int32]string{ + 0: "CONSTRAINT_UNKNOWN", + 1: "CONSTRAINT_OWN", + 2: "CONSTRAINT_SHARED", + 3: "CONSTRAINT_ALL", + } + Permission_Constraint_value = map[string]int32{ + "CONSTRAINT_UNKNOWN": 0, + "CONSTRAINT_OWN": 1, + "CONSTRAINT_SHARED": 2, + "CONSTRAINT_ALL": 3, + } +) + +func (x Permission_Constraint) Enum() *Permission_Constraint { + p := new(Permission_Constraint) + *p = x + return p +} + +func (x Permission_Constraint) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Permission_Constraint) Descriptor() protoreflect.EnumDescriptor { + return file_ocis_messages_settings_v1_settings_proto_enumTypes[3].Descriptor() +} + +func (Permission_Constraint) Type() protoreflect.EnumType { + return &file_ocis_messages_settings_v1_settings_proto_enumTypes[3] +} + +func (x Permission_Constraint) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Permission_Constraint.Descriptor instead. +func (Permission_Constraint) EnumDescriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{12, 1} +} + +type ValueWithIdentifier struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifier *Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *ValueWithIdentifier) Reset() { + *x = ValueWithIdentifier{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValueWithIdentifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValueWithIdentifier) ProtoMessage() {} + +func (x *ValueWithIdentifier) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 ValueWithIdentifier.ProtoReflect.Descriptor instead. +func (*ValueWithIdentifier) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{0} +} + +func (x *ValueWithIdentifier) GetIdentifier() *Identifier { + if x != nil { + return x.Identifier + } + return nil +} + +func (x *ValueWithIdentifier) GetValue() *Value { + if x != nil { + return x.Value + } + return nil +} + +type Identifier struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Extension string `protobuf:"bytes,1,opt,name=extension,proto3" json:"extension,omitempty"` + Bundle string `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"` + Setting string `protobuf:"bytes,3,opt,name=setting,proto3" json:"setting,omitempty"` +} + +func (x *Identifier) Reset() { + *x = Identifier{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Identifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Identifier) ProtoMessage() {} + +func (x *Identifier) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 Identifier.ProtoReflect.Descriptor instead. +func (*Identifier) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{1} +} + +func (x *Identifier) GetExtension() string { + if x != nil { + return x.Extension + } + return "" +} + +func (x *Identifier) GetBundle() string { + if x != nil { + return x.Bundle + } + return "" +} + +func (x *Identifier) GetSetting() string { + if x != nil { + return x.Setting + } + return "" +} + +type UserRoleAssignment struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id is generated upon saving the assignment + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + AccountUuid string `protobuf:"bytes,2,opt,name=account_uuid,json=accountUuid,proto3" json:"account_uuid,omitempty"` + // the role_id is a bundle_id internally + RoleId string `protobuf:"bytes,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` +} + +func (x *UserRoleAssignment) Reset() { + *x = UserRoleAssignment{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserRoleAssignment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserRoleAssignment) ProtoMessage() {} + +func (x *UserRoleAssignment) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 UserRoleAssignment.ProtoReflect.Descriptor instead. +func (*UserRoleAssignment) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{2} +} + +func (x *UserRoleAssignment) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UserRoleAssignment) GetAccountUuid() string { + if x != nil { + return x.AccountUuid + } + return "" +} + +func (x *UserRoleAssignment) GetRoleId() string { + if x != nil { + return x.RoleId + } + return "" +} + +type Resource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type Resource_Type `protobuf:"varint,1,opt,name=type,proto3,enum=ocis.messages.settings.v1.Resource_Type" json:"type,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *Resource) Reset() { + *x = Resource{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Resource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Resource) ProtoMessage() {} + +func (x *Resource) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 Resource.ProtoReflect.Descriptor instead. +func (*Resource) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{3} +} + +func (x *Resource) GetType() Resource_Type { + if x != nil { + return x.Type + } + return Resource_TYPE_UNKNOWN +} + +func (x *Resource) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type Bundle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type Bundle_Type `protobuf:"varint,3,opt,name=type,proto3,enum=ocis.messages.settings.v1.Bundle_Type" json:"type,omitempty"` + Extension string `protobuf:"bytes,4,opt,name=extension,proto3" json:"extension,omitempty"` + DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Settings []*Setting `protobuf:"bytes,6,rep,name=settings,proto3" json:"settings,omitempty"` + Resource *Resource `protobuf:"bytes,7,opt,name=resource,proto3" json:"resource,omitempty"` +} + +func (x *Bundle) Reset() { + *x = Bundle{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Bundle) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Bundle) ProtoMessage() {} + +func (x *Bundle) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 Bundle.ProtoReflect.Descriptor instead. +func (*Bundle) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{4} +} + +func (x *Bundle) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Bundle) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Bundle) GetType() Bundle_Type { + if x != nil { + return x.Type + } + return Bundle_TYPE_UNKNOWN +} + +func (x *Bundle) GetExtension() string { + if x != nil { + return x.Extension + } + return "" +} + +func (x *Bundle) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *Bundle) GetSettings() []*Setting { + if x != nil { + return x.Settings + } + return nil +} + +func (x *Bundle) GetResource() *Resource { + if x != nil { + return x.Resource + } + return nil +} + +type Setting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,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"` + // Types that are assignable to Value: + // *Setting_IntValue + // *Setting_StringValue + // *Setting_BoolValue + // *Setting_SingleChoiceValue + // *Setting_MultiChoiceValue + // *Setting_PermissionValue + Value isSetting_Value `protobuf_oneof:"value"` + Resource *Resource `protobuf:"bytes,11,opt,name=resource,proto3" json:"resource,omitempty"` +} + +func (x *Setting) Reset() { + *x = Setting{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Setting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Setting) ProtoMessage() {} + +func (x *Setting) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 Setting.ProtoReflect.Descriptor instead. +func (*Setting) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{5} +} + +func (x *Setting) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Setting) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Setting) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *Setting) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (m *Setting) GetValue() isSetting_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *Setting) GetIntValue() *Int { + if x, ok := x.GetValue().(*Setting_IntValue); ok { + return x.IntValue + } + return nil +} + +func (x *Setting) GetStringValue() *String { + if x, ok := x.GetValue().(*Setting_StringValue); ok { + return x.StringValue + } + return nil +} + +func (x *Setting) GetBoolValue() *Bool { + if x, ok := x.GetValue().(*Setting_BoolValue); ok { + return x.BoolValue + } + return nil +} + +func (x *Setting) GetSingleChoiceValue() *SingleChoiceList { + if x, ok := x.GetValue().(*Setting_SingleChoiceValue); ok { + return x.SingleChoiceValue + } + return nil +} + +func (x *Setting) GetMultiChoiceValue() *MultiChoiceList { + if x, ok := x.GetValue().(*Setting_MultiChoiceValue); ok { + return x.MultiChoiceValue + } + return nil +} + +func (x *Setting) GetPermissionValue() *Permission { + if x, ok := x.GetValue().(*Setting_PermissionValue); ok { + return x.PermissionValue + } + return nil +} + +func (x *Setting) GetResource() *Resource { + if x != nil { + return x.Resource + } + return nil +} + +type isSetting_Value interface { + isSetting_Value() +} + +type Setting_IntValue struct { + IntValue *Int `protobuf:"bytes,5,opt,name=int_value,json=intValue,proto3,oneof"` +} + +type Setting_StringValue struct { + StringValue *String `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type Setting_BoolValue struct { + BoolValue *Bool `protobuf:"bytes,7,opt,name=bool_value,json=boolValue,proto3,oneof"` +} + +type Setting_SingleChoiceValue struct { + SingleChoiceValue *SingleChoiceList `protobuf:"bytes,8,opt,name=single_choice_value,json=singleChoiceValue,proto3,oneof"` +} + +type Setting_MultiChoiceValue struct { + MultiChoiceValue *MultiChoiceList `protobuf:"bytes,9,opt,name=multi_choice_value,json=multiChoiceValue,proto3,oneof"` +} + +type Setting_PermissionValue struct { + PermissionValue *Permission `protobuf:"bytes,10,opt,name=permission_value,json=permissionValue,proto3,oneof"` +} + +func (*Setting_IntValue) isSetting_Value() {} + +func (*Setting_StringValue) isSetting_Value() {} + +func (*Setting_BoolValue) isSetting_Value() {} + +func (*Setting_SingleChoiceValue) isSetting_Value() {} + +func (*Setting_MultiChoiceValue) isSetting_Value() {} + +func (*Setting_PermissionValue) isSetting_Value() {} + +type Int struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Default int64 `protobuf:"varint,1,opt,name=default,proto3" json:"default,omitempty"` + Min int64 `protobuf:"varint,2,opt,name=min,proto3" json:"min,omitempty"` + Max int64 `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"` + Step int64 `protobuf:"varint,4,opt,name=step,proto3" json:"step,omitempty"` + Placeholder string `protobuf:"bytes,5,opt,name=placeholder,proto3" json:"placeholder,omitempty"` +} + +func (x *Int) Reset() { + *x = Int{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Int) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Int) ProtoMessage() {} + +func (x *Int) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 Int.ProtoReflect.Descriptor instead. +func (*Int) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{6} +} + +func (x *Int) GetDefault() int64 { + if x != nil { + return x.Default + } + return 0 +} + +func (x *Int) GetMin() int64 { + if x != nil { + return x.Min + } + return 0 +} + +func (x *Int) GetMax() int64 { + if x != nil { + return x.Max + } + return 0 +} + +func (x *Int) GetStep() int64 { + if x != nil { + return x.Step + } + return 0 +} + +func (x *Int) GetPlaceholder() string { + if x != nil { + return x.Placeholder + } + return "" +} + +type String struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Default string `protobuf:"bytes,1,opt,name=default,proto3" json:"default,omitempty"` + Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"` + MinLength int32 `protobuf:"varint,3,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` + MaxLength int32 `protobuf:"varint,4,opt,name=max_length,json=maxLength,proto3" json:"max_length,omitempty"` + Placeholder string `protobuf:"bytes,5,opt,name=placeholder,proto3" json:"placeholder,omitempty"` +} + +func (x *String) Reset() { + *x = String{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *String) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*String) ProtoMessage() {} + +func (x *String) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 String.ProtoReflect.Descriptor instead. +func (*String) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{7} +} + +func (x *String) GetDefault() string { + if x != nil { + return x.Default + } + return "" +} + +func (x *String) GetRequired() bool { + if x != nil { + return x.Required + } + return false +} + +func (x *String) GetMinLength() int32 { + if x != nil { + return x.MinLength + } + return 0 +} + +func (x *String) GetMaxLength() int32 { + if x != nil { + return x.MaxLength + } + return 0 +} + +func (x *String) GetPlaceholder() string { + if x != nil { + return x.Placeholder + } + return "" +} + +type Bool struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Default bool `protobuf:"varint,1,opt,name=default,proto3" json:"default,omitempty"` + Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` +} + +func (x *Bool) Reset() { + *x = Bool{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Bool) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Bool) ProtoMessage() {} + +func (x *Bool) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 Bool.ProtoReflect.Descriptor instead. +func (*Bool) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{8} +} + +func (x *Bool) GetDefault() bool { + if x != nil { + return x.Default + } + return false +} + +func (x *Bool) GetLabel() string { + if x != nil { + return x.Label + } + return "" +} + +type SingleChoiceList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Options []*ListOption `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"` +} + +func (x *SingleChoiceList) Reset() { + *x = SingleChoiceList{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SingleChoiceList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SingleChoiceList) ProtoMessage() {} + +func (x *SingleChoiceList) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 SingleChoiceList.ProtoReflect.Descriptor instead. +func (*SingleChoiceList) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{9} +} + +func (x *SingleChoiceList) GetOptions() []*ListOption { + if x != nil { + return x.Options + } + return nil +} + +type MultiChoiceList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Options []*ListOption `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"` +} + +func (x *MultiChoiceList) Reset() { + *x = MultiChoiceList{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MultiChoiceList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MultiChoiceList) ProtoMessage() {} + +func (x *MultiChoiceList) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 MultiChoiceList.ProtoReflect.Descriptor instead. +func (*MultiChoiceList) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{10} +} + +func (x *MultiChoiceList) GetOptions() []*ListOption { + if x != nil { + return x.Options + } + return nil +} + +type ListOption struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *ListOptionValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Default bool `protobuf:"varint,2,opt,name=default,proto3" json:"default,omitempty"` + DisplayValue string `protobuf:"bytes,3,opt,name=display_value,json=displayValue,proto3" json:"display_value,omitempty"` +} + +func (x *ListOption) Reset() { + *x = ListOption{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListOption) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOption) ProtoMessage() {} + +func (x *ListOption) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 ListOption.ProtoReflect.Descriptor instead. +func (*ListOption) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{11} +} + +func (x *ListOption) GetValue() *ListOptionValue { + if x != nil { + return x.Value + } + return nil +} + +func (x *ListOption) GetDefault() bool { + if x != nil { + return x.Default + } + return false +} + +func (x *ListOption) GetDisplayValue() string { + if x != nil { + return x.DisplayValue + } + return "" +} + +type Permission struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Operation Permission_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=ocis.messages.settings.v1.Permission_Operation" json:"operation,omitempty"` + Constraint Permission_Constraint `protobuf:"varint,2,opt,name=constraint,proto3,enum=ocis.messages.settings.v1.Permission_Constraint" json:"constraint,omitempty"` +} + +func (x *Permission) Reset() { + *x = Permission{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Permission) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Permission) ProtoMessage() {} + +func (x *Permission) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 Permission.ProtoReflect.Descriptor instead. +func (*Permission) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{12} +} + +func (x *Permission) GetOperation() Permission_Operation { + if x != nil { + return x.Operation + } + return Permission_OPERATION_UNKNOWN +} + +func (x *Permission) GetConstraint() Permission_Constraint { + if x != nil { + return x.Constraint + } + return Permission_CONSTRAINT_UNKNOWN +} + +type Value struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id is the id of the Value. It is generated on saving it. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + BundleId string `protobuf:"bytes,2,opt,name=bundle_id,json=bundleId,proto3" json:"bundle_id,omitempty"` + // setting_id is the id of the setting from within its bundle. + SettingId string `protobuf:"bytes,3,opt,name=setting_id,json=settingId,proto3" json:"setting_id,omitempty"` + AccountUuid string `protobuf:"bytes,4,opt,name=account_uuid,json=accountUuid,proto3" json:"account_uuid,omitempty"` + Resource *Resource `protobuf:"bytes,5,opt,name=resource,proto3" json:"resource,omitempty"` + // Types that are assignable to Value: + // *Value_BoolValue + // *Value_IntValue + // *Value_StringValue + // *Value_ListValue + Value isValue_Value `protobuf_oneof:"value"` +} + +func (x *Value) Reset() { + *x = Value{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Value) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Value) ProtoMessage() {} + +func (x *Value) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 Value.ProtoReflect.Descriptor instead. +func (*Value) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{13} +} + +func (x *Value) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Value) GetBundleId() string { + if x != nil { + return x.BundleId + } + return "" +} + +func (x *Value) GetSettingId() string { + if x != nil { + return x.SettingId + } + return "" +} + +func (x *Value) GetAccountUuid() string { + if x != nil { + return x.AccountUuid + } + return "" +} + +func (x *Value) GetResource() *Resource { + if x != nil { + return x.Resource + } + return nil +} + +func (m *Value) GetValue() isValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *Value) GetBoolValue() bool { + if x, ok := x.GetValue().(*Value_BoolValue); ok { + return x.BoolValue + } + return false +} + +func (x *Value) GetIntValue() int64 { + if x, ok := x.GetValue().(*Value_IntValue); ok { + return x.IntValue + } + return 0 +} + +func (x *Value) GetStringValue() string { + if x, ok := x.GetValue().(*Value_StringValue); ok { + return x.StringValue + } + return "" +} + +func (x *Value) GetListValue() *ListValue { + if x, ok := x.GetValue().(*Value_ListValue); ok { + return x.ListValue + } + return nil +} + +type isValue_Value interface { + isValue_Value() +} + +type Value_BoolValue struct { + BoolValue bool `protobuf:"varint,6,opt,name=bool_value,json=boolValue,proto3,oneof"` +} + +type Value_IntValue struct { + IntValue int64 `protobuf:"varint,7,opt,name=int_value,json=intValue,proto3,oneof"` +} + +type Value_StringValue struct { + StringValue string `protobuf:"bytes,8,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type Value_ListValue struct { + ListValue *ListValue `protobuf:"bytes,9,opt,name=list_value,json=listValue,proto3,oneof"` +} + +func (*Value_BoolValue) isValue_Value() {} + +func (*Value_IntValue) isValue_Value() {} + +func (*Value_StringValue) isValue_Value() {} + +func (*Value_ListValue) isValue_Value() {} + +type ListValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Values []*ListOptionValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` +} + +func (x *ListValue) Reset() { + *x = ListValue{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListValue) ProtoMessage() {} + +func (x *ListValue) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 ListValue.ProtoReflect.Descriptor instead. +func (*ListValue) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{14} +} + +func (x *ListValue) GetValues() []*ListOptionValue { + if x != nil { + return x.Values + } + return nil +} + +type ListOptionValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Option: + // *ListOptionValue_StringValue + // *ListOptionValue_IntValue + Option isListOptionValue_Option `protobuf_oneof:"option"` +} + +func (x *ListOptionValue) Reset() { + *x = ListOptionValue{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_messages_settings_v1_settings_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListOptionValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOptionValue) ProtoMessage() {} + +func (x *ListOptionValue) ProtoReflect() protoreflect.Message { + mi := &file_ocis_messages_settings_v1_settings_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 ListOptionValue.ProtoReflect.Descriptor instead. +func (*ListOptionValue) Descriptor() ([]byte, []int) { + return file_ocis_messages_settings_v1_settings_proto_rawDescGZIP(), []int{15} +} + +func (m *ListOptionValue) GetOption() isListOptionValue_Option { + if m != nil { + return m.Option + } + return nil +} + +func (x *ListOptionValue) GetStringValue() string { + if x, ok := x.GetOption().(*ListOptionValue_StringValue); ok { + return x.StringValue + } + return "" +} + +func (x *ListOptionValue) GetIntValue() int64 { + if x, ok := x.GetOption().(*ListOptionValue_IntValue); ok { + return x.IntValue + } + return 0 +} + +type isListOptionValue_Option interface { + isListOptionValue_Option() +} + +type ListOptionValue_StringValue struct { + StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type ListOptionValue_IntValue struct { + IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"` +} + +func (*ListOptionValue_StringValue) isListOptionValue_Option() {} + +func (*ListOptionValue_IntValue) isListOptionValue_Option() {} + +var File_ocis_messages_settings_v1_settings_proto protoreflect.FileDescriptor + +var file_ocis_messages_settings_v1_settings_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2f, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x6f, 0x63, 0x69, 0x73, + 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x94, 0x01, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x57, + 0x69, 0x74, 0x68, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x45, 0x0a, + 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5c, 0x0a, 0x0a, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, + 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x60, 0x0a, 0x12, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x55, + 0x75, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xe5, 0x01, 0x0a, + 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8a, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, + 0x4d, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, + 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x48, 0x41, 0x52, 0x45, + 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x49, + 0x4e, 0x47, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x55, 0x4e, + 0x44, 0x4c, 0x45, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x53, + 0x45, 0x52, 0x10, 0x06, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x52, 0x4f, + 0x55, 0x50, 0x10, 0x07, 0x22, 0xe5, 0x02, 0x0a, 0x06, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x26, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, + 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x3e, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x12, 0x3f, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x22, 0x39, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x0d, 0x0a, + 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x02, 0x22, 0x94, 0x05, 0x0a, + 0x07, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, + 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x3d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x49, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x46, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6f, + 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x48, 0x00, 0x52, + 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x5d, 0x0a, 0x13, 0x73, 0x69, + 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x63, 0x68, 0x6f, 0x69, 0x63, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43, 0x68, 0x6f, 0x69, 0x63, 0x65, + 0x4c, 0x69, 0x73, 0x74, 0x48, 0x00, 0x52, 0x11, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43, 0x68, + 0x6f, 0x69, 0x63, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x5a, 0x0a, 0x12, 0x6d, 0x75, 0x6c, + 0x74, 0x69, 0x5f, 0x63, 0x68, 0x6f, 0x69, 0x63, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x43, 0x68, 0x6f, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x10, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x43, 0x68, 0x6f, 0x69, 0x63, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x52, 0x0a, 0x10, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x63, + 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0x79, 0x0a, 0x03, 0x49, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x03, 0x6d, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x61, 0x78, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x03, 0x6d, 0x61, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x12, 0x20, 0x0a, 0x0b, + 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x22, 0x9e, + 0x01, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, + 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x1d, + 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x20, 0x0a, + 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x22, + 0x36, 0x0a, 0x04, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x53, 0x0a, 0x10, 0x53, 0x69, 0x6e, 0x67, 0x6c, + 0x65, 0x43, 0x68, 0x6f, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6f, + 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x52, 0x0a, 0x0f, + 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x43, 0x68, 0x6f, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x3f, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0x8d, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x40, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x64, + 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x22, 0xbb, 0x03, 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x4d, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, + 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, + 0x61, 0x69, 0x6e, 0x74, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, + 0x22, 0xa6, 0x01, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, + 0x0a, 0x11, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, + 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x4f, + 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x10, 0x02, 0x12, + 0x14, 0x0a, 0x10, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x50, 0x44, + 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x4f, + 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x57, 0x52, 0x49, 0x54, 0x45, 0x10, 0x05, + 0x12, 0x17, 0x0a, 0x13, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, + 0x41, 0x44, 0x57, 0x52, 0x49, 0x54, 0x45, 0x10, 0x06, 0x22, 0x63, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, + 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x4e, 0x53, 0x54, + 0x52, 0x41, 0x49, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, + 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x4e, 0x53, 0x54, 0x52, 0x41, 0x49, 0x4e, 0x54, 0x5f, 0x4f, 0x57, + 0x4e, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x4e, 0x53, 0x54, 0x52, 0x41, 0x49, 0x4e, + 0x54, 0x5f, 0x53, 0x48, 0x41, 0x52, 0x45, 0x44, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, + 0x4e, 0x53, 0x54, 0x52, 0x41, 0x49, 0x4e, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x03, 0x22, 0xec, + 0x02, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, + 0x75, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x55, 0x75, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x63, 0x69, 0x73, + 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, + 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, + 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, + 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x4f, 0x0a, + 0x09, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x42, 0x0a, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6f, 0x63, 0x69, + 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x5f, + 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0x41, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x77, + 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, + 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ocis_messages_settings_v1_settings_proto_rawDescOnce sync.Once + file_ocis_messages_settings_v1_settings_proto_rawDescData = file_ocis_messages_settings_v1_settings_proto_rawDesc +) + +func file_ocis_messages_settings_v1_settings_proto_rawDescGZIP() []byte { + file_ocis_messages_settings_v1_settings_proto_rawDescOnce.Do(func() { + file_ocis_messages_settings_v1_settings_proto_rawDescData = protoimpl.X.CompressGZIP(file_ocis_messages_settings_v1_settings_proto_rawDescData) + }) + return file_ocis_messages_settings_v1_settings_proto_rawDescData +} + +var file_ocis_messages_settings_v1_settings_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_ocis_messages_settings_v1_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_ocis_messages_settings_v1_settings_proto_goTypes = []interface{}{ + (Resource_Type)(0), // 0: ocis.messages.settings.v1.Resource.Type + (Bundle_Type)(0), // 1: ocis.messages.settings.v1.Bundle.Type + (Permission_Operation)(0), // 2: ocis.messages.settings.v1.Permission.Operation + (Permission_Constraint)(0), // 3: ocis.messages.settings.v1.Permission.Constraint + (*ValueWithIdentifier)(nil), // 4: ocis.messages.settings.v1.ValueWithIdentifier + (*Identifier)(nil), // 5: ocis.messages.settings.v1.Identifier + (*UserRoleAssignment)(nil), // 6: ocis.messages.settings.v1.UserRoleAssignment + (*Resource)(nil), // 7: ocis.messages.settings.v1.Resource + (*Bundle)(nil), // 8: ocis.messages.settings.v1.Bundle + (*Setting)(nil), // 9: ocis.messages.settings.v1.Setting + (*Int)(nil), // 10: ocis.messages.settings.v1.Int + (*String)(nil), // 11: ocis.messages.settings.v1.String + (*Bool)(nil), // 12: ocis.messages.settings.v1.Bool + (*SingleChoiceList)(nil), // 13: ocis.messages.settings.v1.SingleChoiceList + (*MultiChoiceList)(nil), // 14: ocis.messages.settings.v1.MultiChoiceList + (*ListOption)(nil), // 15: ocis.messages.settings.v1.ListOption + (*Permission)(nil), // 16: ocis.messages.settings.v1.Permission + (*Value)(nil), // 17: ocis.messages.settings.v1.Value + (*ListValue)(nil), // 18: ocis.messages.settings.v1.ListValue + (*ListOptionValue)(nil), // 19: ocis.messages.settings.v1.ListOptionValue +} +var file_ocis_messages_settings_v1_settings_proto_depIdxs = []int32{ + 5, // 0: ocis.messages.settings.v1.ValueWithIdentifier.identifier:type_name -> ocis.messages.settings.v1.Identifier + 17, // 1: ocis.messages.settings.v1.ValueWithIdentifier.value:type_name -> ocis.messages.settings.v1.Value + 0, // 2: ocis.messages.settings.v1.Resource.type:type_name -> ocis.messages.settings.v1.Resource.Type + 1, // 3: ocis.messages.settings.v1.Bundle.type:type_name -> ocis.messages.settings.v1.Bundle.Type + 9, // 4: ocis.messages.settings.v1.Bundle.settings:type_name -> ocis.messages.settings.v1.Setting + 7, // 5: ocis.messages.settings.v1.Bundle.resource:type_name -> ocis.messages.settings.v1.Resource + 10, // 6: ocis.messages.settings.v1.Setting.int_value:type_name -> ocis.messages.settings.v1.Int + 11, // 7: ocis.messages.settings.v1.Setting.string_value:type_name -> ocis.messages.settings.v1.String + 12, // 8: ocis.messages.settings.v1.Setting.bool_value:type_name -> ocis.messages.settings.v1.Bool + 13, // 9: ocis.messages.settings.v1.Setting.single_choice_value:type_name -> ocis.messages.settings.v1.SingleChoiceList + 14, // 10: ocis.messages.settings.v1.Setting.multi_choice_value:type_name -> ocis.messages.settings.v1.MultiChoiceList + 16, // 11: ocis.messages.settings.v1.Setting.permission_value:type_name -> ocis.messages.settings.v1.Permission + 7, // 12: ocis.messages.settings.v1.Setting.resource:type_name -> ocis.messages.settings.v1.Resource + 15, // 13: ocis.messages.settings.v1.SingleChoiceList.options:type_name -> ocis.messages.settings.v1.ListOption + 15, // 14: ocis.messages.settings.v1.MultiChoiceList.options:type_name -> ocis.messages.settings.v1.ListOption + 19, // 15: ocis.messages.settings.v1.ListOption.value:type_name -> ocis.messages.settings.v1.ListOptionValue + 2, // 16: ocis.messages.settings.v1.Permission.operation:type_name -> ocis.messages.settings.v1.Permission.Operation + 3, // 17: ocis.messages.settings.v1.Permission.constraint:type_name -> ocis.messages.settings.v1.Permission.Constraint + 7, // 18: ocis.messages.settings.v1.Value.resource:type_name -> ocis.messages.settings.v1.Resource + 18, // 19: ocis.messages.settings.v1.Value.list_value:type_name -> ocis.messages.settings.v1.ListValue + 19, // 20: ocis.messages.settings.v1.ListValue.values:type_name -> ocis.messages.settings.v1.ListOptionValue + 21, // [21:21] is the sub-list for method output_type + 21, // [21:21] is the sub-list for method input_type + 21, // [21:21] is the sub-list for extension type_name + 21, // [21:21] is the sub-list for extension extendee + 0, // [0:21] is the sub-list for field type_name +} + +func init() { file_ocis_messages_settings_v1_settings_proto_init() } +func file_ocis_messages_settings_v1_settings_proto_init() { + if File_ocis_messages_settings_v1_settings_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ocis_messages_settings_v1_settings_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueWithIdentifier); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Identifier); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserRoleAssignment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Resource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Bundle); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Setting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Int); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*String); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Bool); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SingleChoiceList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiChoiceList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListOption); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Permission); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListOptionValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*Setting_IntValue)(nil), + (*Setting_StringValue)(nil), + (*Setting_BoolValue)(nil), + (*Setting_SingleChoiceValue)(nil), + (*Setting_MultiChoiceValue)(nil), + (*Setting_PermissionValue)(nil), + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[13].OneofWrappers = []interface{}{ + (*Value_BoolValue)(nil), + (*Value_IntValue)(nil), + (*Value_StringValue)(nil), + (*Value_ListValue)(nil), + } + file_ocis_messages_settings_v1_settings_proto_msgTypes[15].OneofWrappers = []interface{}{ + (*ListOptionValue_StringValue)(nil), + (*ListOptionValue_IntValue)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ocis_messages_settings_v1_settings_proto_rawDesc, + NumEnums: 4, + NumMessages: 16, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_ocis_messages_settings_v1_settings_proto_goTypes, + DependencyIndexes: file_ocis_messages_settings_v1_settings_proto_depIdxs, + EnumInfos: file_ocis_messages_settings_v1_settings_proto_enumTypes, + MessageInfos: file_ocis_messages_settings_v1_settings_proto_msgTypes, + }.Build() + File_ocis_messages_settings_v1_settings_proto = out.File + file_ocis_messages_settings_v1_settings_proto_rawDesc = nil + file_ocis_messages_settings_v1_settings_proto_goTypes = nil + file_ocis_messages_settings_v1_settings_proto_depIdxs = nil +} diff --git a/protogen/gen/ocis/messages/settings/v1/settings.pb.micro.go b/protogen/gen/ocis/messages/settings/v1/settings.pb.micro.go new file mode 100644 index 0000000000..8061b393cf --- /dev/null +++ b/protogen/gen/ocis/messages/settings/v1/settings.pb.micro.go @@ -0,0 +1,15 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: ocis/messages/settings/v1/settings.proto + +package v1 + +import ( + fmt "fmt" + proto "google.golang.org/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf diff --git a/protogen/gen/ocis/messages/settings/v1/settings.pb.web.go b/protogen/gen/ocis/messages/settings/v1/settings.pb.web.go new file mode 100644 index 0000000000..b8e8615a56 --- /dev/null +++ b/protogen/gen/ocis/messages/settings/v1/settings.pb.web.go @@ -0,0 +1,587 @@ +// Code generated by protoc-gen-microweb. DO NOT EDIT. +// source: v1.proto + +package v1 + +import ( + "bytes" + "encoding/json" + + "github.com/golang/protobuf/jsonpb" +) + +// ValueWithIdentifierJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ValueWithIdentifier. This struct is safe to replace or modify but +// should not be done so concurrently. +var ValueWithIdentifierJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ValueWithIdentifier) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ValueWithIdentifierJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ValueWithIdentifier)(nil) + +// ValueWithIdentifierJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ValueWithIdentifier. This struct is safe to replace or modify but +// should not be done so concurrently. +var ValueWithIdentifierJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ValueWithIdentifier) UnmarshalJSON(b []byte) error { + return ValueWithIdentifierJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ValueWithIdentifier)(nil) + +// IdentifierJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of Identifier. This struct is safe to replace or modify but +// should not be done so concurrently. +var IdentifierJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *Identifier) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := IdentifierJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*Identifier)(nil) + +// IdentifierJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of Identifier. This struct is safe to replace or modify but +// should not be done so concurrently. +var IdentifierJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *Identifier) UnmarshalJSON(b []byte) error { + return IdentifierJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*Identifier)(nil) + +// UserRoleAssignmentJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of UserRoleAssignment. This struct is safe to replace or modify but +// should not be done so concurrently. +var UserRoleAssignmentJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *UserRoleAssignment) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := UserRoleAssignmentJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*UserRoleAssignment)(nil) + +// UserRoleAssignmentJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of UserRoleAssignment. This struct is safe to replace or modify but +// should not be done so concurrently. +var UserRoleAssignmentJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *UserRoleAssignment) UnmarshalJSON(b []byte) error { + return UserRoleAssignmentJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*UserRoleAssignment)(nil) + +// ResourceJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of Resource. This struct is safe to replace or modify but +// should not be done so concurrently. +var ResourceJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *Resource) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ResourceJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*Resource)(nil) + +// ResourceJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of Resource. This struct is safe to replace or modify but +// should not be done so concurrently. +var ResourceJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *Resource) UnmarshalJSON(b []byte) error { + return ResourceJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*Resource)(nil) + +// BundleJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of Bundle. This struct is safe to replace or modify but +// should not be done so concurrently. +var BundleJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *Bundle) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := BundleJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*Bundle)(nil) + +// BundleJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of Bundle. This struct is safe to replace or modify but +// should not be done so concurrently. +var BundleJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *Bundle) UnmarshalJSON(b []byte) error { + return BundleJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*Bundle)(nil) + +// SettingJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of Setting. This struct is safe to replace or modify but +// should not be done so concurrently. +var SettingJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *Setting) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := SettingJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*Setting)(nil) + +// SettingJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of Setting. This struct is safe to replace or modify but +// should not be done so concurrently. +var SettingJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *Setting) UnmarshalJSON(b []byte) error { + return SettingJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*Setting)(nil) + +// IntJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of Int. This struct is safe to replace or modify but +// should not be done so concurrently. +var IntJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *Int) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := IntJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*Int)(nil) + +// IntJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of Int. This struct is safe to replace or modify but +// should not be done so concurrently. +var IntJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *Int) UnmarshalJSON(b []byte) error { + return IntJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*Int)(nil) + +// StringJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of String. This struct is safe to replace or modify but +// should not be done so concurrently. +var StringJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *String) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := StringJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*String)(nil) + +// StringJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of String. This struct is safe to replace or modify but +// should not be done so concurrently. +var StringJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *String) UnmarshalJSON(b []byte) error { + return StringJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*String)(nil) + +// BoolJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of Bool. This struct is safe to replace or modify but +// should not be done so concurrently. +var BoolJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *Bool) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := BoolJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*Bool)(nil) + +// BoolJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of Bool. This struct is safe to replace or modify but +// should not be done so concurrently. +var BoolJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *Bool) UnmarshalJSON(b []byte) error { + return BoolJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*Bool)(nil) + +// SingleChoiceListJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of SingleChoiceList. This struct is safe to replace or modify but +// should not be done so concurrently. +var SingleChoiceListJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *SingleChoiceList) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := SingleChoiceListJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*SingleChoiceList)(nil) + +// SingleChoiceListJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of SingleChoiceList. This struct is safe to replace or modify but +// should not be done so concurrently. +var SingleChoiceListJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *SingleChoiceList) UnmarshalJSON(b []byte) error { + return SingleChoiceListJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*SingleChoiceList)(nil) + +// MultiChoiceListJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of MultiChoiceList. This struct is safe to replace or modify but +// should not be done so concurrently. +var MultiChoiceListJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *MultiChoiceList) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := MultiChoiceListJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*MultiChoiceList)(nil) + +// MultiChoiceListJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of MultiChoiceList. This struct is safe to replace or modify but +// should not be done so concurrently. +var MultiChoiceListJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *MultiChoiceList) UnmarshalJSON(b []byte) error { + return MultiChoiceListJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*MultiChoiceList)(nil) + +// ListOptionJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ListOption. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListOptionJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ListOption) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ListOptionJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ListOption)(nil) + +// ListOptionJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ListOption. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListOptionJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ListOption) UnmarshalJSON(b []byte) error { + return ListOptionJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ListOption)(nil) + +// PermissionJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of Permission. This struct is safe to replace or modify but +// should not be done so concurrently. +var PermissionJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *Permission) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := PermissionJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*Permission)(nil) + +// PermissionJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of Permission. This struct is safe to replace or modify but +// should not be done so concurrently. +var PermissionJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *Permission) UnmarshalJSON(b []byte) error { + return PermissionJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*Permission)(nil) + +// ValueJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of Value. This struct is safe to replace or modify but +// should not be done so concurrently. +var ValueJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *Value) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ValueJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*Value)(nil) + +// ValueJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of Value. This struct is safe to replace or modify but +// should not be done so concurrently. +var ValueJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *Value) UnmarshalJSON(b []byte) error { + return ValueJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*Value)(nil) + +// ListValueJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ListValue. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListValueJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ListValue) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ListValueJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ListValue)(nil) + +// ListValueJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ListValue. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListValueJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ListValue) UnmarshalJSON(b []byte) error { + return ListValueJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ListValue)(nil) + +// ListOptionValueJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ListOptionValue. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListOptionValueJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ListOptionValue) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ListOptionValueJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ListOptionValue)(nil) + +// ListOptionValueJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ListOptionValue. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListOptionValueJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ListOptionValue) UnmarshalJSON(b []byte) error { + return ListOptionValueJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ListOptionValue)(nil) diff --git a/protogen/gen/ocis/messages/settings/v1/settings.swagger.json b/protogen/gen/ocis/messages/settings/v1/settings.swagger.json new file mode 100644 index 0000000000..8d47f2e103 --- /dev/null +++ b/protogen/gen/ocis/messages/settings/v1/settings.swagger.json @@ -0,0 +1,43 @@ +{ + "swagger": "2.0", + "info": { + "title": "ocis/messages/settings/v1/settings.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string" + } + }, + "additionalProperties": {} + }, + "rpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + } + } +} diff --git a/protogen/gen/ocis/services/settings/v1/settings.pb.go b/protogen/gen/ocis/services/settings/v1/settings.pb.go new file mode 100644 index 0000000000..712745fa5c --- /dev/null +++ b/protogen/gen/ocis/services/settings/v1/settings.pb.go @@ -0,0 +1,2004 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.17.3 +// source: ocis/services/settings/v1/settings.proto + +package v1 + +import ( + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + v1 "github.com/owncloud/ocis/protogen/gen/ocis/messages/settings/v1" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + 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) +) + +// --- +// requests and responses for settings bundles +// --- +type SaveBundleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bundle *v1.Bundle `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle,omitempty"` +} + +func (x *SaveBundleRequest) Reset() { + *x = SaveBundleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SaveBundleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SaveBundleRequest) ProtoMessage() {} + +func (x *SaveBundleRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 SaveBundleRequest.ProtoReflect.Descriptor instead. +func (*SaveBundleRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{0} +} + +func (x *SaveBundleRequest) GetBundle() *v1.Bundle { + if x != nil { + return x.Bundle + } + return nil +} + +type SaveBundleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bundle *v1.Bundle `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle,omitempty"` +} + +func (x *SaveBundleResponse) Reset() { + *x = SaveBundleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SaveBundleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SaveBundleResponse) ProtoMessage() {} + +func (x *SaveBundleResponse) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 SaveBundleResponse.ProtoReflect.Descriptor instead. +func (*SaveBundleResponse) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{1} +} + +func (x *SaveBundleResponse) GetBundle() *v1.Bundle { + if x != nil { + return x.Bundle + } + return nil +} + +type GetBundleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BundleId string `protobuf:"bytes,1,opt,name=bundle_id,json=bundleId,proto3" json:"bundle_id,omitempty"` +} + +func (x *GetBundleRequest) Reset() { + *x = GetBundleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetBundleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBundleRequest) ProtoMessage() {} + +func (x *GetBundleRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 GetBundleRequest.ProtoReflect.Descriptor instead. +func (*GetBundleRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{2} +} + +func (x *GetBundleRequest) GetBundleId() string { + if x != nil { + return x.BundleId + } + return "" +} + +type GetBundleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bundle *v1.Bundle `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle,omitempty"` +} + +func (x *GetBundleResponse) Reset() { + *x = GetBundleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetBundleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBundleResponse) ProtoMessage() {} + +func (x *GetBundleResponse) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 GetBundleResponse.ProtoReflect.Descriptor instead. +func (*GetBundleResponse) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{3} +} + +func (x *GetBundleResponse) GetBundle() *v1.Bundle { + if x != nil { + return x.Bundle + } + return nil +} + +type ListBundlesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BundleIds []string `protobuf:"bytes,1,rep,name=bundle_ids,json=bundleIds,proto3" json:"bundle_ids,omitempty"` +} + +func (x *ListBundlesRequest) Reset() { + *x = ListBundlesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBundlesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBundlesRequest) ProtoMessage() {} + +func (x *ListBundlesRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 ListBundlesRequest.ProtoReflect.Descriptor instead. +func (*ListBundlesRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{4} +} + +func (x *ListBundlesRequest) GetBundleIds() []string { + if x != nil { + return x.BundleIds + } + return nil +} + +type ListBundlesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bundles []*v1.Bundle `protobuf:"bytes,1,rep,name=bundles,proto3" json:"bundles,omitempty"` +} + +func (x *ListBundlesResponse) Reset() { + *x = ListBundlesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBundlesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBundlesResponse) ProtoMessage() {} + +func (x *ListBundlesResponse) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 ListBundlesResponse.ProtoReflect.Descriptor instead. +func (*ListBundlesResponse) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{5} +} + +func (x *ListBundlesResponse) GetBundles() []*v1.Bundle { + if x != nil { + return x.Bundles + } + return nil +} + +type AddSettingToBundleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BundleId string `protobuf:"bytes,1,opt,name=bundle_id,json=bundleId,proto3" json:"bundle_id,omitempty"` + Setting *v1.Setting `protobuf:"bytes,2,opt,name=setting,proto3" json:"setting,omitempty"` +} + +func (x *AddSettingToBundleRequest) Reset() { + *x = AddSettingToBundleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddSettingToBundleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddSettingToBundleRequest) ProtoMessage() {} + +func (x *AddSettingToBundleRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 AddSettingToBundleRequest.ProtoReflect.Descriptor instead. +func (*AddSettingToBundleRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{6} +} + +func (x *AddSettingToBundleRequest) GetBundleId() string { + if x != nil { + return x.BundleId + } + return "" +} + +func (x *AddSettingToBundleRequest) GetSetting() *v1.Setting { + if x != nil { + return x.Setting + } + return nil +} + +type AddSettingToBundleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Setting *v1.Setting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"` +} + +func (x *AddSettingToBundleResponse) Reset() { + *x = AddSettingToBundleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddSettingToBundleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddSettingToBundleResponse) ProtoMessage() {} + +func (x *AddSettingToBundleResponse) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 AddSettingToBundleResponse.ProtoReflect.Descriptor instead. +func (*AddSettingToBundleResponse) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{7} +} + +func (x *AddSettingToBundleResponse) GetSetting() *v1.Setting { + if x != nil { + return x.Setting + } + return nil +} + +type RemoveSettingFromBundleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BundleId string `protobuf:"bytes,1,opt,name=bundle_id,json=bundleId,proto3" json:"bundle_id,omitempty"` + SettingId string `protobuf:"bytes,2,opt,name=setting_id,json=settingId,proto3" json:"setting_id,omitempty"` +} + +func (x *RemoveSettingFromBundleRequest) Reset() { + *x = RemoveSettingFromBundleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveSettingFromBundleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveSettingFromBundleRequest) ProtoMessage() {} + +func (x *RemoveSettingFromBundleRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 RemoveSettingFromBundleRequest.ProtoReflect.Descriptor instead. +func (*RemoveSettingFromBundleRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{8} +} + +func (x *RemoveSettingFromBundleRequest) GetBundleId() string { + if x != nil { + return x.BundleId + } + return "" +} + +func (x *RemoveSettingFromBundleRequest) GetSettingId() string { + if x != nil { + return x.SettingId + } + return "" +} + +type SaveValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *v1.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *SaveValueRequest) Reset() { + *x = SaveValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SaveValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SaveValueRequest) ProtoMessage() {} + +func (x *SaveValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 SaveValueRequest.ProtoReflect.Descriptor instead. +func (*SaveValueRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{9} +} + +func (x *SaveValueRequest) GetValue() *v1.Value { + if x != nil { + return x.Value + } + return nil +} + +type SaveValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *v1.ValueWithIdentifier `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *SaveValueResponse) Reset() { + *x = SaveValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SaveValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SaveValueResponse) ProtoMessage() {} + +func (x *SaveValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 SaveValueResponse.ProtoReflect.Descriptor instead. +func (*SaveValueResponse) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{10} +} + +func (x *SaveValueResponse) GetValue() *v1.ValueWithIdentifier { + if x != nil { + return x.Value + } + return nil +} + +type GetValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *GetValueRequest) Reset() { + *x = GetValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetValueRequest) ProtoMessage() {} + +func (x *GetValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 GetValueRequest.ProtoReflect.Descriptor instead. +func (*GetValueRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{11} +} + +func (x *GetValueRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *v1.ValueWithIdentifier `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetValueResponse) Reset() { + *x = GetValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetValueResponse) ProtoMessage() {} + +func (x *GetValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 GetValueResponse.ProtoReflect.Descriptor instead. +func (*GetValueResponse) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{12} +} + +func (x *GetValueResponse) GetValue() *v1.ValueWithIdentifier { + if x != nil { + return x.Value + } + return nil +} + +type ListValuesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BundleId string `protobuf:"bytes,1,opt,name=bundle_id,json=bundleId,proto3" json:"bundle_id,omitempty"` + AccountUuid string `protobuf:"bytes,2,opt,name=account_uuid,json=accountUuid,proto3" json:"account_uuid,omitempty"` +} + +func (x *ListValuesRequest) Reset() { + *x = ListValuesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListValuesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListValuesRequest) ProtoMessage() {} + +func (x *ListValuesRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 ListValuesRequest.ProtoReflect.Descriptor instead. +func (*ListValuesRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{13} +} + +func (x *ListValuesRequest) GetBundleId() string { + if x != nil { + return x.BundleId + } + return "" +} + +func (x *ListValuesRequest) GetAccountUuid() string { + if x != nil { + return x.AccountUuid + } + return "" +} + +type ListValuesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Values []*v1.ValueWithIdentifier `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` +} + +func (x *ListValuesResponse) Reset() { + *x = ListValuesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListValuesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListValuesResponse) ProtoMessage() {} + +func (x *ListValuesResponse) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 ListValuesResponse.ProtoReflect.Descriptor instead. +func (*ListValuesResponse) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{14} +} + +func (x *ListValuesResponse) GetValues() []*v1.ValueWithIdentifier { + if x != nil { + return x.Values + } + return nil +} + +type GetValueByUniqueIdentifiersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AccountUuid string `protobuf:"bytes,1,opt,name=account_uuid,json=accountUuid,proto3" json:"account_uuid,omitempty"` + SettingId string `protobuf:"bytes,2,opt,name=setting_id,json=settingId,proto3" json:"setting_id,omitempty"` +} + +func (x *GetValueByUniqueIdentifiersRequest) Reset() { + *x = GetValueByUniqueIdentifiersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetValueByUniqueIdentifiersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetValueByUniqueIdentifiersRequest) ProtoMessage() {} + +func (x *GetValueByUniqueIdentifiersRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 GetValueByUniqueIdentifiersRequest.ProtoReflect.Descriptor instead. +func (*GetValueByUniqueIdentifiersRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{15} +} + +func (x *GetValueByUniqueIdentifiersRequest) GetAccountUuid() string { + if x != nil { + return x.AccountUuid + } + return "" +} + +func (x *GetValueByUniqueIdentifiersRequest) GetSettingId() string { + if x != nil { + return x.SettingId + } + return "" +} + +type ListRoleAssignmentsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AccountUuid string `protobuf:"bytes,1,opt,name=account_uuid,json=accountUuid,proto3" json:"account_uuid,omitempty"` +} + +func (x *ListRoleAssignmentsRequest) Reset() { + *x = ListRoleAssignmentsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListRoleAssignmentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRoleAssignmentsRequest) ProtoMessage() {} + +func (x *ListRoleAssignmentsRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 ListRoleAssignmentsRequest.ProtoReflect.Descriptor instead. +func (*ListRoleAssignmentsRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{16} +} + +func (x *ListRoleAssignmentsRequest) GetAccountUuid() string { + if x != nil { + return x.AccountUuid + } + return "" +} + +type ListRoleAssignmentsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Assignments []*v1.UserRoleAssignment `protobuf:"bytes,1,rep,name=assignments,proto3" json:"assignments,omitempty"` +} + +func (x *ListRoleAssignmentsResponse) Reset() { + *x = ListRoleAssignmentsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListRoleAssignmentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRoleAssignmentsResponse) ProtoMessage() {} + +func (x *ListRoleAssignmentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 ListRoleAssignmentsResponse.ProtoReflect.Descriptor instead. +func (*ListRoleAssignmentsResponse) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{17} +} + +func (x *ListRoleAssignmentsResponse) GetAssignments() []*v1.UserRoleAssignment { + if x != nil { + return x.Assignments + } + return nil +} + +type AssignRoleToUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AccountUuid string `protobuf:"bytes,1,opt,name=account_uuid,json=accountUuid,proto3" json:"account_uuid,omitempty"` + // the role_id is a bundle_id internally + RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` +} + +func (x *AssignRoleToUserRequest) Reset() { + *x = AssignRoleToUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AssignRoleToUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssignRoleToUserRequest) ProtoMessage() {} + +func (x *AssignRoleToUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 AssignRoleToUserRequest.ProtoReflect.Descriptor instead. +func (*AssignRoleToUserRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{18} +} + +func (x *AssignRoleToUserRequest) GetAccountUuid() string { + if x != nil { + return x.AccountUuid + } + return "" +} + +func (x *AssignRoleToUserRequest) GetRoleId() string { + if x != nil { + return x.RoleId + } + return "" +} + +type AssignRoleToUserResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Assignment *v1.UserRoleAssignment `protobuf:"bytes,1,opt,name=assignment,proto3" json:"assignment,omitempty"` +} + +func (x *AssignRoleToUserResponse) Reset() { + *x = AssignRoleToUserResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AssignRoleToUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssignRoleToUserResponse) ProtoMessage() {} + +func (x *AssignRoleToUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 AssignRoleToUserResponse.ProtoReflect.Descriptor instead. +func (*AssignRoleToUserResponse) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{19} +} + +func (x *AssignRoleToUserResponse) GetAssignment() *v1.UserRoleAssignment { + if x != nil { + return x.Assignment + } + return nil +} + +type RemoveRoleFromUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *RemoveRoleFromUserRequest) Reset() { + *x = RemoveRoleFromUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveRoleFromUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveRoleFromUserRequest) ProtoMessage() {} + +func (x *RemoveRoleFromUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 RemoveRoleFromUserRequest.ProtoReflect.Descriptor instead. +func (*RemoveRoleFromUserRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{20} +} + +func (x *RemoveRoleFromUserRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type ListPermissionsByResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Resource *v1.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` +} + +func (x *ListPermissionsByResourceRequest) Reset() { + *x = ListPermissionsByResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPermissionsByResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPermissionsByResourceRequest) ProtoMessage() {} + +func (x *ListPermissionsByResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 ListPermissionsByResourceRequest.ProtoReflect.Descriptor instead. +func (*ListPermissionsByResourceRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{21} +} + +func (x *ListPermissionsByResourceRequest) GetResource() *v1.Resource { + if x != nil { + return x.Resource + } + return nil +} + +type ListPermissionsByResourceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Permissions []*v1.Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` +} + +func (x *ListPermissionsByResourceResponse) Reset() { + *x = ListPermissionsByResourceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPermissionsByResourceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPermissionsByResourceResponse) ProtoMessage() {} + +func (x *ListPermissionsByResourceResponse) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 ListPermissionsByResourceResponse.ProtoReflect.Descriptor instead. +func (*ListPermissionsByResourceResponse) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{22} +} + +func (x *ListPermissionsByResourceResponse) GetPermissions() []*v1.Permission { + if x != nil { + return x.Permissions + } + return nil +} + +type GetPermissionByIDRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PermissionId string `protobuf:"bytes,1,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"` +} + +func (x *GetPermissionByIDRequest) Reset() { + *x = GetPermissionByIDRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPermissionByIDRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPermissionByIDRequest) ProtoMessage() {} + +func (x *GetPermissionByIDRequest) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 GetPermissionByIDRequest.ProtoReflect.Descriptor instead. +func (*GetPermissionByIDRequest) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{23} +} + +func (x *GetPermissionByIDRequest) GetPermissionId() string { + if x != nil { + return x.PermissionId + } + return "" +} + +type GetPermissionByIDResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Permission *v1.Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` +} + +func (x *GetPermissionByIDResponse) Reset() { + *x = GetPermissionByIDResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ocis_services_settings_v1_settings_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPermissionByIDResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPermissionByIDResponse) ProtoMessage() {} + +func (x *GetPermissionByIDResponse) ProtoReflect() protoreflect.Message { + mi := &file_ocis_services_settings_v1_settings_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 GetPermissionByIDResponse.ProtoReflect.Descriptor instead. +func (*GetPermissionByIDResponse) Descriptor() ([]byte, []int) { + return file_ocis_services_settings_v1_settings_proto_rawDescGZIP(), []int{24} +} + +func (x *GetPermissionByIDResponse) GetPermission() *v1.Permission { + if x != nil { + return x.Permission + } + return nil +} + +var File_ocis_services_settings_v1_settings_proto protoreflect.FileDescriptor + +var file_ocis_services_settings_v1_settings_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x6f, 0x63, 0x69, 0x73, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x28, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x76, 0x31, + 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 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, 0x1b, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, + 0x6d, 0x70, 0x74, 0x79, 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, 0x4e, 0x0a, 0x11, 0x53, 0x61, + 0x76, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x39, 0x0a, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x52, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x4f, 0x0a, 0x12, 0x53, 0x61, + 0x76, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x39, 0x0a, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x52, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x2f, 0x0a, 0x10, 0x47, + 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1b, 0x0a, 0x09, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x4e, 0x0a, 0x11, + 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x39, 0x0a, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x33, 0x0a, 0x12, + 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x49, 0x64, + 0x73, 0x22, 0x52, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6f, 0x63, 0x69, 0x73, + 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x07, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x22, 0x76, 0x0a, 0x19, 0x41, 0x64, 0x64, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x49, 0x64, 0x12, + 0x3c, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x5a, 0x0a, + 0x1a, 0x41, 0x64, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x73, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, + 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x5c, 0x0a, 0x1e, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x10, 0x53, 0x61, 0x76, 0x65, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6f, 0x63, 0x69, + 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0x59, 0x0a, 0x11, 0x53, 0x61, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x57, 0x69, 0x74, 0x68, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21, + 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x22, 0x58, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x57, 0x69, 0x74, 0x68, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x53, 0x0a, 0x11, 0x4c, + 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a, + 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x75, 0x69, 0x64, + 0x22, 0x5c, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x57, 0x69, 0x74, 0x68, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x66, + 0x0a, 0x22, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x79, 0x55, 0x6e, 0x69, 0x71, + 0x75, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, + 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x55, 0x75, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, + 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, + 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x55, 0x75, 0x69, 0x64, 0x22, 0x6e, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x6f, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0b, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6f, 0x63, + 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, + 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x73, 0x73, 0x69, + 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x55, 0x0a, 0x17, 0x41, 0x73, 0x73, 0x69, 0x67, + 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x6f, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x75, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x55, 0x75, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x69, + 0x0a, 0x18, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x6f, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0a, 0x61, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, + 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x6f, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x61, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x2b, 0x0a, 0x19, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x63, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, + 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x08, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6f, + 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x6c, 0x0a, 0x21, 0x4c, + 0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x47, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x70, 0x65, + 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3f, 0x0a, 0x18, 0x47, 0x65, 0x74, + 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x65, + 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x62, 0x0a, 0x19, 0x47, 0x65, + 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x49, 0x44, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6f, 0x63, + 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x32, 0xa6, + 0x06, 0x0a, 0x0d, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x92, 0x01, 0x0a, 0x0a, 0x53, 0x61, 0x76, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, + 0x2c, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x61, 0x76, 0x65, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, + 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2d, 0x73, 0x61, + 0x76, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x8e, 0x01, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x12, 0x2b, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2c, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2d, + 0x67, 0x65, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x96, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, + 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x2d, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x01, 0x2a, 0x12, + 0xb2, 0x01, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x54, 0x6f, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x34, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x6f, + 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x22, 0x24, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x2d, 0x61, 0x64, 0x64, 0x2d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x3a, 0x01, 0x2a, 0x12, 0xa0, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x12, 0x39, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x22, 0x27, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x2d, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x2d, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x01, 0x2a, 0x32, 0x8d, 0x05, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8f, 0x01, 0x0a, 0x09, 0x53, 0x61, 0x76, + 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2b, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x61, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x2d, 0x73, 0x61, 0x76, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x8b, 0x01, 0x0a, 0x08, 0x47, + 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2a, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x2d, 0x67, 0x65, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x92, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, + 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2d, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0xc7, 0x01, + 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x79, 0x55, 0x6e, 0x69, 0x71, + 0x75, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x12, 0x3d, 0x2e, + 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x42, 0x79, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6f, + 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x36, 0x22, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2d, 0x67, 0x65, 0x74, 0x2d, 0x62, + 0x79, 0x2d, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x2d, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x73, 0x3a, 0x01, 0x2a, 0x32, 0x97, 0x05, 0x0a, 0x0b, 0x52, 0x6f, 0x6c, 0x65, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x72, + 0x6f, 0x6c, 0x65, 0x73, 0x2d, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0xb2, 0x01, 0x0a, + 0x13, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x12, 0x35, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x6f, 0x63, + 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, + 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x21, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x61, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2d, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x01, + 0x2a, 0x12, 0xa8, 0x01, 0x0a, 0x10, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x6c, 0x65, + 0x54, 0x6f, 0x55, 0x73, 0x65, 0x72, 0x12, 0x32, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x6f, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x6f, 0x63, 0x69, + 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x6c, + 0x65, 0x54, 0x6f, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2d, 0x61, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x12, 0x92, 0x01, 0x0a, + 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x55, + 0x73, 0x65, 0x72, 0x12, 0x34, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x61, 0x73, 0x73, 0x69, + 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2d, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x3a, 0x01, + 0x2a, 0x32, 0x9a, 0x03, 0x0a, 0x11, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xd0, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3b, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x42, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x22, 0x2d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2d, 0x6c, 0x69, 0x73, 0x74, 0x2d, 0x62, 0x79, 0x2d, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0xb1, 0x01, 0x0a, 0x11, 0x47, + 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x49, 0x44, + 0x12, 0x33, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, + 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x2b, 0x22, 0x26, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2d, 0x67, 0x65, 0x74, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0xe5, + 0x02, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x77, + 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, + 0x76, 0x31, 0x92, 0x41, 0xa0, 0x02, 0x12, 0xb6, 0x01, 0x0a, 0x20, 0x6f, 0x77, 0x6e, 0x43, 0x6c, + 0x6f, 0x75, 0x64, 0x20, 0x49, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x65, 0x20, 0x53, 0x63, 0x61, + 0x6c, 0x65, 0x20, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x47, 0x0a, 0x0d, 0x6f, + 0x77, 0x6e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x47, 0x6d, 0x62, 0x48, 0x12, 0x20, 0x68, 0x74, + 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f, 0x63, 0x69, 0x73, 0x1a, 0x14, + 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x40, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x63, 0x6f, 0x6d, 0x2a, 0x42, 0x0a, 0x0a, 0x41, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2d, 0x32, + 0x2e, 0x30, 0x12, 0x34, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, + 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x62, 0x2f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, + 0x2f, 0x4c, 0x49, 0x43, 0x45, 0x4e, 0x53, 0x45, 0x32, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30, 0x2a, + 0x02, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x72, 0x3d, 0x0a, 0x10, 0x44, 0x65, 0x76, 0x65, 0x6c, + 0x6f, 0x70, 0x65, 0x72, 0x20, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x12, 0x29, 0x68, 0x74, 0x74, + 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x65, + 0x76, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ocis_services_settings_v1_settings_proto_rawDescOnce sync.Once + file_ocis_services_settings_v1_settings_proto_rawDescData = file_ocis_services_settings_v1_settings_proto_rawDesc +) + +func file_ocis_services_settings_v1_settings_proto_rawDescGZIP() []byte { + file_ocis_services_settings_v1_settings_proto_rawDescOnce.Do(func() { + file_ocis_services_settings_v1_settings_proto_rawDescData = protoimpl.X.CompressGZIP(file_ocis_services_settings_v1_settings_proto_rawDescData) + }) + return file_ocis_services_settings_v1_settings_proto_rawDescData +} + +var file_ocis_services_settings_v1_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 25) +var file_ocis_services_settings_v1_settings_proto_goTypes = []interface{}{ + (*SaveBundleRequest)(nil), // 0: ocis.services.settings.v1.SaveBundleRequest + (*SaveBundleResponse)(nil), // 1: ocis.services.settings.v1.SaveBundleResponse + (*GetBundleRequest)(nil), // 2: ocis.services.settings.v1.GetBundleRequest + (*GetBundleResponse)(nil), // 3: ocis.services.settings.v1.GetBundleResponse + (*ListBundlesRequest)(nil), // 4: ocis.services.settings.v1.ListBundlesRequest + (*ListBundlesResponse)(nil), // 5: ocis.services.settings.v1.ListBundlesResponse + (*AddSettingToBundleRequest)(nil), // 6: ocis.services.settings.v1.AddSettingToBundleRequest + (*AddSettingToBundleResponse)(nil), // 7: ocis.services.settings.v1.AddSettingToBundleResponse + (*RemoveSettingFromBundleRequest)(nil), // 8: ocis.services.settings.v1.RemoveSettingFromBundleRequest + (*SaveValueRequest)(nil), // 9: ocis.services.settings.v1.SaveValueRequest + (*SaveValueResponse)(nil), // 10: ocis.services.settings.v1.SaveValueResponse + (*GetValueRequest)(nil), // 11: ocis.services.settings.v1.GetValueRequest + (*GetValueResponse)(nil), // 12: ocis.services.settings.v1.GetValueResponse + (*ListValuesRequest)(nil), // 13: ocis.services.settings.v1.ListValuesRequest + (*ListValuesResponse)(nil), // 14: ocis.services.settings.v1.ListValuesResponse + (*GetValueByUniqueIdentifiersRequest)(nil), // 15: ocis.services.settings.v1.GetValueByUniqueIdentifiersRequest + (*ListRoleAssignmentsRequest)(nil), // 16: ocis.services.settings.v1.ListRoleAssignmentsRequest + (*ListRoleAssignmentsResponse)(nil), // 17: ocis.services.settings.v1.ListRoleAssignmentsResponse + (*AssignRoleToUserRequest)(nil), // 18: ocis.services.settings.v1.AssignRoleToUserRequest + (*AssignRoleToUserResponse)(nil), // 19: ocis.services.settings.v1.AssignRoleToUserResponse + (*RemoveRoleFromUserRequest)(nil), // 20: ocis.services.settings.v1.RemoveRoleFromUserRequest + (*ListPermissionsByResourceRequest)(nil), // 21: ocis.services.settings.v1.ListPermissionsByResourceRequest + (*ListPermissionsByResourceResponse)(nil), // 22: ocis.services.settings.v1.ListPermissionsByResourceResponse + (*GetPermissionByIDRequest)(nil), // 23: ocis.services.settings.v1.GetPermissionByIDRequest + (*GetPermissionByIDResponse)(nil), // 24: ocis.services.settings.v1.GetPermissionByIDResponse + (*v1.Bundle)(nil), // 25: ocis.messages.settings.v1.Bundle + (*v1.Setting)(nil), // 26: ocis.messages.settings.v1.Setting + (*v1.Value)(nil), // 27: ocis.messages.settings.v1.Value + (*v1.ValueWithIdentifier)(nil), // 28: ocis.messages.settings.v1.ValueWithIdentifier + (*v1.UserRoleAssignment)(nil), // 29: ocis.messages.settings.v1.UserRoleAssignment + (*v1.Resource)(nil), // 30: ocis.messages.settings.v1.Resource + (*v1.Permission)(nil), // 31: ocis.messages.settings.v1.Permission + (*emptypb.Empty)(nil), // 32: google.protobuf.Empty +} +var file_ocis_services_settings_v1_settings_proto_depIdxs = []int32{ + 25, // 0: ocis.services.settings.v1.SaveBundleRequest.bundle:type_name -> ocis.messages.settings.v1.Bundle + 25, // 1: ocis.services.settings.v1.SaveBundleResponse.bundle:type_name -> ocis.messages.settings.v1.Bundle + 25, // 2: ocis.services.settings.v1.GetBundleResponse.bundle:type_name -> ocis.messages.settings.v1.Bundle + 25, // 3: ocis.services.settings.v1.ListBundlesResponse.bundles:type_name -> ocis.messages.settings.v1.Bundle + 26, // 4: ocis.services.settings.v1.AddSettingToBundleRequest.setting:type_name -> ocis.messages.settings.v1.Setting + 26, // 5: ocis.services.settings.v1.AddSettingToBundleResponse.setting:type_name -> ocis.messages.settings.v1.Setting + 27, // 6: ocis.services.settings.v1.SaveValueRequest.value:type_name -> ocis.messages.settings.v1.Value + 28, // 7: ocis.services.settings.v1.SaveValueResponse.value:type_name -> ocis.messages.settings.v1.ValueWithIdentifier + 28, // 8: ocis.services.settings.v1.GetValueResponse.value:type_name -> ocis.messages.settings.v1.ValueWithIdentifier + 28, // 9: ocis.services.settings.v1.ListValuesResponse.values:type_name -> ocis.messages.settings.v1.ValueWithIdentifier + 29, // 10: ocis.services.settings.v1.ListRoleAssignmentsResponse.assignments:type_name -> ocis.messages.settings.v1.UserRoleAssignment + 29, // 11: ocis.services.settings.v1.AssignRoleToUserResponse.assignment:type_name -> ocis.messages.settings.v1.UserRoleAssignment + 30, // 12: ocis.services.settings.v1.ListPermissionsByResourceRequest.resource:type_name -> ocis.messages.settings.v1.Resource + 31, // 13: ocis.services.settings.v1.ListPermissionsByResourceResponse.permissions:type_name -> ocis.messages.settings.v1.Permission + 31, // 14: ocis.services.settings.v1.GetPermissionByIDResponse.permission:type_name -> ocis.messages.settings.v1.Permission + 0, // 15: ocis.services.settings.v1.BundleService.SaveBundle:input_type -> ocis.services.settings.v1.SaveBundleRequest + 2, // 16: ocis.services.settings.v1.BundleService.GetBundle:input_type -> ocis.services.settings.v1.GetBundleRequest + 4, // 17: ocis.services.settings.v1.BundleService.ListBundles:input_type -> ocis.services.settings.v1.ListBundlesRequest + 6, // 18: ocis.services.settings.v1.BundleService.AddSettingToBundle:input_type -> ocis.services.settings.v1.AddSettingToBundleRequest + 8, // 19: ocis.services.settings.v1.BundleService.RemoveSettingFromBundle:input_type -> ocis.services.settings.v1.RemoveSettingFromBundleRequest + 9, // 20: ocis.services.settings.v1.ValueService.SaveValue:input_type -> ocis.services.settings.v1.SaveValueRequest + 11, // 21: ocis.services.settings.v1.ValueService.GetValue:input_type -> ocis.services.settings.v1.GetValueRequest + 13, // 22: ocis.services.settings.v1.ValueService.ListValues:input_type -> ocis.services.settings.v1.ListValuesRequest + 15, // 23: ocis.services.settings.v1.ValueService.GetValueByUniqueIdentifiers:input_type -> ocis.services.settings.v1.GetValueByUniqueIdentifiersRequest + 4, // 24: ocis.services.settings.v1.RoleService.ListRoles:input_type -> ocis.services.settings.v1.ListBundlesRequest + 16, // 25: ocis.services.settings.v1.RoleService.ListRoleAssignments:input_type -> ocis.services.settings.v1.ListRoleAssignmentsRequest + 18, // 26: ocis.services.settings.v1.RoleService.AssignRoleToUser:input_type -> ocis.services.settings.v1.AssignRoleToUserRequest + 20, // 27: ocis.services.settings.v1.RoleService.RemoveRoleFromUser:input_type -> ocis.services.settings.v1.RemoveRoleFromUserRequest + 21, // 28: ocis.services.settings.v1.PermissionService.ListPermissionsByResource:input_type -> ocis.services.settings.v1.ListPermissionsByResourceRequest + 23, // 29: ocis.services.settings.v1.PermissionService.GetPermissionByID:input_type -> ocis.services.settings.v1.GetPermissionByIDRequest + 1, // 30: ocis.services.settings.v1.BundleService.SaveBundle:output_type -> ocis.services.settings.v1.SaveBundleResponse + 3, // 31: ocis.services.settings.v1.BundleService.GetBundle:output_type -> ocis.services.settings.v1.GetBundleResponse + 5, // 32: ocis.services.settings.v1.BundleService.ListBundles:output_type -> ocis.services.settings.v1.ListBundlesResponse + 7, // 33: ocis.services.settings.v1.BundleService.AddSettingToBundle:output_type -> ocis.services.settings.v1.AddSettingToBundleResponse + 32, // 34: ocis.services.settings.v1.BundleService.RemoveSettingFromBundle:output_type -> google.protobuf.Empty + 10, // 35: ocis.services.settings.v1.ValueService.SaveValue:output_type -> ocis.services.settings.v1.SaveValueResponse + 12, // 36: ocis.services.settings.v1.ValueService.GetValue:output_type -> ocis.services.settings.v1.GetValueResponse + 14, // 37: ocis.services.settings.v1.ValueService.ListValues:output_type -> ocis.services.settings.v1.ListValuesResponse + 12, // 38: ocis.services.settings.v1.ValueService.GetValueByUniqueIdentifiers:output_type -> ocis.services.settings.v1.GetValueResponse + 5, // 39: ocis.services.settings.v1.RoleService.ListRoles:output_type -> ocis.services.settings.v1.ListBundlesResponse + 17, // 40: ocis.services.settings.v1.RoleService.ListRoleAssignments:output_type -> ocis.services.settings.v1.ListRoleAssignmentsResponse + 19, // 41: ocis.services.settings.v1.RoleService.AssignRoleToUser:output_type -> ocis.services.settings.v1.AssignRoleToUserResponse + 32, // 42: ocis.services.settings.v1.RoleService.RemoveRoleFromUser:output_type -> google.protobuf.Empty + 22, // 43: ocis.services.settings.v1.PermissionService.ListPermissionsByResource:output_type -> ocis.services.settings.v1.ListPermissionsByResourceResponse + 24, // 44: ocis.services.settings.v1.PermissionService.GetPermissionByID:output_type -> ocis.services.settings.v1.GetPermissionByIDResponse + 30, // [30:45] is the sub-list for method output_type + 15, // [15:30] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name +} + +func init() { file_ocis_services_settings_v1_settings_proto_init() } +func file_ocis_services_settings_v1_settings_proto_init() { + if File_ocis_services_settings_v1_settings_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_ocis_services_settings_v1_settings_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SaveBundleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SaveBundleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBundleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBundleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBundlesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBundlesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddSettingToBundleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddSettingToBundleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveSettingFromBundleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SaveValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SaveValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListValuesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListValuesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetValueByUniqueIdentifiersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRoleAssignmentsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRoleAssignmentsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AssignRoleToUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AssignRoleToUserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveRoleFromUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPermissionsByResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPermissionsByResourceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPermissionByIDRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ocis_services_settings_v1_settings_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPermissionByIDResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ocis_services_settings_v1_settings_proto_rawDesc, + NumEnums: 0, + NumMessages: 25, + NumExtensions: 0, + NumServices: 4, + }, + GoTypes: file_ocis_services_settings_v1_settings_proto_goTypes, + DependencyIndexes: file_ocis_services_settings_v1_settings_proto_depIdxs, + MessageInfos: file_ocis_services_settings_v1_settings_proto_msgTypes, + }.Build() + File_ocis_services_settings_v1_settings_proto = out.File + file_ocis_services_settings_v1_settings_proto_rawDesc = nil + file_ocis_services_settings_v1_settings_proto_goTypes = nil + file_ocis_services_settings_v1_settings_proto_depIdxs = nil +} diff --git a/protogen/gen/ocis/services/settings/v1/settings.pb.micro.go b/protogen/gen/ocis/services/settings/v1/settings.pb.micro.go new file mode 100644 index 0000000000..300fd96a85 --- /dev/null +++ b/protogen/gen/ocis/services/settings/v1/settings.pb.micro.go @@ -0,0 +1,669 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: ocis/services/settings/v1/settings.proto + +package v1 + +import ( + fmt "fmt" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "github.com/owncloud/ocis/protogen/gen/ocis/messages/settings/v1" + _ "google.golang.org/genproto/googleapis/api/annotations" + proto "google.golang.org/protobuf/proto" + emptypb "google.golang.org/protobuf/types/known/emptypb" + math "math" +) + +import ( + context "context" + api "go-micro.dev/v4/api" + client "go-micro.dev/v4/client" + server "go-micro.dev/v4/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for BundleService service + +func NewBundleServiceEndpoints() []*api.Endpoint { + return []*api.Endpoint{ + { + Name: "BundleService.SaveBundle", + Path: []string{"/api/v1/settings/bundle-save"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + { + Name: "BundleService.GetBundle", + Path: []string{"/api/v1/settings/bundle-get"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + { + Name: "BundleService.ListBundles", + Path: []string{"/api/v1/settings/bundles-list"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + { + Name: "BundleService.AddSettingToBundle", + Path: []string{"/api/v1/settings/bundles-add-setting"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + { + Name: "BundleService.RemoveSettingFromBundle", + Path: []string{"/api/v1/settings/bundles-remove-setting"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + } +} + +// Client API for BundleService service + +type BundleService interface { + SaveBundle(ctx context.Context, in *SaveBundleRequest, opts ...client.CallOption) (*SaveBundleResponse, error) + GetBundle(ctx context.Context, in *GetBundleRequest, opts ...client.CallOption) (*GetBundleResponse, error) + ListBundles(ctx context.Context, in *ListBundlesRequest, opts ...client.CallOption) (*ListBundlesResponse, error) + AddSettingToBundle(ctx context.Context, in *AddSettingToBundleRequest, opts ...client.CallOption) (*AddSettingToBundleResponse, error) + RemoveSettingFromBundle(ctx context.Context, in *RemoveSettingFromBundleRequest, opts ...client.CallOption) (*emptypb.Empty, error) +} + +type bundleService struct { + c client.Client + name string +} + +func NewBundleService(name string, c client.Client) BundleService { + return &bundleService{ + c: c, + name: name, + } +} + +func (c *bundleService) SaveBundle(ctx context.Context, in *SaveBundleRequest, opts ...client.CallOption) (*SaveBundleResponse, error) { + req := c.c.NewRequest(c.name, "BundleService.SaveBundle", in) + out := new(SaveBundleResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bundleService) GetBundle(ctx context.Context, in *GetBundleRequest, opts ...client.CallOption) (*GetBundleResponse, error) { + req := c.c.NewRequest(c.name, "BundleService.GetBundle", in) + out := new(GetBundleResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bundleService) ListBundles(ctx context.Context, in *ListBundlesRequest, opts ...client.CallOption) (*ListBundlesResponse, error) { + req := c.c.NewRequest(c.name, "BundleService.ListBundles", in) + out := new(ListBundlesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bundleService) AddSettingToBundle(ctx context.Context, in *AddSettingToBundleRequest, opts ...client.CallOption) (*AddSettingToBundleResponse, error) { + req := c.c.NewRequest(c.name, "BundleService.AddSettingToBundle", in) + out := new(AddSettingToBundleResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bundleService) RemoveSettingFromBundle(ctx context.Context, in *RemoveSettingFromBundleRequest, opts ...client.CallOption) (*emptypb.Empty, error) { + req := c.c.NewRequest(c.name, "BundleService.RemoveSettingFromBundle", in) + out := new(emptypb.Empty) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for BundleService service + +type BundleServiceHandler interface { + SaveBundle(context.Context, *SaveBundleRequest, *SaveBundleResponse) error + GetBundle(context.Context, *GetBundleRequest, *GetBundleResponse) error + ListBundles(context.Context, *ListBundlesRequest, *ListBundlesResponse) error + AddSettingToBundle(context.Context, *AddSettingToBundleRequest, *AddSettingToBundleResponse) error + RemoveSettingFromBundle(context.Context, *RemoveSettingFromBundleRequest, *emptypb.Empty) error +} + +func RegisterBundleServiceHandler(s server.Server, hdlr BundleServiceHandler, opts ...server.HandlerOption) error { + type bundleService interface { + SaveBundle(ctx context.Context, in *SaveBundleRequest, out *SaveBundleResponse) error + GetBundle(ctx context.Context, in *GetBundleRequest, out *GetBundleResponse) error + ListBundles(ctx context.Context, in *ListBundlesRequest, out *ListBundlesResponse) error + AddSettingToBundle(ctx context.Context, in *AddSettingToBundleRequest, out *AddSettingToBundleResponse) error + RemoveSettingFromBundle(ctx context.Context, in *RemoveSettingFromBundleRequest, out *emptypb.Empty) error + } + type BundleService struct { + bundleService + } + h := &bundleServiceHandler{hdlr} + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "BundleService.SaveBundle", + Path: []string{"/api/v1/settings/bundle-save"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "BundleService.GetBundle", + Path: []string{"/api/v1/settings/bundle-get"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "BundleService.ListBundles", + Path: []string{"/api/v1/settings/bundles-list"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "BundleService.AddSettingToBundle", + Path: []string{"/api/v1/settings/bundles-add-setting"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "BundleService.RemoveSettingFromBundle", + Path: []string{"/api/v1/settings/bundles-remove-setting"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + return s.Handle(s.NewHandler(&BundleService{h}, opts...)) +} + +type bundleServiceHandler struct { + BundleServiceHandler +} + +func (h *bundleServiceHandler) SaveBundle(ctx context.Context, in *SaveBundleRequest, out *SaveBundleResponse) error { + return h.BundleServiceHandler.SaveBundle(ctx, in, out) +} + +func (h *bundleServiceHandler) GetBundle(ctx context.Context, in *GetBundleRequest, out *GetBundleResponse) error { + return h.BundleServiceHandler.GetBundle(ctx, in, out) +} + +func (h *bundleServiceHandler) ListBundles(ctx context.Context, in *ListBundlesRequest, out *ListBundlesResponse) error { + return h.BundleServiceHandler.ListBundles(ctx, in, out) +} + +func (h *bundleServiceHandler) AddSettingToBundle(ctx context.Context, in *AddSettingToBundleRequest, out *AddSettingToBundleResponse) error { + return h.BundleServiceHandler.AddSettingToBundle(ctx, in, out) +} + +func (h *bundleServiceHandler) RemoveSettingFromBundle(ctx context.Context, in *RemoveSettingFromBundleRequest, out *emptypb.Empty) error { + return h.BundleServiceHandler.RemoveSettingFromBundle(ctx, in, out) +} + +// Api Endpoints for ValueService service + +func NewValueServiceEndpoints() []*api.Endpoint { + return []*api.Endpoint{ + { + Name: "ValueService.SaveValue", + Path: []string{"/api/v1/settings/values-save"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + { + Name: "ValueService.GetValue", + Path: []string{"/api/v1/settings/values-get"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + { + Name: "ValueService.ListValues", + Path: []string{"/api/v1/settings/values-list"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + { + Name: "ValueService.GetValueByUniqueIdentifiers", + Path: []string{"/api/v1/settings/values-get-by-unique-identifiers"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + } +} + +// Client API for ValueService service + +type ValueService interface { + SaveValue(ctx context.Context, in *SaveValueRequest, opts ...client.CallOption) (*SaveValueResponse, error) + GetValue(ctx context.Context, in *GetValueRequest, opts ...client.CallOption) (*GetValueResponse, error) + ListValues(ctx context.Context, in *ListValuesRequest, opts ...client.CallOption) (*ListValuesResponse, error) + GetValueByUniqueIdentifiers(ctx context.Context, in *GetValueByUniqueIdentifiersRequest, opts ...client.CallOption) (*GetValueResponse, error) +} + +type valueService struct { + c client.Client + name string +} + +func NewValueService(name string, c client.Client) ValueService { + return &valueService{ + c: c, + name: name, + } +} + +func (c *valueService) SaveValue(ctx context.Context, in *SaveValueRequest, opts ...client.CallOption) (*SaveValueResponse, error) { + req := c.c.NewRequest(c.name, "ValueService.SaveValue", in) + out := new(SaveValueResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *valueService) GetValue(ctx context.Context, in *GetValueRequest, opts ...client.CallOption) (*GetValueResponse, error) { + req := c.c.NewRequest(c.name, "ValueService.GetValue", in) + out := new(GetValueResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *valueService) ListValues(ctx context.Context, in *ListValuesRequest, opts ...client.CallOption) (*ListValuesResponse, error) { + req := c.c.NewRequest(c.name, "ValueService.ListValues", in) + out := new(ListValuesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *valueService) GetValueByUniqueIdentifiers(ctx context.Context, in *GetValueByUniqueIdentifiersRequest, opts ...client.CallOption) (*GetValueResponse, error) { + req := c.c.NewRequest(c.name, "ValueService.GetValueByUniqueIdentifiers", in) + out := new(GetValueResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for ValueService service + +type ValueServiceHandler interface { + SaveValue(context.Context, *SaveValueRequest, *SaveValueResponse) error + GetValue(context.Context, *GetValueRequest, *GetValueResponse) error + ListValues(context.Context, *ListValuesRequest, *ListValuesResponse) error + GetValueByUniqueIdentifiers(context.Context, *GetValueByUniqueIdentifiersRequest, *GetValueResponse) error +} + +func RegisterValueServiceHandler(s server.Server, hdlr ValueServiceHandler, opts ...server.HandlerOption) error { + type valueService interface { + SaveValue(ctx context.Context, in *SaveValueRequest, out *SaveValueResponse) error + GetValue(ctx context.Context, in *GetValueRequest, out *GetValueResponse) error + ListValues(ctx context.Context, in *ListValuesRequest, out *ListValuesResponse) error + GetValueByUniqueIdentifiers(ctx context.Context, in *GetValueByUniqueIdentifiersRequest, out *GetValueResponse) error + } + type ValueService struct { + valueService + } + h := &valueServiceHandler{hdlr} + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "ValueService.SaveValue", + Path: []string{"/api/v1/settings/values-save"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "ValueService.GetValue", + Path: []string{"/api/v1/settings/values-get"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "ValueService.ListValues", + Path: []string{"/api/v1/settings/values-list"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "ValueService.GetValueByUniqueIdentifiers", + Path: []string{"/api/v1/settings/values-get-by-unique-identifiers"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + return s.Handle(s.NewHandler(&ValueService{h}, opts...)) +} + +type valueServiceHandler struct { + ValueServiceHandler +} + +func (h *valueServiceHandler) SaveValue(ctx context.Context, in *SaveValueRequest, out *SaveValueResponse) error { + return h.ValueServiceHandler.SaveValue(ctx, in, out) +} + +func (h *valueServiceHandler) GetValue(ctx context.Context, in *GetValueRequest, out *GetValueResponse) error { + return h.ValueServiceHandler.GetValue(ctx, in, out) +} + +func (h *valueServiceHandler) ListValues(ctx context.Context, in *ListValuesRequest, out *ListValuesResponse) error { + return h.ValueServiceHandler.ListValues(ctx, in, out) +} + +func (h *valueServiceHandler) GetValueByUniqueIdentifiers(ctx context.Context, in *GetValueByUniqueIdentifiersRequest, out *GetValueResponse) error { + return h.ValueServiceHandler.GetValueByUniqueIdentifiers(ctx, in, out) +} + +// Api Endpoints for RoleService service + +func NewRoleServiceEndpoints() []*api.Endpoint { + return []*api.Endpoint{ + { + Name: "RoleService.ListRoles", + Path: []string{"/api/v1/settings/roles-list"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + { + Name: "RoleService.ListRoleAssignments", + Path: []string{"/api/v1/settings/assignments-list"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + { + Name: "RoleService.AssignRoleToUser", + Path: []string{"/api/v1/settings/assignments-add"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + { + Name: "RoleService.RemoveRoleFromUser", + Path: []string{"/api/v1/settings/assignments-remove"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + } +} + +// Client API for RoleService service + +type RoleService interface { + ListRoles(ctx context.Context, in *ListBundlesRequest, opts ...client.CallOption) (*ListBundlesResponse, error) + ListRoleAssignments(ctx context.Context, in *ListRoleAssignmentsRequest, opts ...client.CallOption) (*ListRoleAssignmentsResponse, error) + AssignRoleToUser(ctx context.Context, in *AssignRoleToUserRequest, opts ...client.CallOption) (*AssignRoleToUserResponse, error) + RemoveRoleFromUser(ctx context.Context, in *RemoveRoleFromUserRequest, opts ...client.CallOption) (*emptypb.Empty, error) +} + +type roleService struct { + c client.Client + name string +} + +func NewRoleService(name string, c client.Client) RoleService { + return &roleService{ + c: c, + name: name, + } +} + +func (c *roleService) ListRoles(ctx context.Context, in *ListBundlesRequest, opts ...client.CallOption) (*ListBundlesResponse, error) { + req := c.c.NewRequest(c.name, "RoleService.ListRoles", in) + out := new(ListBundlesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *roleService) ListRoleAssignments(ctx context.Context, in *ListRoleAssignmentsRequest, opts ...client.CallOption) (*ListRoleAssignmentsResponse, error) { + req := c.c.NewRequest(c.name, "RoleService.ListRoleAssignments", in) + out := new(ListRoleAssignmentsResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *roleService) AssignRoleToUser(ctx context.Context, in *AssignRoleToUserRequest, opts ...client.CallOption) (*AssignRoleToUserResponse, error) { + req := c.c.NewRequest(c.name, "RoleService.AssignRoleToUser", in) + out := new(AssignRoleToUserResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *roleService) RemoveRoleFromUser(ctx context.Context, in *RemoveRoleFromUserRequest, opts ...client.CallOption) (*emptypb.Empty, error) { + req := c.c.NewRequest(c.name, "RoleService.RemoveRoleFromUser", in) + out := new(emptypb.Empty) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for RoleService service + +type RoleServiceHandler interface { + ListRoles(context.Context, *ListBundlesRequest, *ListBundlesResponse) error + ListRoleAssignments(context.Context, *ListRoleAssignmentsRequest, *ListRoleAssignmentsResponse) error + AssignRoleToUser(context.Context, *AssignRoleToUserRequest, *AssignRoleToUserResponse) error + RemoveRoleFromUser(context.Context, *RemoveRoleFromUserRequest, *emptypb.Empty) error +} + +func RegisterRoleServiceHandler(s server.Server, hdlr RoleServiceHandler, opts ...server.HandlerOption) error { + type roleService interface { + ListRoles(ctx context.Context, in *ListBundlesRequest, out *ListBundlesResponse) error + ListRoleAssignments(ctx context.Context, in *ListRoleAssignmentsRequest, out *ListRoleAssignmentsResponse) error + AssignRoleToUser(ctx context.Context, in *AssignRoleToUserRequest, out *AssignRoleToUserResponse) error + RemoveRoleFromUser(ctx context.Context, in *RemoveRoleFromUserRequest, out *emptypb.Empty) error + } + type RoleService struct { + roleService + } + h := &roleServiceHandler{hdlr} + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "RoleService.ListRoles", + Path: []string{"/api/v1/settings/roles-list"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "RoleService.ListRoleAssignments", + Path: []string{"/api/v1/settings/assignments-list"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "RoleService.AssignRoleToUser", + Path: []string{"/api/v1/settings/assignments-add"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "RoleService.RemoveRoleFromUser", + Path: []string{"/api/v1/settings/assignments-remove"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + return s.Handle(s.NewHandler(&RoleService{h}, opts...)) +} + +type roleServiceHandler struct { + RoleServiceHandler +} + +func (h *roleServiceHandler) ListRoles(ctx context.Context, in *ListBundlesRequest, out *ListBundlesResponse) error { + return h.RoleServiceHandler.ListRoles(ctx, in, out) +} + +func (h *roleServiceHandler) ListRoleAssignments(ctx context.Context, in *ListRoleAssignmentsRequest, out *ListRoleAssignmentsResponse) error { + return h.RoleServiceHandler.ListRoleAssignments(ctx, in, out) +} + +func (h *roleServiceHandler) AssignRoleToUser(ctx context.Context, in *AssignRoleToUserRequest, out *AssignRoleToUserResponse) error { + return h.RoleServiceHandler.AssignRoleToUser(ctx, in, out) +} + +func (h *roleServiceHandler) RemoveRoleFromUser(ctx context.Context, in *RemoveRoleFromUserRequest, out *emptypb.Empty) error { + return h.RoleServiceHandler.RemoveRoleFromUser(ctx, in, out) +} + +// Api Endpoints for PermissionService service + +func NewPermissionServiceEndpoints() []*api.Endpoint { + return []*api.Endpoint{ + { + Name: "PermissionService.ListPermissionsByResource", + Path: []string{"/api/v1/settings/permissions-list-by-resource"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + { + Name: "PermissionService.GetPermissionByID", + Path: []string{"/api/v1/settings/permissions-get-by-id"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + }, + } +} + +// Client API for PermissionService service + +type PermissionService interface { + ListPermissionsByResource(ctx context.Context, in *ListPermissionsByResourceRequest, opts ...client.CallOption) (*ListPermissionsByResourceResponse, error) + GetPermissionByID(ctx context.Context, in *GetPermissionByIDRequest, opts ...client.CallOption) (*GetPermissionByIDResponse, error) +} + +type permissionService struct { + c client.Client + name string +} + +func NewPermissionService(name string, c client.Client) PermissionService { + return &permissionService{ + c: c, + name: name, + } +} + +func (c *permissionService) ListPermissionsByResource(ctx context.Context, in *ListPermissionsByResourceRequest, opts ...client.CallOption) (*ListPermissionsByResourceResponse, error) { + req := c.c.NewRequest(c.name, "PermissionService.ListPermissionsByResource", in) + out := new(ListPermissionsByResourceResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *permissionService) GetPermissionByID(ctx context.Context, in *GetPermissionByIDRequest, opts ...client.CallOption) (*GetPermissionByIDResponse, error) { + req := c.c.NewRequest(c.name, "PermissionService.GetPermissionByID", in) + out := new(GetPermissionByIDResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for PermissionService service + +type PermissionServiceHandler interface { + ListPermissionsByResource(context.Context, *ListPermissionsByResourceRequest, *ListPermissionsByResourceResponse) error + GetPermissionByID(context.Context, *GetPermissionByIDRequest, *GetPermissionByIDResponse) error +} + +func RegisterPermissionServiceHandler(s server.Server, hdlr PermissionServiceHandler, opts ...server.HandlerOption) error { + type permissionService interface { + ListPermissionsByResource(ctx context.Context, in *ListPermissionsByResourceRequest, out *ListPermissionsByResourceResponse) error + GetPermissionByID(ctx context.Context, in *GetPermissionByIDRequest, out *GetPermissionByIDResponse) error + } + type PermissionService struct { + permissionService + } + h := &permissionServiceHandler{hdlr} + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "PermissionService.ListPermissionsByResource", + Path: []string{"/api/v1/settings/permissions-list-by-resource"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + opts = append(opts, api.WithEndpoint(&api.Endpoint{ + Name: "PermissionService.GetPermissionByID", + Path: []string{"/api/v1/settings/permissions-get-by-id"}, + Method: []string{"POST"}, + Body: "*", + Handler: "rpc", + })) + return s.Handle(s.NewHandler(&PermissionService{h}, opts...)) +} + +type permissionServiceHandler struct { + PermissionServiceHandler +} + +func (h *permissionServiceHandler) ListPermissionsByResource(ctx context.Context, in *ListPermissionsByResourceRequest, out *ListPermissionsByResourceResponse) error { + return h.PermissionServiceHandler.ListPermissionsByResource(ctx, in, out) +} + +func (h *permissionServiceHandler) GetPermissionByID(ctx context.Context, in *GetPermissionByIDRequest, out *GetPermissionByIDResponse) error { + return h.PermissionServiceHandler.GetPermissionByID(ctx, in, out) +} diff --git a/protogen/gen/ocis/services/settings/v1/settings.pb.web.go b/protogen/gen/ocis/services/settings/v1/settings.pb.web.go new file mode 100644 index 0000000000..a2864c157e --- /dev/null +++ b/protogen/gen/ocis/services/settings/v1/settings.pb.web.go @@ -0,0 +1,1329 @@ +// Code generated by protoc-gen-microweb. DO NOT EDIT. +// source: v1.proto + +package v1 + +import ( + "bytes" + "encoding/json" + "net/http" + + "github.com/go-chi/chi/v5" + "github.com/go-chi/render" + "github.com/golang/protobuf/jsonpb" + + ptypesempty "github.com/golang/protobuf/ptypes/empty" +) + +type webBundleServiceHandler struct { + r chi.Router + h BundleServiceHandler +} + +func (h *webBundleServiceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { + h.r.ServeHTTP(w, r) +} + +func (h *webBundleServiceHandler) SaveBundle(w http.ResponseWriter, r *http.Request) { + req := &SaveBundleRequest{} + resp := &SaveBundleResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.SaveBundle( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func (h *webBundleServiceHandler) GetBundle(w http.ResponseWriter, r *http.Request) { + req := &GetBundleRequest{} + resp := &GetBundleResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.GetBundle( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func (h *webBundleServiceHandler) ListBundles(w http.ResponseWriter, r *http.Request) { + req := &ListBundlesRequest{} + resp := &ListBundlesResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.ListBundles( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func (h *webBundleServiceHandler) AddSettingToBundle(w http.ResponseWriter, r *http.Request) { + req := &AddSettingToBundleRequest{} + resp := &AddSettingToBundleResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.AddSettingToBundle( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func (h *webBundleServiceHandler) RemoveSettingFromBundle(w http.ResponseWriter, r *http.Request) { + req := &RemoveSettingFromBundleRequest{} + resp := &ptypesempty.Empty{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.RemoveSettingFromBundle( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusNoContent) + render.NoContent(w, r) +} + +func RegisterBundleServiceWeb(r chi.Router, i BundleServiceHandler, middlewares ...func(http.Handler) http.Handler) { + handler := &webBundleServiceHandler{ + r: r, + h: i, + } + + r.MethodFunc("POST", "/api/v1/settings/bundle-save", handler.SaveBundle) + r.MethodFunc("POST", "/api/v1/settings/bundle-get", handler.GetBundle) + r.MethodFunc("POST", "/api/v1/settings/bundles-list", handler.ListBundles) + r.MethodFunc("POST", "/api/v1/settings/bundles-add-setting", handler.AddSettingToBundle) + r.MethodFunc("POST", "/api/v1/settings/bundles-remove-setting", handler.RemoveSettingFromBundle) +} + +type webValueServiceHandler struct { + r chi.Router + h ValueServiceHandler +} + +func (h *webValueServiceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { + h.r.ServeHTTP(w, r) +} + +func (h *webValueServiceHandler) SaveValue(w http.ResponseWriter, r *http.Request) { + req := &SaveValueRequest{} + resp := &SaveValueResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.SaveValue( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func (h *webValueServiceHandler) GetValue(w http.ResponseWriter, r *http.Request) { + req := &GetValueRequest{} + resp := &GetValueResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.GetValue( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func (h *webValueServiceHandler) ListValues(w http.ResponseWriter, r *http.Request) { + req := &ListValuesRequest{} + resp := &ListValuesResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.ListValues( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func (h *webValueServiceHandler) GetValueByUniqueIdentifiers(w http.ResponseWriter, r *http.Request) { + req := &GetValueByUniqueIdentifiersRequest{} + resp := &GetValueResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.GetValueByUniqueIdentifiers( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func RegisterValueServiceWeb(r chi.Router, i ValueServiceHandler, middlewares ...func(http.Handler) http.Handler) { + handler := &webValueServiceHandler{ + r: r, + h: i, + } + + r.MethodFunc("POST", "/api/v1/settings/values-save", handler.SaveValue) + r.MethodFunc("POST", "/api/v1/settings/values-get", handler.GetValue) + r.MethodFunc("POST", "/api/v1/settings/values-list", handler.ListValues) + r.MethodFunc("POST", "/api/v1/settings/values-get-by-unique-identifiers", handler.GetValueByUniqueIdentifiers) +} + +type webRoleServiceHandler struct { + r chi.Router + h RoleServiceHandler +} + +func (h *webRoleServiceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { + h.r.ServeHTTP(w, r) +} + +func (h *webRoleServiceHandler) ListRoles(w http.ResponseWriter, r *http.Request) { + req := &ListBundlesRequest{} + resp := &ListBundlesResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.ListRoles( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func (h *webRoleServiceHandler) ListRoleAssignments(w http.ResponseWriter, r *http.Request) { + req := &ListRoleAssignmentsRequest{} + resp := &ListRoleAssignmentsResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.ListRoleAssignments( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func (h *webRoleServiceHandler) AssignRoleToUser(w http.ResponseWriter, r *http.Request) { + req := &AssignRoleToUserRequest{} + resp := &AssignRoleToUserResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.AssignRoleToUser( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func (h *webRoleServiceHandler) RemoveRoleFromUser(w http.ResponseWriter, r *http.Request) { + req := &RemoveRoleFromUserRequest{} + resp := &ptypesempty.Empty{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.RemoveRoleFromUser( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusNoContent) + render.NoContent(w, r) +} + +func RegisterRoleServiceWeb(r chi.Router, i RoleServiceHandler, middlewares ...func(http.Handler) http.Handler) { + handler := &webRoleServiceHandler{ + r: r, + h: i, + } + + r.MethodFunc("POST", "/api/v1/settings/roles-list", handler.ListRoles) + r.MethodFunc("POST", "/api/v1/settings/assignments-list", handler.ListRoleAssignments) + r.MethodFunc("POST", "/api/v1/settings/assignments-add", handler.AssignRoleToUser) + r.MethodFunc("POST", "/api/v1/settings/assignments-remove", handler.RemoveRoleFromUser) +} + +type webPermissionServiceHandler struct { + r chi.Router + h PermissionServiceHandler +} + +func (h *webPermissionServiceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { + h.r.ServeHTTP(w, r) +} + +func (h *webPermissionServiceHandler) ListPermissionsByResource(w http.ResponseWriter, r *http.Request) { + req := &ListPermissionsByResourceRequest{} + resp := &ListPermissionsByResourceResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.ListPermissionsByResource( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func (h *webPermissionServiceHandler) GetPermissionByID(w http.ResponseWriter, r *http.Request) { + req := &GetPermissionByIDRequest{} + resp := &GetPermissionByIDResponse{} + + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, err.Error(), http.StatusPreconditionFailed) + return + } + + if err := h.h.GetPermissionByID( + r.Context(), + req, + resp, + ); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + + render.Status(r, http.StatusCreated) + render.JSON(w, r, resp) +} + +func RegisterPermissionServiceWeb(r chi.Router, i PermissionServiceHandler, middlewares ...func(http.Handler) http.Handler) { + handler := &webPermissionServiceHandler{ + r: r, + h: i, + } + + r.MethodFunc("POST", "/api/v1/settings/permissions-list-by-resource", handler.ListPermissionsByResource) + r.MethodFunc("POST", "/api/v1/settings/permissions-get-by-id", handler.GetPermissionByID) +} + +// SaveBundleRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of SaveBundleRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var SaveBundleRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *SaveBundleRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := SaveBundleRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*SaveBundleRequest)(nil) + +// SaveBundleRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of SaveBundleRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var SaveBundleRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *SaveBundleRequest) UnmarshalJSON(b []byte) error { + return SaveBundleRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*SaveBundleRequest)(nil) + +// SaveBundleResponseJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of SaveBundleResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var SaveBundleResponseJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *SaveBundleResponse) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := SaveBundleResponseJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*SaveBundleResponse)(nil) + +// SaveBundleResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of SaveBundleResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var SaveBundleResponseJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *SaveBundleResponse) UnmarshalJSON(b []byte) error { + return SaveBundleResponseJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*SaveBundleResponse)(nil) + +// GetBundleRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of GetBundleRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetBundleRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *GetBundleRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := GetBundleRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*GetBundleRequest)(nil) + +// GetBundleRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of GetBundleRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetBundleRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *GetBundleRequest) UnmarshalJSON(b []byte) error { + return GetBundleRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*GetBundleRequest)(nil) + +// GetBundleResponseJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of GetBundleResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetBundleResponseJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *GetBundleResponse) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := GetBundleResponseJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*GetBundleResponse)(nil) + +// GetBundleResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of GetBundleResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetBundleResponseJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *GetBundleResponse) UnmarshalJSON(b []byte) error { + return GetBundleResponseJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*GetBundleResponse)(nil) + +// ListBundlesRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ListBundlesRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListBundlesRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ListBundlesRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ListBundlesRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ListBundlesRequest)(nil) + +// ListBundlesRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ListBundlesRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListBundlesRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ListBundlesRequest) UnmarshalJSON(b []byte) error { + return ListBundlesRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ListBundlesRequest)(nil) + +// ListBundlesResponseJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ListBundlesResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListBundlesResponseJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ListBundlesResponse) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ListBundlesResponseJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ListBundlesResponse)(nil) + +// ListBundlesResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ListBundlesResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListBundlesResponseJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ListBundlesResponse) UnmarshalJSON(b []byte) error { + return ListBundlesResponseJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ListBundlesResponse)(nil) + +// AddSettingToBundleRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of AddSettingToBundleRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var AddSettingToBundleRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *AddSettingToBundleRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := AddSettingToBundleRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*AddSettingToBundleRequest)(nil) + +// AddSettingToBundleRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of AddSettingToBundleRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var AddSettingToBundleRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *AddSettingToBundleRequest) UnmarshalJSON(b []byte) error { + return AddSettingToBundleRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*AddSettingToBundleRequest)(nil) + +// AddSettingToBundleResponseJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of AddSettingToBundleResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var AddSettingToBundleResponseJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *AddSettingToBundleResponse) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := AddSettingToBundleResponseJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*AddSettingToBundleResponse)(nil) + +// AddSettingToBundleResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of AddSettingToBundleResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var AddSettingToBundleResponseJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *AddSettingToBundleResponse) UnmarshalJSON(b []byte) error { + return AddSettingToBundleResponseJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*AddSettingToBundleResponse)(nil) + +// RemoveSettingFromBundleRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of RemoveSettingFromBundleRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var RemoveSettingFromBundleRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *RemoveSettingFromBundleRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := RemoveSettingFromBundleRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*RemoveSettingFromBundleRequest)(nil) + +// RemoveSettingFromBundleRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of RemoveSettingFromBundleRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var RemoveSettingFromBundleRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *RemoveSettingFromBundleRequest) UnmarshalJSON(b []byte) error { + return RemoveSettingFromBundleRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*RemoveSettingFromBundleRequest)(nil) + +// SaveValueRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of SaveValueRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var SaveValueRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *SaveValueRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := SaveValueRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*SaveValueRequest)(nil) + +// SaveValueRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of SaveValueRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var SaveValueRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *SaveValueRequest) UnmarshalJSON(b []byte) error { + return SaveValueRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*SaveValueRequest)(nil) + +// SaveValueResponseJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of SaveValueResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var SaveValueResponseJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *SaveValueResponse) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := SaveValueResponseJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*SaveValueResponse)(nil) + +// SaveValueResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of SaveValueResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var SaveValueResponseJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *SaveValueResponse) UnmarshalJSON(b []byte) error { + return SaveValueResponseJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*SaveValueResponse)(nil) + +// GetValueRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of GetValueRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetValueRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *GetValueRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := GetValueRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*GetValueRequest)(nil) + +// GetValueRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of GetValueRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetValueRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *GetValueRequest) UnmarshalJSON(b []byte) error { + return GetValueRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*GetValueRequest)(nil) + +// GetValueResponseJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of GetValueResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetValueResponseJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *GetValueResponse) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := GetValueResponseJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*GetValueResponse)(nil) + +// GetValueResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of GetValueResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetValueResponseJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *GetValueResponse) UnmarshalJSON(b []byte) error { + return GetValueResponseJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*GetValueResponse)(nil) + +// ListValuesRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ListValuesRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListValuesRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ListValuesRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ListValuesRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ListValuesRequest)(nil) + +// ListValuesRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ListValuesRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListValuesRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ListValuesRequest) UnmarshalJSON(b []byte) error { + return ListValuesRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ListValuesRequest)(nil) + +// ListValuesResponseJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ListValuesResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListValuesResponseJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ListValuesResponse) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ListValuesResponseJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ListValuesResponse)(nil) + +// ListValuesResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ListValuesResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListValuesResponseJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ListValuesResponse) UnmarshalJSON(b []byte) error { + return ListValuesResponseJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ListValuesResponse)(nil) + +// GetValueByUniqueIdentifiersRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of GetValueByUniqueIdentifiersRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetValueByUniqueIdentifiersRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *GetValueByUniqueIdentifiersRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := GetValueByUniqueIdentifiersRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*GetValueByUniqueIdentifiersRequest)(nil) + +// GetValueByUniqueIdentifiersRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of GetValueByUniqueIdentifiersRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetValueByUniqueIdentifiersRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *GetValueByUniqueIdentifiersRequest) UnmarshalJSON(b []byte) error { + return GetValueByUniqueIdentifiersRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*GetValueByUniqueIdentifiersRequest)(nil) + +// ListRoleAssignmentsRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ListRoleAssignmentsRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListRoleAssignmentsRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ListRoleAssignmentsRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ListRoleAssignmentsRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ListRoleAssignmentsRequest)(nil) + +// ListRoleAssignmentsRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ListRoleAssignmentsRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListRoleAssignmentsRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ListRoleAssignmentsRequest) UnmarshalJSON(b []byte) error { + return ListRoleAssignmentsRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ListRoleAssignmentsRequest)(nil) + +// ListRoleAssignmentsResponseJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ListRoleAssignmentsResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListRoleAssignmentsResponseJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ListRoleAssignmentsResponse) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ListRoleAssignmentsResponseJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ListRoleAssignmentsResponse)(nil) + +// ListRoleAssignmentsResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ListRoleAssignmentsResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListRoleAssignmentsResponseJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ListRoleAssignmentsResponse) UnmarshalJSON(b []byte) error { + return ListRoleAssignmentsResponseJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ListRoleAssignmentsResponse)(nil) + +// AssignRoleToUserRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of AssignRoleToUserRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var AssignRoleToUserRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *AssignRoleToUserRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := AssignRoleToUserRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*AssignRoleToUserRequest)(nil) + +// AssignRoleToUserRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of AssignRoleToUserRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var AssignRoleToUserRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *AssignRoleToUserRequest) UnmarshalJSON(b []byte) error { + return AssignRoleToUserRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*AssignRoleToUserRequest)(nil) + +// AssignRoleToUserResponseJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of AssignRoleToUserResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var AssignRoleToUserResponseJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *AssignRoleToUserResponse) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := AssignRoleToUserResponseJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*AssignRoleToUserResponse)(nil) + +// AssignRoleToUserResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of AssignRoleToUserResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var AssignRoleToUserResponseJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *AssignRoleToUserResponse) UnmarshalJSON(b []byte) error { + return AssignRoleToUserResponseJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*AssignRoleToUserResponse)(nil) + +// RemoveRoleFromUserRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of RemoveRoleFromUserRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var RemoveRoleFromUserRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *RemoveRoleFromUserRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := RemoveRoleFromUserRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*RemoveRoleFromUserRequest)(nil) + +// RemoveRoleFromUserRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of RemoveRoleFromUserRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var RemoveRoleFromUserRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *RemoveRoleFromUserRequest) UnmarshalJSON(b []byte) error { + return RemoveRoleFromUserRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*RemoveRoleFromUserRequest)(nil) + +// ListPermissionsByResourceRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ListPermissionsByResourceRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListPermissionsByResourceRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ListPermissionsByResourceRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ListPermissionsByResourceRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ListPermissionsByResourceRequest)(nil) + +// ListPermissionsByResourceRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ListPermissionsByResourceRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListPermissionsByResourceRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ListPermissionsByResourceRequest) UnmarshalJSON(b []byte) error { + return ListPermissionsByResourceRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ListPermissionsByResourceRequest)(nil) + +// ListPermissionsByResourceResponseJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of ListPermissionsByResourceResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListPermissionsByResourceResponseJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *ListPermissionsByResourceResponse) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := ListPermissionsByResourceResponseJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*ListPermissionsByResourceResponse)(nil) + +// ListPermissionsByResourceResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of ListPermissionsByResourceResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var ListPermissionsByResourceResponseJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *ListPermissionsByResourceResponse) UnmarshalJSON(b []byte) error { + return ListPermissionsByResourceResponseJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*ListPermissionsByResourceResponse)(nil) + +// GetPermissionByIDRequestJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of GetPermissionByIDRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetPermissionByIDRequestJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *GetPermissionByIDRequest) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := GetPermissionByIDRequestJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*GetPermissionByIDRequest)(nil) + +// GetPermissionByIDRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of GetPermissionByIDRequest. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetPermissionByIDRequestJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *GetPermissionByIDRequest) UnmarshalJSON(b []byte) error { + return GetPermissionByIDRequestJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*GetPermissionByIDRequest)(nil) + +// GetPermissionByIDResponseJSONMarshaler describes the default jsonpb.Marshaler used by all +// instances of GetPermissionByIDResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetPermissionByIDResponseJSONMarshaler = new(jsonpb.Marshaler) + +// MarshalJSON satisfies the encoding/json Marshaler interface. This method +// uses the more correct jsonpb package to correctly marshal the message. +func (m *GetPermissionByIDResponse) MarshalJSON() ([]byte, error) { + if m == nil { + return json.Marshal(nil) + } + + buf := &bytes.Buffer{} + + if err := GetPermissionByIDResponseJSONMarshaler.Marshal(buf, m); err != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +var _ json.Marshaler = (*GetPermissionByIDResponse)(nil) + +// GetPermissionByIDResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all +// instances of GetPermissionByIDResponse. This struct is safe to replace or modify but +// should not be done so concurrently. +var GetPermissionByIDResponseJSONUnmarshaler = new(jsonpb.Unmarshaler) + +// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method +// uses the more correct jsonpb package to correctly unmarshal the message. +func (m *GetPermissionByIDResponse) UnmarshalJSON(b []byte) error { + return GetPermissionByIDResponseJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m) +} + +var _ json.Unmarshaler = (*GetPermissionByIDResponse)(nil) diff --git a/protogen/gen/ocis/services/settings/v1/settings.swagger.json b/protogen/gen/ocis/services/settings/v1/settings.swagger.json new file mode 100644 index 0000000000..fd146c2f28 --- /dev/null +++ b/protogen/gen/ocis/services/settings/v1/settings.swagger.json @@ -0,0 +1,1114 @@ +{ + "swagger": "2.0", + "info": { + "title": "ownCloud Infinite Scale settings", + "version": "1.0.0", + "contact": { + "name": "ownCloud GmbH", + "url": "https://github.com/owncloud/ocis", + "email": "support@owncloud.com" + }, + "license": { + "name": "Apache-2.0", + "url": "https://github.com/owncloud/ocis/blob/master/LICENSE" + } + }, + "tags": [ + { + "name": "BundleService" + }, + { + "name": "ValueService" + }, + { + "name": "RoleService" + }, + { + "name": "PermissionService" + } + ], + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/api/v1/settings/assignments-add": { + "post": { + "operationId": "RoleService_AssignRoleToUser", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1AssignRoleToUserResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1AssignRoleToUserRequest" + } + } + ], + "tags": [ + "RoleService" + ] + } + }, + "/api/v1/settings/assignments-list": { + "post": { + "operationId": "RoleService_ListRoleAssignments", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ListRoleAssignmentsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1ListRoleAssignmentsRequest" + } + } + ], + "tags": [ + "RoleService" + ] + } + }, + "/api/v1/settings/assignments-remove": { + "post": { + "operationId": "RoleService_RemoveRoleFromUser", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "properties": {} + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1RemoveRoleFromUserRequest" + } + } + ], + "tags": [ + "RoleService" + ] + } + }, + "/api/v1/settings/bundle-get": { + "post": { + "operationId": "BundleService_GetBundle", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetBundleResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetBundleRequest" + } + } + ], + "tags": [ + "BundleService" + ] + } + }, + "/api/v1/settings/bundle-save": { + "post": { + "operationId": "BundleService_SaveBundle", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1SaveBundleResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1SaveBundleRequest" + } + } + ], + "tags": [ + "BundleService" + ] + } + }, + "/api/v1/settings/bundles-add-setting": { + "post": { + "operationId": "BundleService_AddSettingToBundle", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1AddSettingToBundleResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1AddSettingToBundleRequest" + } + } + ], + "tags": [ + "BundleService" + ] + } + }, + "/api/v1/settings/bundles-list": { + "post": { + "operationId": "BundleService_ListBundles", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ListBundlesResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1ListBundlesRequest" + } + } + ], + "tags": [ + "BundleService" + ] + } + }, + "/api/v1/settings/bundles-remove-setting": { + "post": { + "operationId": "BundleService_RemoveSettingFromBundle", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "properties": {} + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1RemoveSettingFromBundleRequest" + } + } + ], + "tags": [ + "BundleService" + ] + } + }, + "/api/v1/settings/permissions-get-by-id": { + "post": { + "operationId": "PermissionService_GetPermissionByID", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetPermissionByIDResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetPermissionByIDRequest" + } + } + ], + "tags": [ + "PermissionService" + ] + } + }, + "/api/v1/settings/permissions-list-by-resource": { + "post": { + "operationId": "PermissionService_ListPermissionsByResource", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ListPermissionsByResourceResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1ListPermissionsByResourceRequest" + } + } + ], + "tags": [ + "PermissionService" + ] + } + }, + "/api/v1/settings/roles-list": { + "post": { + "operationId": "RoleService_ListRoles", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ListBundlesResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1ListBundlesRequest" + } + } + ], + "tags": [ + "RoleService" + ] + } + }, + "/api/v1/settings/values-get": { + "post": { + "operationId": "ValueService_GetValue", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetValueResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetValueRequest" + } + } + ], + "tags": [ + "ValueService" + ] + } + }, + "/api/v1/settings/values-get-by-unique-identifiers": { + "post": { + "operationId": "ValueService_GetValueByUniqueIdentifiers", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetValueResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetValueByUniqueIdentifiersRequest" + } + } + ], + "tags": [ + "ValueService" + ] + } + }, + "/api/v1/settings/values-list": { + "post": { + "operationId": "ValueService_ListValues", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1ListValuesResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1ListValuesRequest" + } + } + ], + "tags": [ + "ValueService" + ] + } + }, + "/api/v1/settings/values-save": { + "post": { + "operationId": "ValueService_SaveValue", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1SaveValueResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1SaveValueRequest" + } + } + ], + "tags": [ + "ValueService" + ] + } + } + }, + "definitions": { + "PermissionConstraint": { + "type": "string", + "enum": [ + "CONSTRAINT_UNKNOWN", + "CONSTRAINT_OWN", + "CONSTRAINT_SHARED", + "CONSTRAINT_ALL" + ], + "default": "CONSTRAINT_UNKNOWN" + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string" + } + }, + "additionalProperties": {} + }, + "rpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "settingsv1ListValue": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/v1ListOptionValue" + } + } + } + }, + "settingsv1Value": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "id is the id of the Value. It is generated on saving it." + }, + "bundleId": { + "type": "string" + }, + "settingId": { + "type": "string", + "description": "setting_id is the id of the setting from within its bundle." + }, + "accountUuid": { + "type": "string" + }, + "resource": { + "$ref": "#/definitions/v1Resource" + }, + "boolValue": { + "type": "boolean" + }, + "intValue": { + "type": "string", + "format": "int64" + }, + "stringValue": { + "type": "string" + }, + "listValue": { + "$ref": "#/definitions/settingsv1ListValue" + } + } + }, + "v1AddSettingToBundleRequest": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + }, + "setting": { + "$ref": "#/definitions/v1Setting" + } + } + }, + "v1AddSettingToBundleResponse": { + "type": "object", + "properties": { + "setting": { + "$ref": "#/definitions/v1Setting" + } + } + }, + "v1AssignRoleToUserRequest": { + "type": "object", + "properties": { + "accountUuid": { + "type": "string" + }, + "roleId": { + "type": "string", + "title": "the role_id is a bundle_id internally" + } + } + }, + "v1AssignRoleToUserResponse": { + "type": "object", + "properties": { + "assignment": { + "$ref": "#/definitions/v1UserRoleAssignment" + } + } + }, + "v1Bool": { + "type": "object", + "properties": { + "default": { + "type": "boolean" + }, + "label": { + "type": "string" + } + } + }, + "v1Bundle": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/v1BundleType" + }, + "extension": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "settings": { + "type": "array", + "items": { + "$ref": "#/definitions/v1Setting" + } + }, + "resource": { + "$ref": "#/definitions/v1Resource" + } + } + }, + "v1BundleType": { + "type": "string", + "enum": [ + "TYPE_UNKNOWN", + "TYPE_DEFAULT", + "TYPE_ROLE" + ], + "default": "TYPE_UNKNOWN" + }, + "v1GetBundleRequest": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + } + } + }, + "v1GetBundleResponse": { + "type": "object", + "properties": { + "bundle": { + "$ref": "#/definitions/v1Bundle" + } + } + }, + "v1GetPermissionByIDRequest": { + "type": "object", + "properties": { + "permissionId": { + "type": "string" + } + } + }, + "v1GetPermissionByIDResponse": { + "type": "object", + "properties": { + "permission": { + "$ref": "#/definitions/v1Permission" + } + } + }, + "v1GetValueByUniqueIdentifiersRequest": { + "type": "object", + "properties": { + "accountUuid": { + "type": "string" + }, + "settingId": { + "type": "string" + } + } + }, + "v1GetValueRequest": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + } + }, + "v1GetValueResponse": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/v1ValueWithIdentifier" + } + } + }, + "v1Identifier": { + "type": "object", + "properties": { + "extension": { + "type": "string" + }, + "bundle": { + "type": "string" + }, + "setting": { + "type": "string" + } + } + }, + "v1Int": { + "type": "object", + "properties": { + "default": { + "type": "string", + "format": "int64" + }, + "min": { + "type": "string", + "format": "int64" + }, + "max": { + "type": "string", + "format": "int64" + }, + "step": { + "type": "string", + "format": "int64" + }, + "placeholder": { + "type": "string" + } + } + }, + "v1ListBundlesRequest": { + "type": "object", + "properties": { + "bundleIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v1ListBundlesResponse": { + "type": "object", + "properties": { + "bundles": { + "type": "array", + "items": { + "$ref": "#/definitions/v1Bundle" + } + } + } + }, + "v1ListOption": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/v1ListOptionValue" + }, + "default": { + "type": "boolean" + }, + "displayValue": { + "type": "string" + } + } + }, + "v1ListOptionValue": { + "type": "object", + "properties": { + "stringValue": { + "type": "string" + }, + "intValue": { + "type": "string", + "format": "int64" + } + } + }, + "v1ListPermissionsByResourceRequest": { + "type": "object", + "properties": { + "resource": { + "$ref": "#/definitions/v1Resource" + } + } + }, + "v1ListPermissionsByResourceResponse": { + "type": "object", + "properties": { + "permissions": { + "type": "array", + "items": { + "$ref": "#/definitions/v1Permission" + } + } + } + }, + "v1ListRoleAssignmentsRequest": { + "type": "object", + "properties": { + "accountUuid": { + "type": "string" + } + } + }, + "v1ListRoleAssignmentsResponse": { + "type": "object", + "properties": { + "assignments": { + "type": "array", + "items": { + "$ref": "#/definitions/v1UserRoleAssignment" + } + } + } + }, + "v1ListValuesRequest": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + }, + "accountUuid": { + "type": "string" + } + } + }, + "v1ListValuesResponse": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/v1ValueWithIdentifier" + } + } + } + }, + "v1MultiChoiceList": { + "type": "object", + "properties": { + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/v1ListOption" + } + } + } + }, + "v1Permission": { + "type": "object", + "properties": { + "operation": { + "$ref": "#/definitions/v1PermissionOperation" + }, + "constraint": { + "$ref": "#/definitions/PermissionConstraint" + } + } + }, + "v1PermissionOperation": { + "type": "string", + "enum": [ + "OPERATION_UNKNOWN", + "OPERATION_CREATE", + "OPERATION_READ", + "OPERATION_UPDATE", + "OPERATION_DELETE", + "OPERATION_WRITE", + "OPERATION_READWRITE" + ], + "default": "OPERATION_UNKNOWN" + }, + "v1RemoveRoleFromUserRequest": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + } + }, + "v1RemoveSettingFromBundleRequest": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + }, + "settingId": { + "type": "string" + } + } + }, + "v1Resource": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/v1ResourceType" + }, + "id": { + "type": "string" + } + } + }, + "v1ResourceType": { + "type": "string", + "enum": [ + "TYPE_UNKNOWN", + "TYPE_SYSTEM", + "TYPE_FILE", + "TYPE_SHARE", + "TYPE_SETTING", + "TYPE_BUNDLE", + "TYPE_USER", + "TYPE_GROUP" + ], + "default": "TYPE_UNKNOWN" + }, + "v1SaveBundleRequest": { + "type": "object", + "properties": { + "bundle": { + "$ref": "#/definitions/v1Bundle" + } + }, + "title": "---\nrequests and responses for settings bundles\n---" + }, + "v1SaveBundleResponse": { + "type": "object", + "properties": { + "bundle": { + "$ref": "#/definitions/v1Bundle" + } + } + }, + "v1SaveValueRequest": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/settingsv1Value" + } + } + }, + "v1SaveValueResponse": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/v1ValueWithIdentifier" + } + } + }, + "v1Setting": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "intValue": { + "$ref": "#/definitions/v1Int" + }, + "stringValue": { + "$ref": "#/definitions/v1String" + }, + "boolValue": { + "$ref": "#/definitions/v1Bool" + }, + "singleChoiceValue": { + "$ref": "#/definitions/v1SingleChoiceList" + }, + "multiChoiceValue": { + "$ref": "#/definitions/v1MultiChoiceList" + }, + "permissionValue": { + "$ref": "#/definitions/v1Permission" + }, + "resource": { + "$ref": "#/definitions/v1Resource" + } + } + }, + "v1SingleChoiceList": { + "type": "object", + "properties": { + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/v1ListOption" + } + } + } + }, + "v1String": { + "type": "object", + "properties": { + "default": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "minLength": { + "type": "integer", + "format": "int32" + }, + "maxLength": { + "type": "integer", + "format": "int32" + }, + "placeholder": { + "type": "string" + } + } + }, + "v1UserRoleAssignment": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "id is generated upon saving the assignment" + }, + "accountUuid": { + "type": "string" + }, + "roleId": { + "type": "string", + "title": "the role_id is a bundle_id internally" + } + } + }, + "v1ValueWithIdentifier": { + "type": "object", + "properties": { + "identifier": { + "$ref": "#/definitions/v1Identifier" + }, + "value": { + "$ref": "#/definitions/settingsv1Value" + } + } + } + }, + "externalDocs": { + "description": "Developer Manual", + "url": "https://owncloud.dev/extensions/settings/" + } +} diff --git a/protogen/proto/ocis/messages/settings/v1/settings.proto b/protogen/proto/ocis/messages/settings/v1/settings.proto new file mode 100644 index 0000000000..889b51cd3a --- /dev/null +++ b/protogen/proto/ocis/messages/settings/v1/settings.proto @@ -0,0 +1,172 @@ +syntax = "proto3"; + +package ocis.messages.settings.v1; + +option go_package = "github.com/owncloud/ocis/protogen/gen/ocis/messages/settings/v1"; + +// --- +// messages for settings values +// --- + +message ValueWithIdentifier { + Identifier identifier = 1; + Value value = 2; +} + +message Identifier { + string extension = 1; + string bundle = 2; + string setting = 3; +} + +// --- +// messages for role assignment +// --- + +message UserRoleAssignment { + // id is generated upon saving the assignment + string id = 1; + string account_uuid = 2; + // the role_id is a bundle_id internally + string role_id = 3; +} + +// --- +// resource payloads +// --- + +message Resource { + enum Type { + TYPE_UNKNOWN = 0; + TYPE_SYSTEM = 1; + TYPE_FILE = 2; + TYPE_SHARE = 3; + TYPE_SETTING = 4; + TYPE_BUNDLE = 5; + TYPE_USER = 6; + TYPE_GROUP = 7; + } + Type type = 1; + string id = 2; +} + +// --- +// payloads for bundles +// --- + +message Bundle { + enum Type { + TYPE_UNKNOWN = 0; + TYPE_DEFAULT = 1; + TYPE_ROLE = 2; + } + string id = 1; + string name = 2; + Type type = 3; + string extension = 4; + string display_name = 5; + repeated Setting settings = 6; + Resource resource = 7; +} + +message Setting { + string id = 1; + string name = 2; + string display_name = 3; + string description = 4; + oneof value { + Int int_value = 5; + String string_value = 6; + Bool bool_value = 7; + SingleChoiceList single_choice_value = 8; + MultiChoiceList multi_choice_value = 9; + Permission permission_value = 10; + } + Resource resource = 11; +} + +message Int { + int64 default = 1; + int64 min = 2; + int64 max = 3; + int64 step = 4; + string placeholder = 5; +} + +message String { + string default = 1; + bool required = 2; + int32 min_length = 3; + int32 max_length = 4; + string placeholder = 5; +} + +message Bool { + bool default = 1; + string label = 2; +} + +message SingleChoiceList { + repeated ListOption options = 1; +} + +message MultiChoiceList { + repeated ListOption options = 1; +} + +message ListOption { + ListOptionValue value = 1; + bool default = 2; + string display_value = 3; +} + +message Permission { + enum Operation { + OPERATION_UNKNOWN = 0; + OPERATION_CREATE = 1; + OPERATION_READ = 2; + OPERATION_UPDATE = 3; + OPERATION_DELETE = 4; + OPERATION_WRITE = 5;// WRITE is a combination of CREATE and UPDATE + OPERATION_READWRITE = 6;// READWRITE is a combination of READ and WRITE + } + Operation operation = 1; + enum Constraint { + CONSTRAINT_UNKNOWN = 0; + CONSTRAINT_OWN = 1; + CONSTRAINT_SHARED = 2; + CONSTRAINT_ALL = 3; + } + Constraint constraint = 2; +} + +// --- +// payloads for values +// --- + +message Value { + // id is the id of the Value. It is generated on saving it. + string id = 1; + string bundle_id = 2; + // setting_id is the id of the setting from within its bundle. + string setting_id = 3; + string account_uuid = 4; + Resource resource = 5; + oneof value { + bool bool_value = 6; + int64 int_value = 7; + string string_value = 8; + ListValue list_value = 9; + } +} + +message ListValue { + repeated ListOptionValue values = 1; +} + +message ListOptionValue { + oneof option { + string string_value = 1; + int64 int_value = 2; + } +} diff --git a/protogen/proto/ocis/services/settings/v1/settings.proto b/protogen/proto/ocis/services/settings/v1/settings.proto new file mode 100644 index 0000000000..d6d32ce9d9 --- /dev/null +++ b/protogen/proto/ocis/services/settings/v1/settings.proto @@ -0,0 +1,257 @@ +syntax = "proto3"; + +package ocis.services.settings.v1; + +option go_package = "github.com/owncloud/ocis/protogen/gen/ocis/services/settings/v1"; + +import "ocis/messages/settings/v1/settings.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; +import "protoc-gen-openapiv2/options/annotations.proto"; + +option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { + info: { + title: "ownCloud Infinite Scale settings"; + version: "1.0.0"; + contact: { + name: "ownCloud GmbH"; + url: "https://github.com/owncloud/ocis"; + email: "support@owncloud.com"; + }; + license: { + name: "Apache-2.0"; + url: "https://github.com/owncloud/ocis/blob/master/LICENSE"; + }; + }; + schemes: HTTP; + schemes: HTTPS; + consumes: "application/json"; + produces: "application/json"; + external_docs: { + description: "Developer Manual"; + url: "https://owncloud.dev/extensions/settings/"; + }; +}; + +service BundleService { + rpc SaveBundle(SaveBundleRequest) returns (SaveBundleResponse) { + option (google.api.http) = { + post: "/api/v1/settings/bundle-save", + body: "*" + }; + } + rpc GetBundle(GetBundleRequest) returns (GetBundleResponse) { + option (google.api.http) = { + post: "/api/v1/settings/bundle-get", + body: "*" + }; + } + rpc ListBundles(ListBundlesRequest) returns (ListBundlesResponse) { + option (google.api.http) = { + post: "/api/v1/settings/bundles-list", + body: "*" + }; + } + rpc AddSettingToBundle(AddSettingToBundleRequest) returns (AddSettingToBundleResponse) { + option (google.api.http) = { + post: "/api/v1/settings/bundles-add-setting", + body: "*" + }; + } + rpc RemoveSettingFromBundle(RemoveSettingFromBundleRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/api/v1/settings/bundles-remove-setting", + body: "*" + }; + } +} + +service ValueService { + rpc SaveValue(SaveValueRequest) returns (SaveValueResponse) { + option (google.api.http) = { + post: "/api/v1/settings/values-save", + body: "*" + }; + } + rpc GetValue(GetValueRequest) returns (GetValueResponse) { + option (google.api.http) = { + post: "/api/v1/settings/values-get", + body: "*" + }; + } + rpc ListValues(ListValuesRequest) returns (ListValuesResponse) { + option (google.api.http) = { + post: "/api/v1/settings/values-list", + body: "*" + }; + } + rpc GetValueByUniqueIdentifiers(GetValueByUniqueIdentifiersRequest) returns (GetValueResponse) { + option (google.api.http) = { + post: "/api/v1/settings/values-get-by-unique-identifiers", + body: "*" + }; + } +} + +service RoleService { + rpc ListRoles(ListBundlesRequest) returns (ListBundlesResponse) { + option (google.api.http) = { + post: "/api/v1/settings/roles-list", + body: "*" + }; + } + rpc ListRoleAssignments(ListRoleAssignmentsRequest) returns (ListRoleAssignmentsResponse) { + option (google.api.http) = { + post: "/api/v1/settings/assignments-list", + body: "*" + }; + } + rpc AssignRoleToUser(AssignRoleToUserRequest) returns (AssignRoleToUserResponse) { + option (google.api.http) = { + post: "/api/v1/settings/assignments-add", + body: "*" + }; + } + rpc RemoveRoleFromUser(RemoveRoleFromUserRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/api/v1/settings/assignments-remove", + body: "*" + }; + } +} + +service PermissionService { + rpc ListPermissionsByResource(ListPermissionsByResourceRequest) returns (ListPermissionsByResourceResponse) { + option (google.api.http) = { + post: "/api/v1/settings/permissions-list-by-resource", + body: "*" + }; + } + rpc GetPermissionByID(GetPermissionByIDRequest) returns (GetPermissionByIDResponse) { + option (google.api.http) = { + post: "/api/v1/settings/permissions-get-by-id", + body: "*" + }; + } +} + +// --- +// requests and responses for settings bundles +// --- +message SaveBundleRequest { + ocis.messages.settings.v1.Bundle bundle = 1; +} + +message SaveBundleResponse { + ocis.messages.settings.v1.Bundle bundle = 1; +} + +message GetBundleRequest { + string bundle_id = 1; +} + +message GetBundleResponse { + ocis.messages.settings.v1.Bundle bundle = 1; +} + +message ListBundlesRequest { + repeated string bundle_ids = 1; +} + +message ListBundlesResponse { + repeated ocis.messages.settings.v1.Bundle bundles = 1; +} + +message AddSettingToBundleRequest { + string bundle_id = 1; + ocis.messages.settings.v1.Setting setting = 2; +} + +message AddSettingToBundleResponse { + ocis.messages.settings.v1.Setting setting = 1; +} + +message RemoveSettingFromBundleRequest { + string bundle_id = 1; + string setting_id = 2; +} + +// --- +// requests and responses for settings values +// --- + +message SaveValueRequest { + ocis.messages.settings.v1.Value value = 1; +} + +message SaveValueResponse { + ocis.messages.settings.v1.ValueWithIdentifier value = 1; +} + +message GetValueRequest { + string id = 1; +} + +message GetValueResponse { + ocis.messages.settings.v1.ValueWithIdentifier value = 1; +} + +message ListValuesRequest { + string bundle_id = 1; + string account_uuid = 2; +} + +message ListValuesResponse { + repeated ocis.messages.settings.v1.ValueWithIdentifier values = 1; +} + +message GetValueByUniqueIdentifiersRequest{ + string account_uuid = 1; + string setting_id = 2; +} + +// -- +// requests and responses for role assignments +// --- + +message ListRoleAssignmentsRequest { + string account_uuid = 1; +} + +message ListRoleAssignmentsResponse { + repeated ocis.messages.settings.v1.UserRoleAssignment assignments = 1; +} + +message AssignRoleToUserRequest { + string account_uuid = 1; + // the role_id is a bundle_id internally + string role_id = 2; +} + +message AssignRoleToUserResponse { + ocis.messages.settings.v1.UserRoleAssignment assignment = 1; +} + +message RemoveRoleFromUserRequest { + string id = 1; +} + +// -- +// requests and responses for permissions +// --- + +message ListPermissionsByResourceRequest { + ocis.messages.settings.v1.Resource resource = 1; +} + +message ListPermissionsByResourceResponse { + repeated ocis.messages.settings.v1.Permission permissions = 1; +} + +message GetPermissionByIDRequest { + string permission_id = 1; +} + +message GetPermissionByIDResponse { + ocis.messages.settings.v1.Permission permission = 1; +}