UNPKG

@animeapis/identity

Version:
1,582 lines (1,581 loc) 75.1 kB
{ "nested": { "animeshon": { "nested": { "identity": { "nested": { "v1alpha1": { "options": { "go_package": "github.com/animeapis/go-genproto/identity/v1alpha1;identity", "java_package": "com.animeshon.identity.v1alpha1", "java_multiple_files": true, "ruby_package": "Animeshon::Identity::v1Alpha1" }, "nested": { "Identity": { "options": { "(google.api.default_host)": "identity.animeapis.com" }, "methods": { "GetUserProfile": { "requestType": "GetUserProfileRequest", "responseType": "UserProfile", "options": { "(google.api.http).get": "/v1alpha1/{name=users/*}:profile" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1alpha1/{name=users/*}:profile" } } ] }, "GetUser": { "requestType": "GetUserRequest", "responseType": "User", "options": { "(google.api.http).get": "/v1alpha1/{name=users/*}" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1alpha1/{name=users/*}" } } ] }, "ListUsers": { "requestType": "ListUsersRequest", "responseType": "ListUsersResponse", "options": { "(google.api.http).get": "/v1alpha1/users" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1alpha1/users" } } ] }, "CreateUser": { "requestType": "CreateUserRequest", "responseType": "User", "options": { "(google.api.http).post": "/v1alpha1/users", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1alpha1/users", "body": "*" } } ] }, "UpdateUser": { "requestType": "UpdateUserRequest", "responseType": "User", "options": { "(google.api.http).patch": "/v1alpha1/{user.name=users/*}", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "patch": "/v1alpha1/{user.name=users/*}", "body": "*" } } ] }, "DeleteUser": { "requestType": "DeleteUserRequest", "responseType": "google.protobuf.Empty", "options": { "(google.api.http).delete": "/v1alpha1/{name=users/*}" }, "parsedOptions": [ { "(google.api.http)": { "delete": "/v1alpha1/{name=users/*}" } } ] }, "GetUserSettings": { "requestType": "GetUserSettingsRequest", "responseType": "UserSettings", "options": { "(google.api.http).get": "/v1alpha1/{name=users/*}:settings" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1alpha1/{name=users/*}:settings" } } ] }, "UpdateUserSettings": { "requestType": "UpdateUserSettingsRequest", "responseType": "UserSettings", "options": { "(google.api.http).patch": "/v1alpha1/{settings.name=users/*}:settings", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "patch": "/v1alpha1/{settings.name=users/*}:settings", "body": "*" } } ] }, "GetUserNotifications": { "requestType": "GetUserNotificationsRequest", "responseType": "UserNotifications", "options": { "(google.api.http).get": "/v1alpha1/{name=users/*}:notifications" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1alpha1/{name=users/*}:notifications" } } ] }, "UpdateUserNotifications": { "requestType": "UpdateUserNotificationsRequest", "responseType": "UserNotifications", "options": { "(google.api.http).patch": "/v1alpha1/{notifications.name=users/*}:notifications", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "patch": "/v1alpha1/{notifications.name=users/*}:notifications", "body": "*" } } ] }, "GetUserDefaults": { "requestType": "GetUserDefaultsRequest", "responseType": "UserDefaults", "options": { "(google.api.http).get": "/v1alpha1/{name=users/*}:defaults" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1alpha1/{name=users/*}:defaults" } } ] }, "GetGroup": { "requestType": "GetGroupRequest", "responseType": "Group", "options": { "(google.api.http).get": "/v1alpha1/{name=groups/*}" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1alpha1/{name=groups/*}" } } ] }, "ListGroups": { "requestType": "ListGroupsRequest", "responseType": "ListGroupsResponse", "options": { "(google.api.http).get": "/v1alpha1/groups" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1alpha1/groups" } } ] }, "CreateGroup": { "requestType": "CreateGroupRequest", "responseType": "Group", "options": { "(google.api.http).post": "/v1alpha1/groups", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1alpha1/groups", "body": "*" } } ] }, "UpdateGroup": { "requestType": "UpdateGroupRequest", "responseType": "Group", "options": { "(google.api.http).patch": "/v1alpha1/{group.name=groups/*}", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "patch": "/v1alpha1/{group.name=groups/*}", "body": "*" } } ] }, "DeleteGroup": { "requestType": "DeleteGroupRequest", "responseType": "google.protobuf.Empty", "options": { "(google.api.http).delete": "/v1alpha1/{name=groups/*}" }, "parsedOptions": [ { "(google.api.http)": { "delete": "/v1alpha1/{name=groups/*}" } } ] } } }, "Gender": { "values": { "GENDER_UNSPECIFIED": 0, "MALE": 1, "FEMALE": 2, "OTHER": 3 } }, "UserProfile": { "fields": { "name": { "type": "string", "id": 1 }, "profileImage": { "type": "string", "id": 2 }, "bannerImage": { "type": "string", "id": 3 }, "username": { "type": "string", "id": 4 }, "discriminator": { "type": "string", "id": 5 }, "birthday": { "type": "google.type.Date", "id": 6 }, "gender": { "type": "Gender", "id": 7 } } }, "User": { "fields": { "name": { "type": "string", "id": 1 }, "uuid": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "IMMUTABLE" } }, "username": { "type": "string", "id": 3 }, "discriminator": { "type": "string", "id": 4, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "primaryEmail": { "type": "string", "id": 5, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "primaryEmailVerified": { "type": "bool", "id": 6, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "givenName": { "type": "string", "id": 7 }, "familyName": { "type": "string", "id": 8 }, "displayName": { "type": "string", "id": 9, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "countryCode": { "type": "string", "id": 10 }, "locale": { "type": "string", "id": 11 }, "localeFallback": { "type": "string", "id": 12 }, "birthday": { "type": "google.type.Date", "id": 13 }, "gender": { "type": "Gender", "id": 14 }, "profileImage": { "type": "string", "id": 15 }, "bannerImage": { "type": "string", "id": 16 } } }, "UserSettings": { "fields": { "name": { "type": "string", "id": 1 }, "profileVisibility": { "type": "Visibility", "id": 2 }, "showExplicitContent": { "type": "bool", "id": 3 }, "enableDeveloperMode": { "type": "bool", "id": 4 } }, "nested": { "Visibility": { "values": { "VISIBILITY_UNSPECIFIED": 0, "PUBLIC": 1, "PRIVATE": 2 } } } }, "UserDefaults": { "fields": { "albumProfile": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "albumBanner": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "playlistLiked": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "playlistLater": { "type": "string", "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "UserNotifications": { "fields": { "name": { "type": "string", "id": 1 } } }, "Group": { "fields": { "name": { "type": "string", "id": 1 }, "members": { "rule": "repeated", "type": "string", "id": 2 }, "etag": { "type": "bytes", "id": 3 } } }, "GetUserProfileRequest": { "fields": { "name": { "type": "string", "id": 1 } } }, "GetUserRequest": { "fields": { "name": { "type": "string", "id": 1 } } }, "ListUsersRequest": { "fields": { "pageSize": { "type": "int32", "id": 1 }, "pageToken": { "type": "string", "id": 2 }, "filter": { "type": "string", "id": 3 } } }, "ListUsersResponse": { "fields": { "users": { "rule": "repeated", "type": "User", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 } } }, "CreateUserRequest": { "fields": { "user": { "type": "User", "id": 1 } } }, "UpdateUserRequest": { "fields": { "user": { "type": "User", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "updateMask": { "type": "google.protobuf.FieldMask", "id": 2 } } }, "DeleteUserRequest": { "fields": { "name": { "type": "string", "id": 1 } } }, "GetUserSettingsRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "UpdateUserSettingsRequest": { "fields": { "settings": { "type": "UserSettings", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "updateMask": { "type": "google.protobuf.FieldMask", "id": 2 } } }, "GetUserNotificationsRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "UpdateUserNotificationsRequest": { "fields": { "notifications": { "type": "UserNotifications", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "updateMask": { "type": "google.protobuf.FieldMask", "id": 2 } } }, "GetUserDefaultsRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "GetGroupRequest": { "fields": { "name": { "type": "string", "id": 1 } } }, "ListGroupsRequest": { "fields": { "pageSize": { "type": "int32", "id": 1 }, "pageToken": { "type": "string", "id": 2 }, "filter": { "type": "string", "id": 3 } } }, "ListGroupsResponse": { "fields": { "groups": { "rule": "repeated", "type": "Group", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 } } }, "CreateGroupRequest": { "fields": { "group": { "type": "Group", "id": 1 } } }, "UpdateGroupRequest": { "fields": { "group": { "type": "Group", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "updateMask": { "type": "google.protobuf.FieldMask", "id": 2 } } }, "DeleteGroupRequest": { "fields": { "name": { "type": "string", "id": 1 } } } } } } } } }, "google": { "nested": { "api": { "options": { "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", "java_multiple_files": true, "java_outer_classname": "ResourceProto", "java_package": "com.google.api", "objc_class_prefix": "GAPI", "cc_enable_arenas": true }, "nested": { "http": { "type": "HttpRule", "id": 72295728, "extend": "google.protobuf.MethodOptions" }, "Http": { "fields": { "rules": { "rule": "repeated", "type": "HttpRule", "id": 1 }, "fullyDecodeReservedExpansion": { "type": "bool", "id": 2 } } }, "HttpRule": { "oneofs": { "pattern": { "oneof": [ "get", "put", "post", "delete", "patch", "custom" ] } }, "fields": { "selector": { "type": "string", "id": 1 }, "get": { "type": "string", "id": 2 }, "put": { "type": "string", "id": 3 }, "post": { "type": "string", "id": 4 }, "delete": { "type": "string", "id": 5 }, "patch": { "type": "string", "id": 6 }, "custom": { "type": "CustomHttpPattern", "id": 8 }, "body": { "type": "string", "id": 7 }, "responseBody": { "type": "string", "id": 12 }, "additionalBindings": { "rule": "repeated", "type": "HttpRule", "id": 11 } } }, "CustomHttpPattern": { "fields": { "kind": { "type": "string", "id": 1 }, "path": { "type": "string", "id": 2 } } }, "methodSignature": { "rule": "repeated", "type": "string", "id": 1051, "extend": "google.protobuf.MethodOptions" }, "defaultHost": { "type": "string", "id": 1049, "extend": "google.protobuf.ServiceOptions" }, "oauthScopes": { "type": "string", "id": 1050, "extend": "google.protobuf.ServiceOptions" }, "fieldBehavior": { "rule": "repeated", "type": "google.api.FieldBehavior", "id": 1052, "extend": "google.protobuf.FieldOptions" }, "FieldBehavior": { "values": { "FIELD_BEHAVIOR_UNSPECIFIED": 0, "OPTIONAL": 1, "REQUIRED": 2, "OUTPUT_ONLY": 3, "INPUT_ONLY": 4, "IMMUTABLE": 5, "UNORDERED_LIST": 6, "NON_EMPTY_DEFAULT": 7 } }, "resourceReference": { "type": "google.api.ResourceReference", "id": 1055, "extend": "google.protobuf.FieldOptions" }, "resourceDefinition": { "rule": "repeated", "type": "google.api.ResourceDescriptor", "id": 1053, "extend": "google.protobuf.FileOptions" }, "resource": { "type": "google.api.ResourceDescriptor", "id": 1053, "extend": "google.protobuf.MessageOptions" }, "ResourceDescriptor": { "fields": { "type": { "type": "string", "id": 1 }, "pattern": { "rule": "repeated", "type": "string", "id": 2 }, "nameField": { "type": "string", "id": 3 }, "history": { "type": "History", "id": 4 }, "plural": { "type": "string", "id": 5 }, "singular": { "type": "string", "id": 6 }, "style": { "rule": "repeated", "type": "Style", "id": 10 } }, "nested": { "History": { "values": { "HISTORY_UNSPECIFIED": 0, "ORIGINALLY_SINGLE_PATTERN": 1, "FUTURE_MULTI_PATTERN": 2 } }, "Style": { "values": { "STYLE_UNSPECIFIED": 0, "DECLARATIVE_FRIENDLY": 1 } } } }, "ResourceReference": { "fields": { "type": { "type": "string", "id": 1 }, "childType": { "type": "string", "id": 2 } } } } }, "protobuf": { "options": { "go_package": "google.golang.org/protobuf/types/descriptorpb", "java_package": "com.google.protobuf", "java_outer_classname": "DescriptorProtos", "csharp_namespace": "Google.Protobuf.Reflection", "objc_class_prefix": "GPB", "cc_enable_arenas": true, "optimize_for": "SPEED" }, "nested": { "FileDescriptorSet": { "fields": { "file": { "rule": "repeated", "type": "FileDescriptorProto", "id": 1 } } }, "FileDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "package": { "type": "string", "id": 2 }, "dependency": { "rule": "repeated", "type": "string", "id": 3 }, "publicDependency": { "rule": "repeated", "type": "int32", "id": 10, "options": { "packed": false } }, "weakDependency": { "rule": "repeated", "type": "int32", "id": 11, "options": { "packed": false } }, "messageType": { "rule": "repeated", "type": "DescriptorProto", "id": 4 }, "enumType": { "rule": "repeated", "type": "EnumDescriptorProto", "id": 5 }, "service": { "rule": "repeated", "type": "ServiceDescriptorProto", "id": 6 }, "extension": { "rule": "repeated", "type": "FieldDescriptorProto", "id": 7 }, "options": { "type": "FileOptions", "id": 8 }, "sourceCodeInfo": { "type": "SourceCodeInfo", "id": 9 }, "syntax": { "type": "string", "id": 12 } } }, "DescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "field": { "rule": "repeated", "type": "FieldDescriptorProto", "id": 2 }, "extension": { "rule": "repeated", "type": "FieldDescriptorProto", "id": 6 }, "nestedType": { "rule": "repeated", "type": "DescriptorProto", "id": 3 }, "enumType": { "rule": "repeated", "type": "EnumDescriptorProto", "id": 4 }, "extensionRange": { "rule": "repeated", "type": "ExtensionRange", "id": 5 }, "oneofDecl": { "rule": "repeated", "type": "OneofDescriptorProto", "id": 8 }, "options": { "type": "MessageOptions", "id": 7 }, "reservedRange": { "rule": "repeated", "type": "ReservedRange", "id": 9 }, "reservedName": { "rule": "repeated", "type": "string", "id": 10 } }, "nested": { "ExtensionRange": { "fields": { "start": { "type": "int32", "id": 1 }, "end": { "type": "int32", "id": 2 }, "options": { "type": "ExtensionRangeOptions", "id": 3 } } }, "ReservedRange": { "fields": { "start": { "type": "int32", "id": 1 }, "end": { "type": "int32", "id": 2 } } } } }, "ExtensionRangeOptions": { "fields": { "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999 } }, "extensions": [ [ 1000, 536870911 ] ] }, "FieldDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "number": { "type": "int32", "id": 3 }, "label": { "type": "Label", "id": 4 }, "type": { "type": "Type", "id": 5 }, "typeName": { "type": "string", "id": 6 }, "extendee": { "type": "string", "id": 2 }, "defaultValue": { "type": "string", "id": 7 }, "oneofIndex": { "type": "int32", "id": 9 }, "jsonName": { "type": "string", "id": 10 }, "options": { "type": "FieldOptions", "id": 8 }, "proto3Optional": { "type": "bool", "id": 17 } }, "nested": { "Type": { "values": { "TYPE_DOUBLE": 1, "TYPE_FLOAT": 2, "TYPE_INT64": 3, "TYPE_UINT64": 4, "TYPE_INT32": 5, "TYPE_FIXED64": 6, "TYPE_FIXED32": 7, "TYPE_BOOL": 8, "TYPE_STRING": 9, "TYPE_GROUP": 10, "TYPE_MESSAGE": 11, "TYPE_BYTES": 12, "TYPE_UINT32": 13, "TYPE_ENUM": 14, "TYPE_SFIXED32": 15, "TYPE_SFIXED64": 16, "TYPE_SINT32": 17, "TYPE_SINT64": 18 } }, "Label": { "values": { "LABEL_OPTIONAL": 1, "LABEL_REQUIRED": 2, "LABEL_REPEATED": 3 } } } }, "OneofDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "options": { "type": "OneofOptions", "id": 2 } } }, "EnumDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "value": { "rule": "repeated", "type": "EnumValueDescriptorProto", "id": 2 }, "options": { "type": "EnumOptions", "id": 3 }, "reservedRange": { "rule": "repeated", "type": "EnumReservedRange", "id": 4 }, "reservedName": { "rule": "repeated", "type": "string", "id": 5 } }, "nested": { "EnumReservedRange": { "fields": { "start": { "type": "int32", "id": 1 }, "end": { "type": "int32", "id": 2 } } } } }, "EnumValueDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "number": { "type": "int32", "id": 2 }, "options": { "type": "EnumValueOptions", "id": 3 } } }, "ServiceDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "method": { "rule": "repeated", "type": "MethodDescriptorProto", "id": 2 }, "options": { "type": "ServiceOptions", "id": 3 } } }, "MethodDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "inputType": { "type": "string", "id": 2 }, "outputType": { "type": "string", "id": 3 }, "options": { "type": "MethodOptions", "id": 4 }, "clientStreaming": { "type": "bool", "id": 5, "options": { "default": false } }, "serverStreaming": { "type": "bool", "id": 6, "options": { "default": false } } } }, "FileOptions": { "fields": { "javaPackage": { "type": "string", "id": 1 }, "javaOuterClassname": { "type": "string", "id": 8 }, "javaMultipleFiles": { "type": "bool", "id": 10, "options": { "default": false } }, "javaGenerateEqualsAndHash": { "type": "bool", "id": 20, "options": { "deprecated": true } }, "javaStringCheckUtf8": { "type": "bool", "id": 27, "options": { "default": false } }, "optimizeFor": { "type": "OptimizeMode", "id": 9, "options": { "default": "SPEED" } }, "goPackage": { "type": "string", "id": 11 }, "ccGenericServices": { "type": "bool", "id": 16, "options": { "default": false } }, "javaGenericServices": { "type": "bool", "id": 17, "options": { "default": false } }, "pyGenericServices": { "type": "bool", "id": 18, "options": { "default": false } }, "phpGenericServices": { "type": "bool", "id": 42, "options": { "default": false } }, "deprecated": { "type": "bool", "id": 23, "options": { "default": false } }, "ccEnableArenas": { "type": "bool", "id": 31, "options": { "default": true } }, "objcClassPrefix": { "type": "string", "id": 36 }, "csharpNamespace": { "type": "string", "id": 37 }, "swiftPrefix": { "type": "string", "id": 39 }, "phpClassPrefix": { "type": "string", "id": 40 }, "phpNamespace": { "type": "string", "id": 41 }, "phpMetadataNamespace": { "type": "string", "id": 44 }, "rubyPackage": { "type": "string", "id": 45 }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999 } }, "extensions": [ [ 1000, 536870911 ] ], "reserved": [ [ 38, 38 ] ], "nested": { "OptimizeMode": { "values": { "SPEED": 1, "CODE_SIZE": 2, "LITE_RUNTIME": 3 } } } }, "MessageOptions": { "fields": { "messageSetWireFormat": { "type": "bool", "id": 1, "options": { "default": false } }, "noStandardDescriptorAccessor": { "type": "bool", "id": 2, "options": { "default": false } }, "deprecated": { "type": "bool", "id": 3, "options": { "default": false } }, "mapEntry": { "type": "bool", "id": 7 }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999 } }, "extensions": [ [ 1000, 536870911 ] ], "reserved": [ [ 4, 4 ], [ 5, 5 ], [ 6, 6 ], [ 8, 8 ], [ 9, 9 ] ] }, "FieldOptions": { "fields": { "ctype": { "type": "CType", "id": 1, "options": { "default": "STRING" } }, "packed": { "type": "bool", "id": 2 }, "jstype": { "type": "JSType", "id": 6, "options": { "default": "JS_NORMAL" } }, "lazy": { "type": "bool", "id": 5, "options": { "default": false } }, "deprecated": { "type": "bool", "id": 3, "options": { "default": false } }, "weak": { "type": "bool", "id": 10, "options": { "default": false } }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999 } }, "extensions": [ [ 1000, 536870911 ] ], "reserved": [ [ 4, 4 ] ], "nested": { "CType": { "values": { "STRING": 0, "CORD": 1, "STRING_PIECE": 2 } }, "JSType": { "values": { "JS_NORMAL": 0, "JS_STRING": 1, "JS_NUMBER": 2 } } } }, "OneofOptions": { "fields": { "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999 } }, "extensions": [ [ 1000, 536870911 ] ] }, "EnumOptions": { "fields": { "allowAlias": { "type": "bool", "id": 2 }, "deprecated": { "type": "bool", "id": 3, "options": { "default": false } }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption",