diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3eb56ed9f7..a1f9a26255 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,13 +10,23 @@ env: jobs: - angular-lint: # will be added later on + ## Angular test, will be added later + + angular-lint: runs-on: ubuntu-18.04 defaults: run: working-directory: ./console steps: - uses: actions/checkout@v2 + - name: Install Protoc + uses: arduino/setup-protoc@master + with: + version: '3.x' + - run: wget -O protoc-gen-grpc-web https://github.com/grpc/grpc-web/releases/download/1.2.0/protoc-gen-grpc-web-1.2.0-linux-x86_64 + - run: sudo mv protoc-gen-grpc-web /usr/local/bin/protoc-gen-grpc-web + - run: sudo chmod +x /usr/local/bin/protoc-gen-grpc-web + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: ${{ env.NODE_VERSION }} @@ -30,6 +40,13 @@ jobs: working-directory: ./console steps: - uses: actions/checkout@v2 + - name: Install Protoc + uses: arduino/setup-protoc@master + with: + version: '3.x' + - run: wget -O protoc-gen-grpc-web https://github.com/grpc/grpc-web/releases/download/1.2.0/protoc-gen-grpc-web-1.2.0-linux-x86_64 + - run: sudo mv protoc-gen-grpc-web /usr/local/bin/protoc-gen-grpc-web + - run: sudo chmod +x /usr/local/bin/protoc-gen-grpc-web - uses: actions/setup-node@v1 with: node-version: ${{ env.NODE_VERSION }} @@ -57,15 +74,7 @@ jobs: file: ./profile.cov name: codecov-go - go-lint: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2-beta - with: - go-version: ${{ env.GO_VERSION }} - - uses: actions/checkout@v2 - - run: echo "replace me with real lint" + ## go lint, will be added later go-build: runs-on: ubuntu-18.04 diff --git a/.gitignore b/.gitignore index 4228421518..8037cac26f 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,7 @@ cockroach-data/* #binaries cmd/zitadel/zitadel **/statik/statik.go + +# buildfolders and generated js +tmp/ +console/src/app/proto/generated/ \ No newline at end of file diff --git a/build/console/generate-grpc.sh b/build/console/generate-grpc.sh index 49ee9aaeb8..1899206b5e 100755 --- a/build/console/generate-grpc.sh +++ b/build/console/generate-grpc.sh @@ -2,7 +2,7 @@ set -eux -GEN_PATH=${GOPATH}/src/github.com/caos/zitadel/console/src/app/proto/generated +GEN_PATH=src/app/proto/generated echo "Remove old files" rm -rf $GEN_PATH @@ -10,22 +10,26 @@ rm -rf $GEN_PATH echo "Create folders" mkdir -p $GEN_PATH +echo "Download additional protofiles" +wget -P tmp/validate https://raw.githubusercontent.com/envoyproxy/protoc-gen-validate/v0.4.0/validate/validate.proto +wget -P tmp/protoc-gen-swagger/options https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/annotations.proto +wget -P tmp/protoc-gen-swagger/options https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/openapiv2.proto + echo "Generate grpc" protoc \ -I=/usr/local/include \ - -I=${GOPATH}/src/github.com/caos/zitadel/pkg/management/api/proto \ - -I=${GOPATH}/src/github.com/caos/zitadel/pkg/auth/api/proto \ - -I=${GOPATH}/src/github.com/caos/zitadel/pkg/admin/api/proto \ - -I=${GOPATH}/src/github.com/caos/zitadel/internal/protoc/protoc-gen-authoption \ - -I=${GOPATH}/src/github.com/caos/zitadel/console/node_modules/google-proto-files \ - -I=${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate \ - -I=${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway \ + -I=../pkg/management/api/proto \ + -I=../pkg/auth/api/proto \ + -I=../pkg/admin/api/proto \ + -I=../internal/protoc/protoc-gen-authoption \ + -I=node_modules/google-proto-files \ + -I=tmp \ --js_out=import_style=commonjs,binary:$GEN_PATH \ --grpc-web_out=import_style=commonjs+dts,mode=grpcweb:$GEN_PATH \ - ${GOPATH}/src/github.com/caos/zitadel/pkg/management/api/proto/*.proto \ - ${GOPATH}/src/github.com/caos/zitadel/pkg/admin/api/proto/*.proto \ - ${GOPATH}/src/github.com/caos/zitadel/pkg/auth/api/proto/*.proto + ../pkg/management/api/proto/*.proto \ + ../pkg/admin/api/proto/*.proto \ + ../pkg/auth/api/proto/*.proto echo "Generate annotations js file (compatibility)" @@ -43,4 +47,4 @@ echo "export {}" > $GEN_PATH/protoc-gen-swagger/options/annotations_pb.d.ts mkdir -p $GEN_PATH/authoption touch $GEN_PATH/authoption/options_pb.js -echo "export {}" > $GEN_PATH/authoption/options_pb.d.ts +echo "export {}" > $GEN_PATH/authoption/options_pb.d.ts \ No newline at end of file diff --git a/console/.gitignore b/console/.gitignore index 31a52a2fcd..124a1088f8 100644 --- a/console/.gitignore +++ b/console/.gitignore @@ -43,3 +43,6 @@ testem.log .DS_Store Thumbs.db .vscode/settings.json + +# Proto generated js files +src/app/proto diff --git a/console/package.json b/console/package.json index 0724698682..0afaf5bb55 100644 --- a/console/package.json +++ b/console/package.json @@ -3,14 +3,11 @@ "version": "0.0.0", "scripts": { "ng": "ng", - "prestart": "npm run proto", "start": "ng serve", "build": "ng build", "prodbuild": "ng build --prod", - "test": "ng test", "lint": "ng lint && stylelint './projects/**/*.scss' --syntax scss", - "e2e": "ng e2e", - "proto": "./etc/generate-grpc.sh || echo 'could not generate grpc'" + "postinstall": "../build/console/generate-grpc.sh" }, "private": true, "dependencies": { diff --git a/console/src/app/proto/generated/auth_grpc_web_pb.d.ts b/console/src/app/proto/generated/auth_grpc_web_pb.d.ts deleted file mode 100644 index 92fe709f34..0000000000 --- a/console/src/app/proto/generated/auth_grpc_web_pb.d.ts +++ /dev/null @@ -1,402 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as google_api_annotations_pb from './google/api/annotations_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; -import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as validate_validate_pb from './validate/validate_pb'; -import * as protoc$gen$swagger_options_annotations_pb from './protoc-gen-swagger/options/annotations_pb'; -import * as authoption_options_pb from './authoption/options_pb'; - -import { - Changes, - ChangesRequest, - MfaOtpResponse, - MultiFactors, - MyPermissions, - MyProjectOrgSearchRequest, - MyProjectOrgSearchResponse, - PasswordChange, - PasswordComplexityPolicy, - UpdateUserAddressRequest, - UpdateUserEmailRequest, - UpdateUserPhoneRequest, - UpdateUserProfileRequest, - UserAddress, - UserAddressView, - UserEmail, - UserEmailView, - UserGrantSearchRequest, - UserGrantSearchResponse, - UserPhone, - UserPhoneView, - UserProfile, - UserProfileView, - UserSessionViews, - UserView, - VerifyMfaOtp, - VerifyMyUserEmailRequest, - VerifyUserPhoneRequest} from './auth_pb'; - -export class AuthServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: string; }); - - healthz( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - ready( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - validate( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_struct_pb.Struct) => void - ): grpcWeb.ClientReadableStream; - - getMyUserSessions( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserSessionViews) => void - ): grpcWeb.ClientReadableStream; - - getMyUser( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserView) => void - ): grpcWeb.ClientReadableStream; - - getMyUserProfile( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserProfileView) => void - ): grpcWeb.ClientReadableStream; - - updateMyUserProfile( - request: UpdateUserProfileRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserProfile) => void - ): grpcWeb.ClientReadableStream; - - getMyUserEmail( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserEmailView) => void - ): grpcWeb.ClientReadableStream; - - changeMyUserEmail( - request: UpdateUserEmailRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserEmail) => void - ): grpcWeb.ClientReadableStream; - - verifyMyUserEmail( - request: VerifyMyUserEmailRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - resendMyEmailVerificationMail( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getMyUserPhone( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserPhoneView) => void - ): grpcWeb.ClientReadableStream; - - changeMyUserPhone( - request: UpdateUserPhoneRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserPhone) => void - ): grpcWeb.ClientReadableStream; - - removeMyUserPhone( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - verifyMyUserPhone( - request: VerifyUserPhoneRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - resendMyPhoneVerificationCode( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getMyUserAddress( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserAddressView) => void - ): grpcWeb.ClientReadableStream; - - getMyUserChanges( - request: ChangesRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Changes) => void - ): grpcWeb.ClientReadableStream; - - updateMyUserAddress( - request: UpdateUserAddressRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserAddress) => void - ): grpcWeb.ClientReadableStream; - - getMyMfas( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: MultiFactors) => void - ): grpcWeb.ClientReadableStream; - - changeMyPassword( - request: PasswordChange, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getMyPasswordComplexityPolicy( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: PasswordComplexityPolicy) => void - ): grpcWeb.ClientReadableStream; - - addMfaOTP( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: MfaOtpResponse) => void - ): grpcWeb.ClientReadableStream; - - verifyMfaOTP( - request: VerifyMfaOtp, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - removeMfaOTP( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - searchMyUserGrant( - request: UserGrantSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrantSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - searchMyProjectOrgs( - request: MyProjectOrgSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: MyProjectOrgSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - getMyZitadelPermissions( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: MyPermissions) => void - ): grpcWeb.ClientReadableStream; - - getMyProjectPermissions( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: MyPermissions) => void - ): grpcWeb.ClientReadableStream; - -} - -export class AuthServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: string; }); - - healthz( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - ready( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - validate( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyUserSessions( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyUser( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyUserProfile( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - updateMyUserProfile( - request: UpdateUserProfileRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyUserEmail( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - changeMyUserEmail( - request: UpdateUserEmailRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - verifyMyUserEmail( - request: VerifyMyUserEmailRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - resendMyEmailVerificationMail( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyUserPhone( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - changeMyUserPhone( - request: UpdateUserPhoneRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - removeMyUserPhone( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - verifyMyUserPhone( - request: VerifyUserPhoneRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - resendMyPhoneVerificationCode( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyUserAddress( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyUserChanges( - request: ChangesRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateMyUserAddress( - request: UpdateUserAddressRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyMfas( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - changeMyPassword( - request: PasswordChange, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyPasswordComplexityPolicy( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - addMfaOTP( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - verifyMfaOTP( - request: VerifyMfaOtp, - metadata?: grpcWeb.Metadata - ): Promise; - - removeMfaOTP( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - searchMyUserGrant( - request: UserGrantSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - searchMyProjectOrgs( - request: MyProjectOrgSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyZitadelPermissions( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyProjectPermissions( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/console/src/app/proto/generated/auth_grpc_web_pb.js b/console/src/app/proto/generated/auth_grpc_web_pb.js deleted file mode 100644 index 6dc4c0236a..0000000000 --- a/console/src/app/proto/generated/auth_grpc_web_pb.js +++ /dev/null @@ -1,2408 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for caos.zitadel.auth.api.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var google_api_annotations_pb = require('./google/api/annotations_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') - -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js') - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var validate_validate_pb = require('./validate/validate_pb.js') - -var protoc$gen$swagger_options_annotations_pb = require('./protoc-gen-swagger/options/annotations_pb.js') - -var authoption_options_pb = require('./authoption/options_pb.js') -const proto = {}; -proto.caos = {}; -proto.caos.zitadel = {}; -proto.caos.zitadel.auth = {}; -proto.caos.zitadel.auth.api = {}; -proto.caos.zitadel.auth.api.v1 = require('./auth_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'binary'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'binary'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_AuthService_Healthz = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/Healthz', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_AuthService_Healthz = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.healthz = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/Healthz', - request, - metadata || {}, - methodDescriptor_AuthService_Healthz, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.healthz = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/Healthz', - request, - metadata || {}, - methodDescriptor_AuthService_Healthz); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_AuthService_Ready = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/Ready', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_AuthService_Ready = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.ready = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/Ready', - request, - metadata || {}, - methodDescriptor_AuthService_Ready, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.ready = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/Ready', - request, - metadata || {}, - methodDescriptor_AuthService_Ready); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Struct>} - */ -const methodDescriptor_AuthService_Validate = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/Validate', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - google_protobuf_struct_pb.Struct, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_struct_pb.Struct.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Struct>} - */ -const methodInfo_AuthService_Validate = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_struct_pb.Struct, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_struct_pb.Struct.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Struct)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.validate = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/Validate', - request, - metadata || {}, - methodDescriptor_AuthService_Validate, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.validate = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/Validate', - request, - metadata || {}, - methodDescriptor_AuthService_Validate); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserSessionViews>} - */ -const methodDescriptor_AuthService_GetMyUserSessions = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserSessions', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.auth.api.v1.UserSessionViews, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserSessionViews.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserSessionViews>} - */ -const methodInfo_AuthService_GetMyUserSessions = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.UserSessionViews, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserSessionViews.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.UserSessionViews)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.getMyUserSessions = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserSessions', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserSessions, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.getMyUserSessions = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserSessions', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserSessions); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserView>} - */ -const methodDescriptor_AuthService_GetMyUser = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/GetMyUser', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.auth.api.v1.UserView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserView>} - */ -const methodInfo_AuthService_GetMyUser = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.UserView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserView.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.UserView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.getMyUser = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUser', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUser, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.getMyUser = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUser', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUser); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserProfileView>} - */ -const methodDescriptor_AuthService_GetMyUserProfile = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserProfile', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.auth.api.v1.UserProfileView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserProfileView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserProfileView>} - */ -const methodInfo_AuthService_GetMyUserProfile = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.UserProfileView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserProfileView.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.UserProfileView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.getMyUserProfile = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserProfile', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserProfile, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.getMyUserProfile = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserProfile', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserProfile); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest, - * !proto.caos.zitadel.auth.api.v1.UserProfile>} - */ -const methodDescriptor_AuthService_UpdateMyUserProfile = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserProfile', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest, - proto.caos.zitadel.auth.api.v1.UserProfile, - /** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserProfile.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest, - * !proto.caos.zitadel.auth.api.v1.UserProfile>} - */ -const methodInfo_AuthService_UpdateMyUserProfile = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.UserProfile, - /** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserProfile.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.UserProfile)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.updateMyUserProfile = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserProfile', - request, - metadata || {}, - methodDescriptor_AuthService_UpdateMyUserProfile, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.updateMyUserProfile = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserProfile', - request, - metadata || {}, - methodDescriptor_AuthService_UpdateMyUserProfile); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserEmailView>} - */ -const methodDescriptor_AuthService_GetMyUserEmail = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserEmail', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.auth.api.v1.UserEmailView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserEmailView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserEmailView>} - */ -const methodInfo_AuthService_GetMyUserEmail = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.UserEmailView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserEmailView.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.UserEmailView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.getMyUserEmail = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserEmail', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserEmail, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.getMyUserEmail = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserEmail', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserEmail); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest, - * !proto.caos.zitadel.auth.api.v1.UserEmail>} - */ -const methodDescriptor_AuthService_ChangeMyUserEmail = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserEmail', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest, - proto.caos.zitadel.auth.api.v1.UserEmail, - /** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserEmail.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest, - * !proto.caos.zitadel.auth.api.v1.UserEmail>} - */ -const methodInfo_AuthService_ChangeMyUserEmail = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.UserEmail, - /** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserEmail.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.UserEmail)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.changeMyUserEmail = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserEmail', - request, - metadata || {}, - methodDescriptor_AuthService_ChangeMyUserEmail, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.changeMyUserEmail = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserEmail', - request, - metadata || {}, - methodDescriptor_AuthService_ChangeMyUserEmail); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_AuthService_VerifyMyUserEmail = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserEmail', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_AuthService_VerifyMyUserEmail = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.verifyMyUserEmail = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserEmail', - request, - metadata || {}, - methodDescriptor_AuthService_VerifyMyUserEmail, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.verifyMyUserEmail = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserEmail', - request, - metadata || {}, - methodDescriptor_AuthService_VerifyMyUserEmail); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_AuthService_ResendMyEmailVerificationMail = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/ResendMyEmailVerificationMail', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_AuthService_ResendMyEmailVerificationMail = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.resendMyEmailVerificationMail = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/ResendMyEmailVerificationMail', - request, - metadata || {}, - methodDescriptor_AuthService_ResendMyEmailVerificationMail, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.resendMyEmailVerificationMail = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/ResendMyEmailVerificationMail', - request, - metadata || {}, - methodDescriptor_AuthService_ResendMyEmailVerificationMail); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserPhoneView>} - */ -const methodDescriptor_AuthService_GetMyUserPhone = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserPhone', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.auth.api.v1.UserPhoneView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserPhoneView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserPhoneView>} - */ -const methodInfo_AuthService_GetMyUserPhone = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.UserPhoneView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserPhoneView.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.UserPhoneView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.getMyUserPhone = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserPhone', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserPhone, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.getMyUserPhone = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserPhone', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserPhone); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest, - * !proto.caos.zitadel.auth.api.v1.UserPhone>} - */ -const methodDescriptor_AuthService_ChangeMyUserPhone = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserPhone', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest, - proto.caos.zitadel.auth.api.v1.UserPhone, - /** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserPhone.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest, - * !proto.caos.zitadel.auth.api.v1.UserPhone>} - */ -const methodInfo_AuthService_ChangeMyUserPhone = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.UserPhone, - /** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserPhone.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.UserPhone)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.changeMyUserPhone = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserPhone', - request, - metadata || {}, - methodDescriptor_AuthService_ChangeMyUserPhone, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.changeMyUserPhone = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserPhone', - request, - metadata || {}, - methodDescriptor_AuthService_ChangeMyUserPhone); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_AuthService_RemoveMyUserPhone = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/RemoveMyUserPhone', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_AuthService_RemoveMyUserPhone = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.removeMyUserPhone = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/RemoveMyUserPhone', - request, - metadata || {}, - methodDescriptor_AuthService_RemoveMyUserPhone, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.removeMyUserPhone = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/RemoveMyUserPhone', - request, - metadata || {}, - methodDescriptor_AuthService_RemoveMyUserPhone); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_AuthService_VerifyMyUserPhone = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserPhone', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_AuthService_VerifyMyUserPhone = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.verifyMyUserPhone = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserPhone', - request, - metadata || {}, - methodDescriptor_AuthService_VerifyMyUserPhone, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.verifyMyUserPhone = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserPhone', - request, - metadata || {}, - methodDescriptor_AuthService_VerifyMyUserPhone); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_AuthService_ResendMyPhoneVerificationCode = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/ResendMyPhoneVerificationCode', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_AuthService_ResendMyPhoneVerificationCode = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.resendMyPhoneVerificationCode = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/ResendMyPhoneVerificationCode', - request, - metadata || {}, - methodDescriptor_AuthService_ResendMyPhoneVerificationCode, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.resendMyPhoneVerificationCode = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/ResendMyPhoneVerificationCode', - request, - metadata || {}, - methodDescriptor_AuthService_ResendMyPhoneVerificationCode); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserAddressView>} - */ -const methodDescriptor_AuthService_GetMyUserAddress = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserAddress', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.auth.api.v1.UserAddressView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserAddressView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.UserAddressView>} - */ -const methodInfo_AuthService_GetMyUserAddress = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.UserAddressView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserAddressView.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.UserAddressView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.getMyUserAddress = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserAddress', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserAddress, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.getMyUserAddress = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserAddress', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserAddress); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.auth.api.v1.ChangesRequest, - * !proto.caos.zitadel.auth.api.v1.Changes>} - */ -const methodDescriptor_AuthService_GetMyUserChanges = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserChanges', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.auth.api.v1.ChangesRequest, - proto.caos.zitadel.auth.api.v1.Changes, - /** - * @param {!proto.caos.zitadel.auth.api.v1.ChangesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.Changes.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.auth.api.v1.ChangesRequest, - * !proto.caos.zitadel.auth.api.v1.Changes>} - */ -const methodInfo_AuthService_GetMyUserChanges = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.Changes, - /** - * @param {!proto.caos.zitadel.auth.api.v1.ChangesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.Changes.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.ChangesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.Changes)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.getMyUserChanges = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserChanges', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserChanges, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.ChangesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.getMyUserChanges = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyUserChanges', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyUserChanges); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest, - * !proto.caos.zitadel.auth.api.v1.UserAddress>} - */ -const methodDescriptor_AuthService_UpdateMyUserAddress = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserAddress', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest, - proto.caos.zitadel.auth.api.v1.UserAddress, - /** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserAddress.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest, - * !proto.caos.zitadel.auth.api.v1.UserAddress>} - */ -const methodInfo_AuthService_UpdateMyUserAddress = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.UserAddress, - /** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserAddress.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.UserAddress)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.updateMyUserAddress = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserAddress', - request, - metadata || {}, - methodDescriptor_AuthService_UpdateMyUserAddress, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.updateMyUserAddress = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserAddress', - request, - metadata || {}, - methodDescriptor_AuthService_UpdateMyUserAddress); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.MultiFactors>} - */ -const methodDescriptor_AuthService_GetMyMfas = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/GetMyMfas', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.auth.api.v1.MultiFactors, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.MultiFactors.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.MultiFactors>} - */ -const methodInfo_AuthService_GetMyMfas = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.MultiFactors, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.MultiFactors.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.MultiFactors)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.getMyMfas = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyMfas', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyMfas, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.getMyMfas = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyMfas', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyMfas); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.auth.api.v1.PasswordChange, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_AuthService_ChangeMyPassword = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/ChangeMyPassword', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.auth.api.v1.PasswordChange, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.auth.api.v1.PasswordChange} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.auth.api.v1.PasswordChange, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_AuthService_ChangeMyPassword = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.auth.api.v1.PasswordChange} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.PasswordChange} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.changeMyPassword = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/ChangeMyPassword', - request, - metadata || {}, - methodDescriptor_AuthService_ChangeMyPassword, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.PasswordChange} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.changeMyPassword = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/ChangeMyPassword', - request, - metadata || {}, - methodDescriptor_AuthService_ChangeMyPassword); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy>} - */ -const methodDescriptor_AuthService_GetMyPasswordComplexityPolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/GetMyPasswordComplexityPolicy', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy>} - */ -const methodInfo_AuthService_GetMyPasswordComplexityPolicy = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.getMyPasswordComplexityPolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyPasswordComplexityPolicy', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyPasswordComplexityPolicy, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.getMyPasswordComplexityPolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyPasswordComplexityPolicy', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyPasswordComplexityPolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.MfaOtpResponse>} - */ -const methodDescriptor_AuthService_AddMfaOTP = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/AddMfaOTP', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.auth.api.v1.MfaOtpResponse, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.MfaOtpResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.MfaOtpResponse>} - */ -const methodInfo_AuthService_AddMfaOTP = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.MfaOtpResponse, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.MfaOtpResponse.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.MfaOtpResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.addMfaOTP = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/AddMfaOTP', - request, - metadata || {}, - methodDescriptor_AuthService_AddMfaOTP, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.addMfaOTP = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/AddMfaOTP', - request, - metadata || {}, - methodDescriptor_AuthService_AddMfaOTP); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.auth.api.v1.VerifyMfaOtp, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_AuthService_VerifyMfaOTP = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/VerifyMfaOTP', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.auth.api.v1.VerifyMfaOtp, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMfaOtp} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.auth.api.v1.VerifyMfaOtp, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_AuthService_VerifyMfaOTP = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMfaOtp} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMfaOtp} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.verifyMfaOTP = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/VerifyMfaOTP', - request, - metadata || {}, - methodDescriptor_AuthService_VerifyMfaOTP, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMfaOtp} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.verifyMfaOTP = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/VerifyMfaOTP', - request, - metadata || {}, - methodDescriptor_AuthService_VerifyMfaOTP); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_AuthService_RemoveMfaOTP = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/RemoveMfaOTP', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_AuthService_RemoveMfaOTP = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.removeMfaOTP = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/RemoveMfaOTP', - request, - metadata || {}, - methodDescriptor_AuthService_RemoveMfaOTP, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.removeMfaOTP = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/RemoveMfaOTP', - request, - metadata || {}, - methodDescriptor_AuthService_RemoveMfaOTP); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest, - * !proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse>} - */ -const methodDescriptor_AuthService_SearchMyUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/SearchMyUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest, - proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest, - * !proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse>} - */ -const methodInfo_AuthService_SearchMyUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.searchMyUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/SearchMyUserGrant', - request, - metadata || {}, - methodDescriptor_AuthService_SearchMyUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.searchMyUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/SearchMyUserGrant', - request, - metadata || {}, - methodDescriptor_AuthService_SearchMyUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest, - * !proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse>} - */ -const methodDescriptor_AuthService_SearchMyProjectOrgs = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/SearchMyProjectOrgs', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest, - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse, - /** - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest, - * !proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse>} - */ -const methodInfo_AuthService_SearchMyProjectOrgs = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse, - /** - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.searchMyProjectOrgs = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/SearchMyProjectOrgs', - request, - metadata || {}, - methodDescriptor_AuthService_SearchMyProjectOrgs, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.searchMyProjectOrgs = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/SearchMyProjectOrgs', - request, - metadata || {}, - methodDescriptor_AuthService_SearchMyProjectOrgs); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.MyPermissions>} - */ -const methodDescriptor_AuthService_GetMyZitadelPermissions = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/GetMyZitadelPermissions', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.auth.api.v1.MyPermissions, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.MyPermissions.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.MyPermissions>} - */ -const methodInfo_AuthService_GetMyZitadelPermissions = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.MyPermissions, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.MyPermissions.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.MyPermissions)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.getMyZitadelPermissions = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyZitadelPermissions', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyZitadelPermissions, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.getMyZitadelPermissions = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyZitadelPermissions', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyZitadelPermissions); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.MyPermissions>} - */ -const methodDescriptor_AuthService_GetMyProjectPermissions = new grpc.web.MethodDescriptor( - '/caos.zitadel.auth.api.v1.AuthService/GetMyProjectPermissions', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.auth.api.v1.MyPermissions, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.MyPermissions.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.auth.api.v1.MyPermissions>} - */ -const methodInfo_AuthService_GetMyProjectPermissions = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.auth.api.v1.MyPermissions, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.auth.api.v1.MyPermissions.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.auth.api.v1.MyPermissions)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.auth.api.v1.AuthServiceClient.prototype.getMyProjectPermissions = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyProjectPermissions', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyProjectPermissions, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.auth.api.v1.AuthServicePromiseClient.prototype.getMyProjectPermissions = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.auth.api.v1.AuthService/GetMyProjectPermissions', - request, - metadata || {}, - methodDescriptor_AuthService_GetMyProjectPermissions); -}; - - -module.exports = proto.caos.zitadel.auth.api.v1; - diff --git a/console/src/app/proto/generated/auth_pb.d.ts b/console/src/app/proto/generated/auth_pb.d.ts deleted file mode 100644 index e8fcf60161..0000000000 --- a/console/src/app/proto/generated/auth_pb.d.ts +++ /dev/null @@ -1,1419 +0,0 @@ -import * as jspb from "google-protobuf" - -import * as google_api_annotations_pb from './google/api/annotations_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; -import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as validate_validate_pb from './validate/validate_pb'; -import * as protoc$gen$swagger_options_annotations_pb from './protoc-gen-swagger/options/annotations_pb'; -import * as authoption_options_pb from './authoption/options_pb'; - -export class UserSessionViews extends jspb.Message { - getUserSessionsList(): Array; - setUserSessionsList(value: Array): void; - clearUserSessionsList(): void; - addUserSessions(value?: UserSessionView, index?: number): UserSessionView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserSessionViews.AsObject; - static toObject(includeInstance: boolean, msg: UserSessionViews): UserSessionViews.AsObject; - static serializeBinaryToWriter(message: UserSessionViews, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserSessionViews; - static deserializeBinaryFromReader(message: UserSessionViews, reader: jspb.BinaryReader): UserSessionViews; -} - -export namespace UserSessionViews { - export type AsObject = { - userSessionsList: Array, - } -} - -export class UserSessionView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getAgentId(): string; - setAgentId(value: string): void; - - getAuthState(): UserSessionState; - setAuthState(value: UserSessionState): void; - - getUserId(): string; - setUserId(value: string): void; - - getUserName(): string; - setUserName(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getLoginName(): string; - setLoginName(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserSessionView.AsObject; - static toObject(includeInstance: boolean, msg: UserSessionView): UserSessionView.AsObject; - static serializeBinaryToWriter(message: UserSessionView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserSessionView; - static deserializeBinaryFromReader(message: UserSessionView, reader: jspb.BinaryReader): UserSessionView; -} - -export namespace UserSessionView { - export type AsObject = { - id: string, - agentId: string, - authState: UserSessionState, - userId: string, - userName: string, - sequence: number, - loginName: string, - displayName: string, - } -} - -export class UserView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getState(): UserState; - setState(value: UserState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getLastLogin(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastLogin(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasLastLogin(): boolean; - clearLastLogin(): void; - - getPasswordChanged(): google_protobuf_timestamp_pb.Timestamp | undefined; - setPasswordChanged(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasPasswordChanged(): boolean; - clearPasswordChanged(): void; - - getUserName(): string; - setUserName(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getNickName(): string; - setNickName(value: string): void; - - getPreferredLanguage(): string; - setPreferredLanguage(value: string): void; - - getGender(): Gender; - setGender(value: Gender): void; - - getEmail(): string; - setEmail(value: string): void; - - getIsEmailVerified(): boolean; - setIsEmailVerified(value: boolean): void; - - getPhone(): string; - setPhone(value: string): void; - - getIsPhoneVerified(): boolean; - setIsPhoneVerified(value: boolean): void; - - getCountry(): string; - setCountry(value: string): void; - - getLocality(): string; - setLocality(value: string): void; - - getPostalCode(): string; - setPostalCode(value: string): void; - - getRegion(): string; - setRegion(value: string): void; - - getStreetAddress(): string; - setStreetAddress(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getResourceOwner(): string; - setResourceOwner(value: string): void; - - getLoginNamesList(): Array; - setLoginNamesList(value: Array): void; - clearLoginNamesList(): void; - addLoginNames(value: string, index?: number): void; - - getPreferredLoginName(): string; - setPreferredLoginName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserView.AsObject; - static toObject(includeInstance: boolean, msg: UserView): UserView.AsObject; - static serializeBinaryToWriter(message: UserView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserView; - static deserializeBinaryFromReader(message: UserView, reader: jspb.BinaryReader): UserView; -} - -export namespace UserView { - export type AsObject = { - id: string, - state: UserState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastLogin?: google_protobuf_timestamp_pb.Timestamp.AsObject, - passwordChanged?: google_protobuf_timestamp_pb.Timestamp.AsObject, - userName: string, - firstName: string, - lastName: string, - displayName: string, - nickName: string, - preferredLanguage: string, - gender: Gender, - email: string, - isEmailVerified: boolean, - phone: string, - isPhoneVerified: boolean, - country: string, - locality: string, - postalCode: string, - region: string, - streetAddress: string, - sequence: number, - resourceOwner: string, - loginNamesList: Array, - preferredLoginName: string, - } -} - -export class UserProfile extends jspb.Message { - getId(): string; - setId(value: string): void; - - getUserName(): string; - setUserName(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getNickName(): string; - setNickName(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getPreferredLanguage(): string; - setPreferredLanguage(value: string): void; - - getGender(): Gender; - setGender(value: Gender): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserProfile.AsObject; - static toObject(includeInstance: boolean, msg: UserProfile): UserProfile.AsObject; - static serializeBinaryToWriter(message: UserProfile, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserProfile; - static deserializeBinaryFromReader(message: UserProfile, reader: jspb.BinaryReader): UserProfile; -} - -export namespace UserProfile { - export type AsObject = { - id: string, - userName: string, - firstName: string, - lastName: string, - nickName: string, - displayName: string, - preferredLanguage: string, - gender: Gender, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UserProfileView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getUserName(): string; - setUserName(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getNickName(): string; - setNickName(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getPreferredLanguage(): string; - setPreferredLanguage(value: string): void; - - getGender(): Gender; - setGender(value: Gender): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getLoginNamesList(): Array; - setLoginNamesList(value: Array): void; - clearLoginNamesList(): void; - addLoginNames(value: string, index?: number): void; - - getPreferredLoginName(): string; - setPreferredLoginName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserProfileView.AsObject; - static toObject(includeInstance: boolean, msg: UserProfileView): UserProfileView.AsObject; - static serializeBinaryToWriter(message: UserProfileView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserProfileView; - static deserializeBinaryFromReader(message: UserProfileView, reader: jspb.BinaryReader): UserProfileView; -} - -export namespace UserProfileView { - export type AsObject = { - id: string, - userName: string, - firstName: string, - lastName: string, - nickName: string, - displayName: string, - preferredLanguage: string, - gender: Gender, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - loginNamesList: Array, - preferredLoginName: string, - } -} - -export class UpdateUserProfileRequest extends jspb.Message { - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getNickName(): string; - setNickName(value: string): void; - - getPreferredLanguage(): string; - setPreferredLanguage(value: string): void; - - getGender(): Gender; - setGender(value: Gender): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserProfileRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserProfileRequest): UpdateUserProfileRequest.AsObject; - static serializeBinaryToWriter(message: UpdateUserProfileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserProfileRequest; - static deserializeBinaryFromReader(message: UpdateUserProfileRequest, reader: jspb.BinaryReader): UpdateUserProfileRequest; -} - -export namespace UpdateUserProfileRequest { - export type AsObject = { - firstName: string, - lastName: string, - nickName: string, - preferredLanguage: string, - gender: Gender, - } -} - -export class UserEmail extends jspb.Message { - getId(): string; - setId(value: string): void; - - getEmail(): string; - setEmail(value: string): void; - - getIsemailverified(): boolean; - setIsemailverified(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserEmail.AsObject; - static toObject(includeInstance: boolean, msg: UserEmail): UserEmail.AsObject; - static serializeBinaryToWriter(message: UserEmail, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserEmail; - static deserializeBinaryFromReader(message: UserEmail, reader: jspb.BinaryReader): UserEmail; -} - -export namespace UserEmail { - export type AsObject = { - id: string, - email: string, - isemailverified: boolean, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UserEmailView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getEmail(): string; - setEmail(value: string): void; - - getIsemailverified(): boolean; - setIsemailverified(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserEmailView.AsObject; - static toObject(includeInstance: boolean, msg: UserEmailView): UserEmailView.AsObject; - static serializeBinaryToWriter(message: UserEmailView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserEmailView; - static deserializeBinaryFromReader(message: UserEmailView, reader: jspb.BinaryReader): UserEmailView; -} - -export namespace UserEmailView { - export type AsObject = { - id: string, - email: string, - isemailverified: boolean, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class VerifyMyUserEmailRequest extends jspb.Message { - getCode(): string; - setCode(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VerifyMyUserEmailRequest.AsObject; - static toObject(includeInstance: boolean, msg: VerifyMyUserEmailRequest): VerifyMyUserEmailRequest.AsObject; - static serializeBinaryToWriter(message: VerifyMyUserEmailRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VerifyMyUserEmailRequest; - static deserializeBinaryFromReader(message: VerifyMyUserEmailRequest, reader: jspb.BinaryReader): VerifyMyUserEmailRequest; -} - -export namespace VerifyMyUserEmailRequest { - export type AsObject = { - code: string, - } -} - -export class VerifyUserEmailRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - getCode(): string; - setCode(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VerifyUserEmailRequest.AsObject; - static toObject(includeInstance: boolean, msg: VerifyUserEmailRequest): VerifyUserEmailRequest.AsObject; - static serializeBinaryToWriter(message: VerifyUserEmailRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VerifyUserEmailRequest; - static deserializeBinaryFromReader(message: VerifyUserEmailRequest, reader: jspb.BinaryReader): VerifyUserEmailRequest; -} - -export namespace VerifyUserEmailRequest { - export type AsObject = { - id: string, - code: string, - } -} - -export class UpdateUserEmailRequest extends jspb.Message { - getEmail(): string; - setEmail(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserEmailRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserEmailRequest): UpdateUserEmailRequest.AsObject; - static serializeBinaryToWriter(message: UpdateUserEmailRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserEmailRequest; - static deserializeBinaryFromReader(message: UpdateUserEmailRequest, reader: jspb.BinaryReader): UpdateUserEmailRequest; -} - -export namespace UpdateUserEmailRequest { - export type AsObject = { - email: string, - } -} - -export class UserPhone extends jspb.Message { - getId(): string; - setId(value: string): void; - - getPhone(): string; - setPhone(value: string): void; - - getIsPhoneVerified(): boolean; - setIsPhoneVerified(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserPhone.AsObject; - static toObject(includeInstance: boolean, msg: UserPhone): UserPhone.AsObject; - static serializeBinaryToWriter(message: UserPhone, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserPhone; - static deserializeBinaryFromReader(message: UserPhone, reader: jspb.BinaryReader): UserPhone; -} - -export namespace UserPhone { - export type AsObject = { - id: string, - phone: string, - isPhoneVerified: boolean, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UserPhoneView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getPhone(): string; - setPhone(value: string): void; - - getIsPhoneVerified(): boolean; - setIsPhoneVerified(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserPhoneView.AsObject; - static toObject(includeInstance: boolean, msg: UserPhoneView): UserPhoneView.AsObject; - static serializeBinaryToWriter(message: UserPhoneView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserPhoneView; - static deserializeBinaryFromReader(message: UserPhoneView, reader: jspb.BinaryReader): UserPhoneView; -} - -export namespace UserPhoneView { - export type AsObject = { - id: string, - phone: string, - isPhoneVerified: boolean, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateUserPhoneRequest extends jspb.Message { - getPhone(): string; - setPhone(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserPhoneRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserPhoneRequest): UpdateUserPhoneRequest.AsObject; - static serializeBinaryToWriter(message: UpdateUserPhoneRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserPhoneRequest; - static deserializeBinaryFromReader(message: UpdateUserPhoneRequest, reader: jspb.BinaryReader): UpdateUserPhoneRequest; -} - -export namespace UpdateUserPhoneRequest { - export type AsObject = { - phone: string, - } -} - -export class VerifyUserPhoneRequest extends jspb.Message { - getCode(): string; - setCode(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VerifyUserPhoneRequest.AsObject; - static toObject(includeInstance: boolean, msg: VerifyUserPhoneRequest): VerifyUserPhoneRequest.AsObject; - static serializeBinaryToWriter(message: VerifyUserPhoneRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VerifyUserPhoneRequest; - static deserializeBinaryFromReader(message: VerifyUserPhoneRequest, reader: jspb.BinaryReader): VerifyUserPhoneRequest; -} - -export namespace VerifyUserPhoneRequest { - export type AsObject = { - code: string, - } -} - -export class UserAddress extends jspb.Message { - getId(): string; - setId(value: string): void; - - getCountry(): string; - setCountry(value: string): void; - - getLocality(): string; - setLocality(value: string): void; - - getPostalCode(): string; - setPostalCode(value: string): void; - - getRegion(): string; - setRegion(value: string): void; - - getStreetAddress(): string; - setStreetAddress(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserAddress.AsObject; - static toObject(includeInstance: boolean, msg: UserAddress): UserAddress.AsObject; - static serializeBinaryToWriter(message: UserAddress, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserAddress; - static deserializeBinaryFromReader(message: UserAddress, reader: jspb.BinaryReader): UserAddress; -} - -export namespace UserAddress { - export type AsObject = { - id: string, - country: string, - locality: string, - postalCode: string, - region: string, - streetAddress: string, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UserAddressView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getCountry(): string; - setCountry(value: string): void; - - getLocality(): string; - setLocality(value: string): void; - - getPostalCode(): string; - setPostalCode(value: string): void; - - getRegion(): string; - setRegion(value: string): void; - - getStreetAddress(): string; - setStreetAddress(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserAddressView.AsObject; - static toObject(includeInstance: boolean, msg: UserAddressView): UserAddressView.AsObject; - static serializeBinaryToWriter(message: UserAddressView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserAddressView; - static deserializeBinaryFromReader(message: UserAddressView, reader: jspb.BinaryReader): UserAddressView; -} - -export namespace UserAddressView { - export type AsObject = { - id: string, - country: string, - locality: string, - postalCode: string, - region: string, - streetAddress: string, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateUserAddressRequest extends jspb.Message { - getCountry(): string; - setCountry(value: string): void; - - getLocality(): string; - setLocality(value: string): void; - - getPostalCode(): string; - setPostalCode(value: string): void; - - getRegion(): string; - setRegion(value: string): void; - - getStreetAddress(): string; - setStreetAddress(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserAddressRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserAddressRequest): UpdateUserAddressRequest.AsObject; - static serializeBinaryToWriter(message: UpdateUserAddressRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserAddressRequest; - static deserializeBinaryFromReader(message: UpdateUserAddressRequest, reader: jspb.BinaryReader): UpdateUserAddressRequest; -} - -export namespace UpdateUserAddressRequest { - export type AsObject = { - country: string, - locality: string, - postalCode: string, - region: string, - streetAddress: string, - } -} - -export class PasswordID extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordID.AsObject; - static toObject(includeInstance: boolean, msg: PasswordID): PasswordID.AsObject; - static serializeBinaryToWriter(message: PasswordID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordID; - static deserializeBinaryFromReader(message: PasswordID, reader: jspb.BinaryReader): PasswordID; -} - -export namespace PasswordID { - export type AsObject = { - id: string, - } -} - -export class PasswordRequest extends jspb.Message { - getPassword(): string; - setPassword(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordRequest.AsObject; - static toObject(includeInstance: boolean, msg: PasswordRequest): PasswordRequest.AsObject; - static serializeBinaryToWriter(message: PasswordRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordRequest; - static deserializeBinaryFromReader(message: PasswordRequest, reader: jspb.BinaryReader): PasswordRequest; -} - -export namespace PasswordRequest { - export type AsObject = { - password: string, - } -} - -export class PasswordChange extends jspb.Message { - getOldPassword(): string; - setOldPassword(value: string): void; - - getNewPassword(): string; - setNewPassword(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordChange.AsObject; - static toObject(includeInstance: boolean, msg: PasswordChange): PasswordChange.AsObject; - static serializeBinaryToWriter(message: PasswordChange, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordChange; - static deserializeBinaryFromReader(message: PasswordChange, reader: jspb.BinaryReader): PasswordChange; -} - -export namespace PasswordChange { - export type AsObject = { - oldPassword: string, - newPassword: string, - } -} - -export class VerifyMfaOtp extends jspb.Message { - getCode(): string; - setCode(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VerifyMfaOtp.AsObject; - static toObject(includeInstance: boolean, msg: VerifyMfaOtp): VerifyMfaOtp.AsObject; - static serializeBinaryToWriter(message: VerifyMfaOtp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VerifyMfaOtp; - static deserializeBinaryFromReader(message: VerifyMfaOtp, reader: jspb.BinaryReader): VerifyMfaOtp; -} - -export namespace VerifyMfaOtp { - export type AsObject = { - code: string, - } -} - -export class MultiFactors extends jspb.Message { - getMfasList(): Array; - setMfasList(value: Array): void; - clearMfasList(): void; - addMfas(value?: MultiFactor, index?: number): MultiFactor; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiFactors.AsObject; - static toObject(includeInstance: boolean, msg: MultiFactors): MultiFactors.AsObject; - static serializeBinaryToWriter(message: MultiFactors, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiFactors; - static deserializeBinaryFromReader(message: MultiFactors, reader: jspb.BinaryReader): MultiFactors; -} - -export namespace MultiFactors { - export type AsObject = { - mfasList: Array, - } -} - -export class MultiFactor extends jspb.Message { - getType(): MfaType; - setType(value: MfaType): void; - - getState(): MFAState; - setState(value: MFAState): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiFactor.AsObject; - static toObject(includeInstance: boolean, msg: MultiFactor): MultiFactor.AsObject; - static serializeBinaryToWriter(message: MultiFactor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiFactor; - static deserializeBinaryFromReader(message: MultiFactor, reader: jspb.BinaryReader): MultiFactor; -} - -export namespace MultiFactor { - export type AsObject = { - type: MfaType, - state: MFAState, - } -} - -export class MfaOtpResponse extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getUrl(): string; - setUrl(value: string): void; - - getSecret(): string; - setSecret(value: string): void; - - getState(): MFAState; - setState(value: MFAState): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MfaOtpResponse.AsObject; - static toObject(includeInstance: boolean, msg: MfaOtpResponse): MfaOtpResponse.AsObject; - static serializeBinaryToWriter(message: MfaOtpResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MfaOtpResponse; - static deserializeBinaryFromReader(message: MfaOtpResponse, reader: jspb.BinaryReader): MfaOtpResponse; -} - -export namespace MfaOtpResponse { - export type AsObject = { - userId: string, - url: string, - secret: string, - state: MFAState, - } -} - -export class OIDCClientAuth extends jspb.Message { - getClientId(): string; - setClientId(value: string): void; - - getClientSecret(): string; - setClientSecret(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OIDCClientAuth.AsObject; - static toObject(includeInstance: boolean, msg: OIDCClientAuth): OIDCClientAuth.AsObject; - static serializeBinaryToWriter(message: OIDCClientAuth, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OIDCClientAuth; - static deserializeBinaryFromReader(message: OIDCClientAuth, reader: jspb.BinaryReader): OIDCClientAuth; -} - -export namespace OIDCClientAuth { - export type AsObject = { - clientId: string, - clientSecret: string, - } -} - -export class UserGrantSearchRequest extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getSortingColumn(): UserGrantSearchKey; - setSortingColumn(value: UserGrantSearchKey): void; - - getAsc(): boolean; - setAsc(value: boolean): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: UserGrantSearchQuery, index?: number): UserGrantSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantSearchRequest): UserGrantSearchRequest.AsObject; - static serializeBinaryToWriter(message: UserGrantSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantSearchRequest; - static deserializeBinaryFromReader(message: UserGrantSearchRequest, reader: jspb.BinaryReader): UserGrantSearchRequest; -} - -export namespace UserGrantSearchRequest { - export type AsObject = { - offset: number, - limit: number, - sortingColumn: UserGrantSearchKey, - asc: boolean, - queriesList: Array, - } -} - -export class UserGrantSearchQuery extends jspb.Message { - getKey(): UserGrantSearchKey; - setKey(value: UserGrantSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantSearchQuery): UserGrantSearchQuery.AsObject; - static serializeBinaryToWriter(message: UserGrantSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantSearchQuery; - static deserializeBinaryFromReader(message: UserGrantSearchQuery, reader: jspb.BinaryReader): UserGrantSearchQuery; -} - -export namespace UserGrantSearchQuery { - export type AsObject = { - key: UserGrantSearchKey, - method: SearchMethod, - value: string, - } -} - -export class UserGrantSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: UserGrantView, index?: number): UserGrantView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantSearchResponse): UserGrantSearchResponse.AsObject; - static serializeBinaryToWriter(message: UserGrantSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantSearchResponse; - static deserializeBinaryFromReader(message: UserGrantSearchResponse, reader: jspb.BinaryReader): UserGrantSearchResponse; -} - -export namespace UserGrantSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class UserGrantView extends jspb.Message { - getOrgid(): string; - setOrgid(value: string): void; - - getProjectid(): string; - setProjectid(value: string): void; - - getUserid(): string; - setUserid(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - getOrgname(): string; - setOrgname(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantView.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantView): UserGrantView.AsObject; - static serializeBinaryToWriter(message: UserGrantView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantView; - static deserializeBinaryFromReader(message: UserGrantView, reader: jspb.BinaryReader): UserGrantView; -} - -export namespace UserGrantView { - export type AsObject = { - orgid: string, - projectid: string, - userid: string, - rolesList: Array, - orgname: string, - } -} - -export class MyProjectOrgSearchRequest extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getAsc(): boolean; - setAsc(value: boolean): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: MyProjectOrgSearchQuery, index?: number): MyProjectOrgSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MyProjectOrgSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: MyProjectOrgSearchRequest): MyProjectOrgSearchRequest.AsObject; - static serializeBinaryToWriter(message: MyProjectOrgSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MyProjectOrgSearchRequest; - static deserializeBinaryFromReader(message: MyProjectOrgSearchRequest, reader: jspb.BinaryReader): MyProjectOrgSearchRequest; -} - -export namespace MyProjectOrgSearchRequest { - export type AsObject = { - offset: number, - limit: number, - asc: boolean, - queriesList: Array, - } -} - -export class MyProjectOrgSearchQuery extends jspb.Message { - getKey(): MyProjectOrgSearchKey; - setKey(value: MyProjectOrgSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MyProjectOrgSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: MyProjectOrgSearchQuery): MyProjectOrgSearchQuery.AsObject; - static serializeBinaryToWriter(message: MyProjectOrgSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MyProjectOrgSearchQuery; - static deserializeBinaryFromReader(message: MyProjectOrgSearchQuery, reader: jspb.BinaryReader): MyProjectOrgSearchQuery; -} - -export namespace MyProjectOrgSearchQuery { - export type AsObject = { - key: MyProjectOrgSearchKey, - method: SearchMethod, - value: string, - } -} - -export class MyProjectOrgSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: Org, index?: number): Org; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MyProjectOrgSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: MyProjectOrgSearchResponse): MyProjectOrgSearchResponse.AsObject; - static serializeBinaryToWriter(message: MyProjectOrgSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MyProjectOrgSearchResponse; - static deserializeBinaryFromReader(message: MyProjectOrgSearchResponse, reader: jspb.BinaryReader): MyProjectOrgSearchResponse; -} - -export namespace MyProjectOrgSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class Org extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Org.AsObject; - static toObject(includeInstance: boolean, msg: Org): Org.AsObject; - static serializeBinaryToWriter(message: Org, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Org; - static deserializeBinaryFromReader(message: Org, reader: jspb.BinaryReader): Org; -} - -export namespace Org { - export type AsObject = { - id: string, - name: string, - } -} - -export class MyPermissions extends jspb.Message { - getPermissionsList(): Array; - setPermissionsList(value: Array): void; - clearPermissionsList(): void; - addPermissions(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MyPermissions.AsObject; - static toObject(includeInstance: boolean, msg: MyPermissions): MyPermissions.AsObject; - static serializeBinaryToWriter(message: MyPermissions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MyPermissions; - static deserializeBinaryFromReader(message: MyPermissions, reader: jspb.BinaryReader): MyPermissions; -} - -export namespace MyPermissions { - export type AsObject = { - permissionsList: Array, - } -} - -export class ChangesRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getSequenceOffset(): number; - setSequenceOffset(value: number): void; - - getAsc(): boolean; - setAsc(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChangesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ChangesRequest): ChangesRequest.AsObject; - static serializeBinaryToWriter(message: ChangesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChangesRequest; - static deserializeBinaryFromReader(message: ChangesRequest, reader: jspb.BinaryReader): ChangesRequest; -} - -export namespace ChangesRequest { - export type AsObject = { - limit: number, - sequenceOffset: number, - asc: boolean, - } -} - -export class Changes extends jspb.Message { - getChangesList(): Array; - setChangesList(value: Array): void; - clearChangesList(): void; - addChanges(value?: Change, index?: number): Change; - - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Changes.AsObject; - static toObject(includeInstance: boolean, msg: Changes): Changes.AsObject; - static serializeBinaryToWriter(message: Changes, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Changes; - static deserializeBinaryFromReader(message: Changes, reader: jspb.BinaryReader): Changes; -} - -export namespace Changes { - export type AsObject = { - changesList: Array, - offset: number, - limit: number, - } -} - -export class Change extends jspb.Message { - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getEventType(): string; - setEventType(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getEditorId(): string; - setEditorId(value: string): void; - - getEditor(): string; - setEditor(value: string): void; - - getData(): google_protobuf_struct_pb.Struct | undefined; - setData(value?: google_protobuf_struct_pb.Struct): void; - hasData(): boolean; - clearData(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Change.AsObject; - static toObject(includeInstance: boolean, msg: Change): Change.AsObject; - static serializeBinaryToWriter(message: Change, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Change; - static deserializeBinaryFromReader(message: Change, reader: jspb.BinaryReader): Change; -} - -export namespace Change { - export type AsObject = { - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - eventType: string, - sequence: number, - editorId: string, - editor: string, - data?: google_protobuf_struct_pb.Struct.AsObject, - } -} - -export class PasswordComplexityPolicy extends jspb.Message { - getId(): string; - setId(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getMinLength(): number; - setMinLength(value: number): void; - - getHasLowercase(): boolean; - setHasLowercase(value: boolean): void; - - getHasUppercase(): boolean; - setHasUppercase(value: boolean): void; - - getHasNumber(): boolean; - setHasNumber(value: boolean): void; - - getHasSymbol(): boolean; - setHasSymbol(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - getIsDefault(): boolean; - setIsDefault(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordComplexityPolicy.AsObject; - static toObject(includeInstance: boolean, msg: PasswordComplexityPolicy): PasswordComplexityPolicy.AsObject; - static serializeBinaryToWriter(message: PasswordComplexityPolicy, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordComplexityPolicy; - static deserializeBinaryFromReader(message: PasswordComplexityPolicy, reader: jspb.BinaryReader): PasswordComplexityPolicy; -} - -export namespace PasswordComplexityPolicy { - export type AsObject = { - id: string, - description: string, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - minLength: number, - hasLowercase: boolean, - hasUppercase: boolean, - hasNumber: boolean, - hasSymbol: boolean, - sequence: number, - isDefault: boolean, - } -} - -export enum UserSessionState { - USERSESSIONSTATE_UNSPECIFIED = 0, - USERSESSIONSTATE_ACTIVE = 1, - USERSESSIONSTATE_TERMINATED = 2, -} -export enum OIDCResponseType { - OIDCRESPONSETYPE_CODE = 0, - OIDCRESPONSETYPE_ID_TOKEN = 1, - OIDCRESPONSETYPE_ID_TOKEN_TOKEN = 2, -} -export enum UserState { - USERSTATE_UNSPECIFIED = 0, - USERSTATE_ACTIVE = 1, - USERSTATE_INACTIVE = 2, - USERSTATE_DELETED = 3, - USERSTATE_LOCKED = 4, - USERSTATE_SUSPEND = 5, - USERSTATE_INITIAL = 6, -} -export enum Gender { - GENDER_UNSPECIFIED = 0, - GENDER_FEMALE = 1, - GENDER_MALE = 2, - GENDER_DIVERSE = 3, -} -export enum MfaType { - MFATYPE_UNSPECIFIED = 0, - MFATYPE_SMS = 1, - MFATYPE_OTP = 2, -} -export enum MFAState { - MFASTATE_UNSPECIFIED = 0, - MFASTATE_NOT_READY = 1, - MFASTATE_READY = 2, - MFASTATE_REMOVED = 3, -} -export enum UserGrantSearchKey { - USERGRANTSEARCHKEY_UNKNOWN = 0, - USERGRANTSEARCHKEY_ORG_ID = 1, - USERGRANTSEARCHKEY_PROJECT_ID = 2, -} -export enum MyProjectOrgSearchKey { - MYPROJECTORGSEARCHKEY_UNSPECIFIED = 0, - MYPROJECTORGSEARCHKEY_ORG_NAME = 1, -} -export enum SearchMethod { - SEARCHMETHOD_EQUALS = 0, - SEARCHMETHOD_STARTS_WITH = 1, - SEARCHMETHOD_CONTAINS = 2, - SEARCHMETHOD_EQUALS_IGNORE_CASE = 3, - SEARCHMETHOD_STARTS_WITH_IGNORE_CASE = 4, - SEARCHMETHOD_CONTAINS_IGNORE_CASE = 5, -} diff --git a/console/src/app/proto/generated/auth_pb.js b/console/src/app/proto/generated/auth_pb.js deleted file mode 100644 index 298299a182..0000000000 --- a/console/src/app/proto/generated/auth_pb.js +++ /dev/null @@ -1,10608 +0,0 @@ -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('./google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var validate_validate_pb = require('./validate/validate_pb.js'); -goog.object.extend(proto, validate_validate_pb); -var protoc$gen$swagger_options_annotations_pb = require('./protoc-gen-swagger/options/annotations_pb.js'); -goog.object.extend(proto, protoc$gen$swagger_options_annotations_pb); -var authoption_options_pb = require('./authoption/options_pb.js'); -goog.object.extend(proto, authoption_options_pb); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.Change', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.Changes', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.ChangesRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.Gender', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.MFAState', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.MfaOtpResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.MfaType', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.MultiFactor', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.MultiFactors', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.MyPermissions', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.OIDCClientAuth', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.OIDCResponseType', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.Org', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.PasswordChange', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.PasswordID', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.PasswordRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.SearchMethod', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserAddress', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserAddressView', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserEmail', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserEmailView', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserGrantSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserGrantView', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserPhone', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserPhoneView', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserProfile', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserProfileView', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserSessionState', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserSessionView', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserSessionViews', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserState', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.UserView', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.VerifyMfaOtp', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserSessionViews = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.auth.api.v1.UserSessionViews.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserSessionViews, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserSessionViews.displayName = 'proto.caos.zitadel.auth.api.v1.UserSessionViews'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserSessionView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserSessionView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserSessionView.displayName = 'proto.caos.zitadel.auth.api.v1.UserSessionView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.auth.api.v1.UserView.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserView.displayName = 'proto.caos.zitadel.auth.api.v1.UserView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserProfile = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserProfile, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserProfile.displayName = 'proto.caos.zitadel.auth.api.v1.UserProfile'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserProfileView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.auth.api.v1.UserProfileView.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserProfileView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserProfileView.displayName = 'proto.caos.zitadel.auth.api.v1.UserProfileView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.displayName = 'proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserEmail = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserEmail, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserEmail.displayName = 'proto.caos.zitadel.auth.api.v1.UserEmail'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserEmailView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserEmailView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserEmailView.displayName = 'proto.caos.zitadel.auth.api.v1.UserEmailView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.displayName = 'proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.displayName = 'proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.displayName = 'proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserPhone = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserPhone, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserPhone.displayName = 'proto.caos.zitadel.auth.api.v1.UserPhone'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserPhoneView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserPhoneView.displayName = 'proto.caos.zitadel.auth.api.v1.UserPhoneView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.displayName = 'proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.displayName = 'proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserAddress = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserAddress, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserAddress.displayName = 'proto.caos.zitadel.auth.api.v1.UserAddress'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserAddressView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserAddressView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserAddressView.displayName = 'proto.caos.zitadel.auth.api.v1.UserAddressView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.displayName = 'proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.PasswordID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.PasswordID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.PasswordID.displayName = 'proto.caos.zitadel.auth.api.v1.PasswordID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.PasswordRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.PasswordRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.PasswordRequest.displayName = 'proto.caos.zitadel.auth.api.v1.PasswordRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.PasswordChange = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.PasswordChange, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.PasswordChange.displayName = 'proto.caos.zitadel.auth.api.v1.PasswordChange'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.VerifyMfaOtp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.VerifyMfaOtp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.displayName = 'proto.caos.zitadel.auth.api.v1.VerifyMfaOtp'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.MultiFactors = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.auth.api.v1.MultiFactors.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.MultiFactors, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.MultiFactors.displayName = 'proto.caos.zitadel.auth.api.v1.MultiFactors'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.MultiFactor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.MultiFactor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.MultiFactor.displayName = 'proto.caos.zitadel.auth.api.v1.MultiFactor'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.MfaOtpResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.MfaOtpResponse.displayName = 'proto.caos.zitadel.auth.api.v1.MfaOtpResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.OIDCClientAuth = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.OIDCClientAuth, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.OIDCClientAuth.displayName = 'proto.caos.zitadel.auth.api.v1.OIDCClientAuth'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.displayName = 'proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.displayName = 'proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.displayName = 'proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.UserGrantView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.auth.api.v1.UserGrantView.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.UserGrantView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.UserGrantView.displayName = 'proto.caos.zitadel.auth.api.v1.UserGrantView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.displayName = 'proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.displayName = 'proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.displayName = 'proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.Org = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.Org, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.Org.displayName = 'proto.caos.zitadel.auth.api.v1.Org'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.MyPermissions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.auth.api.v1.MyPermissions.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.MyPermissions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.MyPermissions.displayName = 'proto.caos.zitadel.auth.api.v1.MyPermissions'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.ChangesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.ChangesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.ChangesRequest.displayName = 'proto.caos.zitadel.auth.api.v1.ChangesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.Changes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.auth.api.v1.Changes.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.Changes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.Changes.displayName = 'proto.caos.zitadel.auth.api.v1.Changes'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.Change = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.Change, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.Change.displayName = 'proto.caos.zitadel.auth.api.v1.Change'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.displayName = 'proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.auth.api.v1.UserSessionViews.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserSessionViews.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserSessionViews.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserSessionViews} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserSessionViews.toObject = function(includeInstance, msg) { - var f, obj = { - userSessionsList: jspb.Message.toObjectList(msg.getUserSessionsList(), - proto.caos.zitadel.auth.api.v1.UserSessionView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserSessionViews} - */ -proto.caos.zitadel.auth.api.v1.UserSessionViews.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserSessionViews; - return proto.caos.zitadel.auth.api.v1.UserSessionViews.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserSessionViews} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserSessionViews} - */ -proto.caos.zitadel.auth.api.v1.UserSessionViews.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.caos.zitadel.auth.api.v1.UserSessionView; - reader.readMessage(value,proto.caos.zitadel.auth.api.v1.UserSessionView.deserializeBinaryFromReader); - msg.addUserSessions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserSessionViews.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserSessionViews.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserSessionViews} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserSessionViews.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserSessionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.caos.zitadel.auth.api.v1.UserSessionView.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated UserSessionView user_sessions = 1; - * @return {!Array} - */ -proto.caos.zitadel.auth.api.v1.UserSessionViews.prototype.getUserSessionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.auth.api.v1.UserSessionView, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.auth.api.v1.UserSessionViews.prototype.setUserSessionsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UserSessionView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.auth.api.v1.UserSessionView} - */ -proto.caos.zitadel.auth.api.v1.UserSessionViews.prototype.addUserSessions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.caos.zitadel.auth.api.v1.UserSessionView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.auth.api.v1.UserSessionViews.prototype.clearUserSessionsList = function() { - this.setUserSessionsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserSessionView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserSessionView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - agentId: jspb.Message.getFieldWithDefault(msg, 2, ""), - authState: jspb.Message.getFieldWithDefault(msg, 3, 0), - userId: jspb.Message.getFieldWithDefault(msg, 4, ""), - userName: jspb.Message.getFieldWithDefault(msg, 5, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 6, 0), - loginName: jspb.Message.getFieldWithDefault(msg, 7, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 8, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserSessionView} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserSessionView; - return proto.caos.zitadel.auth.api.v1.UserSessionView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserSessionView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserSessionView} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAgentId(value); - break; - case 3: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.UserSessionState} */ (reader.readEnum()); - msg.setAuthState(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setLoginName(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserSessionView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserSessionView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAgentId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAuthState(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } - f = message.getLoginName(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string agent_id = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.getAgentId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.setAgentId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional UserSessionState auth_state = 3; - * @return {!proto.caos.zitadel.auth.api.v1.UserSessionState} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.getAuthState = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.UserSessionState} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.UserSessionState} value */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.setAuthState = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional string user_id = 4; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string user_name = 5; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional uint64 sequence = 6; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional string login_name = 7; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.getLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.setLoginName = function(value) { - jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string display_name = 8; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserSessionView.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 8, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.auth.api.v1.UserView.repeatedFields_ = [25]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastLogin: (f = msg.getLastLogin()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - passwordChanged: (f = msg.getPasswordChanged()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - userName: jspb.Message.getFieldWithDefault(msg, 7, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 8, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 9, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 10, ""), - nickName: jspb.Message.getFieldWithDefault(msg, 11, ""), - preferredLanguage: jspb.Message.getFieldWithDefault(msg, 12, ""), - gender: jspb.Message.getFieldWithDefault(msg, 13, 0), - email: jspb.Message.getFieldWithDefault(msg, 14, ""), - isEmailVerified: jspb.Message.getFieldWithDefault(msg, 15, false), - phone: jspb.Message.getFieldWithDefault(msg, 16, ""), - isPhoneVerified: jspb.Message.getFieldWithDefault(msg, 17, false), - country: jspb.Message.getFieldWithDefault(msg, 18, ""), - locality: jspb.Message.getFieldWithDefault(msg, 19, ""), - postalCode: jspb.Message.getFieldWithDefault(msg, 20, ""), - region: jspb.Message.getFieldWithDefault(msg, 21, ""), - streetAddress: jspb.Message.getFieldWithDefault(msg, 22, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 23, 0), - resourceOwner: jspb.Message.getFieldWithDefault(msg, 24, ""), - loginNamesList: jspb.Message.getRepeatedField(msg, 25), - preferredLoginName: jspb.Message.getFieldWithDefault(msg, 26, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserView} - */ -proto.caos.zitadel.auth.api.v1.UserView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserView; - return proto.caos.zitadel.auth.api.v1.UserView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserView} - */ -proto.caos.zitadel.auth.api.v1.UserView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.UserState} */ (reader.readEnum()); - msg.setState(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastLogin(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setPasswordChanged(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setNickName(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLanguage(value); - break; - case 13: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsEmailVerified(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setPhone(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPhoneVerified(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 19: - var value = /** @type {string} */ (reader.readString()); - msg.setLocality(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setPostalCode(value); - break; - case 21: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 22: - var value = /** @type {string} */ (reader.readString()); - msg.setStreetAddress(value); - break; - case 23: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 24: - var value = /** @type {string} */ (reader.readString()); - msg.setResourceOwner(value); - break; - case 25: - var value = /** @type {string} */ (reader.readString()); - msg.addLoginNames(value); - break; - case 26: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLoginName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastLogin(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getPasswordChanged(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getNickName(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getPreferredLanguage(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getGender(); - if (f !== 0.0) { - writer.writeEnum( - 13, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getIsEmailVerified(); - if (f) { - writer.writeBool( - 15, - f - ); - } - f = message.getPhone(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getIsPhoneVerified(); - if (f) { - writer.writeBool( - 17, - f - ); - } - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getLocality(); - if (f.length > 0) { - writer.writeString( - 19, - f - ); - } - f = message.getPostalCode(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 21, - f - ); - } - f = message.getStreetAddress(); - if (f.length > 0) { - writer.writeString( - 22, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 23, - f - ); - } - f = message.getResourceOwner(); - if (f.length > 0) { - writer.writeString( - 24, - f - ); - } - f = message.getLoginNamesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 25, - f - ); - } - f = message.getPreferredLoginName(); - if (f.length > 0) { - writer.writeString( - 26, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional UserState state = 2; - * @return {!proto.caos.zitadel.auth.api.v1.UserState} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.UserState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.UserState} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_login = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getLastLogin = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setLastLogin = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.clearLastLogin = function() { - this.setLastLogin(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.hasLastLogin = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Timestamp password_changed = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getPasswordChanged = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setPasswordChanged = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.clearPasswordChanged = function() { - this.setPasswordChanged(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.hasPasswordChanged = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional string user_name = 7; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string first_name = 8; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string last_name = 9; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string display_name = 10; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional string nick_name = 11; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getNickName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setNickName = function(value) { - jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string preferred_language = 12; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getPreferredLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setPreferredLanguage = function(value) { - jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional Gender gender = 13; - * @return {!proto.caos.zitadel.auth.api.v1.Gender} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getGender = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.Gender} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setGender = function(value) { - jspb.Message.setProto3EnumField(this, 13, value); -}; - - -/** - * optional string email = 14; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional bool is_email_verified = 15; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getIsEmailVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 15, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setIsEmailVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 15, value); -}; - - -/** - * optional string phone = 16; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getPhone = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setPhone = function(value) { - jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional bool is_phone_verified = 17; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getIsPhoneVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 17, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setIsPhoneVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 17, value); -}; - - -/** - * optional string country = 18; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setCountry = function(value) { - jspb.Message.setProto3StringField(this, 18, value); -}; - - -/** - * optional string locality = 19; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getLocality = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setLocality = function(value) { - jspb.Message.setProto3StringField(this, 19, value); -}; - - -/** - * optional string postal_code = 20; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getPostalCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setPostalCode = function(value) { - jspb.Message.setProto3StringField(this, 20, value); -}; - - -/** - * optional string region = 21; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setRegion = function(value) { - jspb.Message.setProto3StringField(this, 21, value); -}; - - -/** - * optional string street_address = 22; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getStreetAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setStreetAddress = function(value) { - jspb.Message.setProto3StringField(this, 22, value); -}; - - -/** - * optional uint64 sequence = 23; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 23, value); -}; - - -/** - * optional string resource_owner = 24; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getResourceOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setResourceOwner = function(value) { - jspb.Message.setProto3StringField(this, 24, value); -}; - - -/** - * repeated string login_names = 25; - * @return {!Array} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getLoginNamesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 25)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setLoginNamesList = function(value) { - jspb.Message.setField(this, 25, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.addLoginNames = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 25, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.clearLoginNamesList = function() { - this.setLoginNamesList([]); -}; - - -/** - * optional string preferred_login_name = 26; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.getPreferredLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserView.prototype.setPreferredLoginName = function(value) { - jspb.Message.setProto3StringField(this, 26, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserProfile.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserProfile} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserProfile.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - userName: jspb.Message.getFieldWithDefault(msg, 2, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 3, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 4, ""), - nickName: jspb.Message.getFieldWithDefault(msg, 5, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 6, ""), - preferredLanguage: jspb.Message.getFieldWithDefault(msg, 7, ""), - gender: jspb.Message.getFieldWithDefault(msg, 8, 0), - sequence: jspb.Message.getFieldWithDefault(msg, 9, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserProfile} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserProfile; - return proto.caos.zitadel.auth.api.v1.UserProfile.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserProfile} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserProfile} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setNickName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLanguage(value); - break; - case 8: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 10: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 11: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserProfile.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserProfile} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserProfile.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getNickName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getPreferredLanguage(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getGender(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 11, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_name = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string first_name = 3; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string last_name = 4; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string nick_name = 5; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.getNickName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.setNickName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string display_name = 6; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string preferred_language = 7; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.getPreferredLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.setPreferredLanguage = function(value) { - jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional Gender gender = 8; - * @return {!proto.caos.zitadel.auth.api.v1.Gender} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.getGender = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.Gender} value */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.setGender = function(value) { - jspb.Message.setProto3EnumField(this, 8, value); -}; - - -/** - * optional uint64 sequence = 9; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 10; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 11; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserProfile.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 11) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.repeatedFields_ = [12]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserProfileView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserProfileView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - userName: jspb.Message.getFieldWithDefault(msg, 2, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 3, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 4, ""), - nickName: jspb.Message.getFieldWithDefault(msg, 5, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 6, ""), - preferredLanguage: jspb.Message.getFieldWithDefault(msg, 7, ""), - gender: jspb.Message.getFieldWithDefault(msg, 8, 0), - sequence: jspb.Message.getFieldWithDefault(msg, 9, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - loginNamesList: jspb.Message.getRepeatedField(msg, 12), - preferredLoginName: jspb.Message.getFieldWithDefault(msg, 13, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserProfileView} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserProfileView; - return proto.caos.zitadel.auth.api.v1.UserProfileView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserProfileView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserProfileView} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setNickName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLanguage(value); - break; - case 8: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 10: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 11: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.addLoginNames(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLoginName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserProfileView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserProfileView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getNickName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getPreferredLanguage(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getGender(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 11, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLoginNamesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 12, - f - ); - } - f = message.getPreferredLoginName(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_name = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string first_name = 3; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string last_name = 4; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string nick_name = 5; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getNickName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setNickName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string display_name = 6; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string preferred_language = 7; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getPreferredLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setPreferredLanguage = function(value) { - jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional Gender gender = 8; - * @return {!proto.caos.zitadel.auth.api.v1.Gender} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getGender = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.Gender} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setGender = function(value) { - jspb.Message.setProto3EnumField(this, 8, value); -}; - - -/** - * optional uint64 sequence = 9; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 10; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 11; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * repeated string login_names = 12; - * @return {!Array} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getLoginNamesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 12)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setLoginNamesList = function(value) { - jspb.Message.setField(this, 12, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.addLoginNames = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 12, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.clearLoginNamesList = function() { - this.setLoginNamesList([]); -}; - - -/** - * optional string preferred_login_name = 13; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.getPreferredLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserProfileView.prototype.setPreferredLoginName = function(value) { - jspb.Message.setProto3StringField(this, 13, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - firstName: jspb.Message.getFieldWithDefault(msg, 1, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 2, ""), - nickName: jspb.Message.getFieldWithDefault(msg, 3, ""), - preferredLanguage: jspb.Message.getFieldWithDefault(msg, 4, ""), - gender: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest; - return proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setNickName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLanguage(value); - break; - case 5: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getNickName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPreferredLanguage(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getGender(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } -}; - - -/** - * optional string first_name = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string last_name = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string nick_name = 3; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.getNickName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.setNickName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string preferred_language = 4; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.getPreferredLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.setPreferredLanguage = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional Gender gender = 5; - * @return {!proto.caos.zitadel.auth.api.v1.Gender} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.getGender = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.Gender} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserProfileRequest.prototype.setGender = function(value) { - jspb.Message.setProto3EnumField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserEmail.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserEmail} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserEmail.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - email: jspb.Message.getFieldWithDefault(msg, 2, ""), - isemailverified: jspb.Message.getFieldWithDefault(msg, 3, false), - sequence: jspb.Message.getFieldWithDefault(msg, 4, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserEmail} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserEmail; - return proto.caos.zitadel.auth.api.v1.UserEmail.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserEmail} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserEmail} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsemailverified(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserEmail.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserEmail} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserEmail.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsemailverified(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string email = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool isEmailVerified = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.getIsemailverified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.setIsemailverified = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint64 sequence = 4; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserEmail.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserEmailView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserEmailView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - email: jspb.Message.getFieldWithDefault(msg, 2, ""), - isemailverified: jspb.Message.getFieldWithDefault(msg, 3, false), - sequence: jspb.Message.getFieldWithDefault(msg, 4, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserEmailView} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserEmailView; - return proto.caos.zitadel.auth.api.v1.UserEmailView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserEmailView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserEmailView} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsemailverified(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserEmailView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserEmailView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsemailverified(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string email = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool isEmailVerified = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.getIsemailverified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.setIsemailverified = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint64 sequence = 4; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserEmailView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest} - */ -proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest; - return proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest} - */ -proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCode(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string code = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest.prototype.setCode = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - code: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest} - */ -proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest; - return proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest} - */ -proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCode(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string code = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.VerifyUserEmailRequest.prototype.setCode = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.toObject = function(includeInstance, msg) { - var f, obj = { - email: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest; - return proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string email = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserEmailRequest.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserPhone.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserPhone} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserPhone.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - phone: jspb.Message.getFieldWithDefault(msg, 2, ""), - isPhoneVerified: jspb.Message.getFieldWithDefault(msg, 3, false), - sequence: jspb.Message.getFieldWithDefault(msg, 4, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserPhone} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserPhone; - return proto.caos.zitadel.auth.api.v1.UserPhone.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserPhone} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserPhone} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPhone(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPhoneVerified(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserPhone.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserPhone} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserPhone.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPhone(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsPhoneVerified(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string phone = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.getPhone = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.setPhone = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_phone_verified = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.getIsPhoneVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.setIsPhoneVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint64 sequence = 4; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserPhone.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserPhoneView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserPhoneView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - phone: jspb.Message.getFieldWithDefault(msg, 2, ""), - isPhoneVerified: jspb.Message.getFieldWithDefault(msg, 3, false), - sequence: jspb.Message.getFieldWithDefault(msg, 4, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserPhoneView} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserPhoneView; - return proto.caos.zitadel.auth.api.v1.UserPhoneView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserPhoneView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserPhoneView} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPhone(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPhoneVerified(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserPhoneView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserPhoneView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPhone(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsPhoneVerified(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string phone = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.getPhone = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.setPhone = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_phone_verified = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.getIsPhoneVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.setIsPhoneVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint64 sequence = 4; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserPhoneView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.toObject = function(includeInstance, msg) { - var f, obj = { - phone: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest; - return proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPhone(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPhone(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string phone = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.prototype.getPhone = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserPhoneRequest.prototype.setPhone = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest} - */ -proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest; - return proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest} - */ -proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCode(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string code = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.VerifyUserPhoneRequest.prototype.setCode = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserAddress.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserAddress} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserAddress.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - country: jspb.Message.getFieldWithDefault(msg, 2, ""), - locality: jspb.Message.getFieldWithDefault(msg, 3, ""), - postalCode: jspb.Message.getFieldWithDefault(msg, 4, ""), - region: jspb.Message.getFieldWithDefault(msg, 5, ""), - streetAddress: jspb.Message.getFieldWithDefault(msg, 6, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 7, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserAddress} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserAddress; - return proto.caos.zitadel.auth.api.v1.UserAddress.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserAddress} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserAddress} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLocality(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPostalCode(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setStreetAddress(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserAddress.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserAddress} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserAddress.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLocality(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPostalCode(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getStreetAddress(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string country = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.setCountry = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string locality = 3; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.getLocality = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.setLocality = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string postal_code = 4; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.getPostalCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.setPostalCode = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string region = 5; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.setRegion = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string street_address = 6; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.getStreetAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.setStreetAddress = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint64 sequence = 7; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 9; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserAddress.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserAddressView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserAddressView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - country: jspb.Message.getFieldWithDefault(msg, 2, ""), - locality: jspb.Message.getFieldWithDefault(msg, 3, ""), - postalCode: jspb.Message.getFieldWithDefault(msg, 4, ""), - region: jspb.Message.getFieldWithDefault(msg, 5, ""), - streetAddress: jspb.Message.getFieldWithDefault(msg, 6, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 7, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserAddressView} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserAddressView; - return proto.caos.zitadel.auth.api.v1.UserAddressView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserAddressView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserAddressView} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLocality(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPostalCode(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setStreetAddress(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserAddressView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserAddressView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLocality(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPostalCode(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getStreetAddress(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string country = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.setCountry = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string locality = 3; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.getLocality = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.setLocality = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string postal_code = 4; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.getPostalCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.setPostalCode = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string region = 5; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.setRegion = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string street_address = 6; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.getStreetAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.setStreetAddress = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint64 sequence = 7; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 9; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserAddressView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.toObject = function(includeInstance, msg) { - var f, obj = { - country: jspb.Message.getFieldWithDefault(msg, 1, ""), - locality: jspb.Message.getFieldWithDefault(msg, 2, ""), - postalCode: jspb.Message.getFieldWithDefault(msg, 3, ""), - region: jspb.Message.getFieldWithDefault(msg, 4, ""), - streetAddress: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest; - return proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLocality(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPostalCode(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setStreetAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLocality(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPostalCode(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getStreetAddress(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string country = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.setCountry = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string locality = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.getLocality = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.setLocality = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string postal_code = 3; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.getPostalCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.setPostalCode = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string region = 4; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.setRegion = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string street_address = 5; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.getStreetAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UpdateUserAddressRequest.prototype.setStreetAddress = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.PasswordID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.PasswordID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.PasswordID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.PasswordID.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.PasswordID} - */ -proto.caos.zitadel.auth.api.v1.PasswordID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.PasswordID; - return proto.caos.zitadel.auth.api.v1.PasswordID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.PasswordID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.PasswordID} - */ -proto.caos.zitadel.auth.api.v1.PasswordID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.PasswordID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.PasswordID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.PasswordID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.PasswordID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.PasswordID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.PasswordID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.PasswordRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.PasswordRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.PasswordRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.PasswordRequest.toObject = function(includeInstance, msg) { - var f, obj = { - password: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.PasswordRequest} - */ -proto.caos.zitadel.auth.api.v1.PasswordRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.PasswordRequest; - return proto.caos.zitadel.auth.api.v1.PasswordRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.PasswordRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.PasswordRequest} - */ -proto.caos.zitadel.auth.api.v1.PasswordRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.PasswordRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.PasswordRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.PasswordRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.PasswordRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string password = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.PasswordRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.PasswordRequest.prototype.setPassword = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.PasswordChange.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.PasswordChange.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.PasswordChange} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.PasswordChange.toObject = function(includeInstance, msg) { - var f, obj = { - oldPassword: jspb.Message.getFieldWithDefault(msg, 1, ""), - newPassword: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.PasswordChange} - */ -proto.caos.zitadel.auth.api.v1.PasswordChange.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.PasswordChange; - return proto.caos.zitadel.auth.api.v1.PasswordChange.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.PasswordChange} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.PasswordChange} - */ -proto.caos.zitadel.auth.api.v1.PasswordChange.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOldPassword(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setNewPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.PasswordChange.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.PasswordChange.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.PasswordChange} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.PasswordChange.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOldPassword(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getNewPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string old_password = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.PasswordChange.prototype.getOldPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.PasswordChange.prototype.setOldPassword = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string new_password = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.PasswordChange.prototype.getNewPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.PasswordChange.prototype.setNewPassword = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMfaOtp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.VerifyMfaOtp} - */ -proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.VerifyMfaOtp; - return proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMfaOtp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.VerifyMfaOtp} - */ -proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCode(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.VerifyMfaOtp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string code = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.VerifyMfaOtp.prototype.setCode = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.auth.api.v1.MultiFactors.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.MultiFactors.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.MultiFactors.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.MultiFactors} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MultiFactors.toObject = function(includeInstance, msg) { - var f, obj = { - mfasList: jspb.Message.toObjectList(msg.getMfasList(), - proto.caos.zitadel.auth.api.v1.MultiFactor.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.MultiFactors} - */ -proto.caos.zitadel.auth.api.v1.MultiFactors.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.MultiFactors; - return proto.caos.zitadel.auth.api.v1.MultiFactors.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.MultiFactors} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.MultiFactors} - */ -proto.caos.zitadel.auth.api.v1.MultiFactors.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.caos.zitadel.auth.api.v1.MultiFactor; - reader.readMessage(value,proto.caos.zitadel.auth.api.v1.MultiFactor.deserializeBinaryFromReader); - msg.addMfas(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.MultiFactors.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.MultiFactors.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.MultiFactors} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MultiFactors.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMfasList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.caos.zitadel.auth.api.v1.MultiFactor.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated MultiFactor mfas = 1; - * @return {!Array} - */ -proto.caos.zitadel.auth.api.v1.MultiFactors.prototype.getMfasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.auth.api.v1.MultiFactor, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.auth.api.v1.MultiFactors.prototype.setMfasList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.MultiFactor=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.auth.api.v1.MultiFactor} - */ -proto.caos.zitadel.auth.api.v1.MultiFactors.prototype.addMfas = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.caos.zitadel.auth.api.v1.MultiFactor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.auth.api.v1.MultiFactors.prototype.clearMfasList = function() { - this.setMfasList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.MultiFactor.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.MultiFactor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.MultiFactor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MultiFactor.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, 0), - state: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.MultiFactor} - */ -proto.caos.zitadel.auth.api.v1.MultiFactor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.MultiFactor; - return proto.caos.zitadel.auth.api.v1.MultiFactor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.MultiFactor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.MultiFactor} - */ -proto.caos.zitadel.auth.api.v1.MultiFactor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.MfaType} */ (reader.readEnum()); - msg.setType(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.MFAState} */ (reader.readEnum()); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.MultiFactor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.MultiFactor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.MultiFactor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MultiFactor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional MfaType type = 1; - * @return {!proto.caos.zitadel.auth.api.v1.MfaType} - */ -proto.caos.zitadel.auth.api.v1.MultiFactor.prototype.getType = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.MfaType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.MfaType} value */ -proto.caos.zitadel.auth.api.v1.MultiFactor.prototype.setType = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional MFAState state = 2; - * @return {!proto.caos.zitadel.auth.api.v1.MFAState} - */ -proto.caos.zitadel.auth.api.v1.MultiFactor.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.MFAState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.MFAState} value */ -proto.caos.zitadel.auth.api.v1.MultiFactor.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.MfaOtpResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.MfaOtpResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - url: jspb.Message.getFieldWithDefault(msg, 2, ""), - secret: jspb.Message.getFieldWithDefault(msg, 3, ""), - state: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.MfaOtpResponse} - */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.MfaOtpResponse; - return proto.caos.zitadel.auth.api.v1.MfaOtpResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.MfaOtpResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.MfaOtpResponse} - */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUrl(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSecret(value); - break; - case 4: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.MFAState} */ (reader.readEnum()); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.MfaOtpResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.MfaOtpResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUrl(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSecret(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string url = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.prototype.getUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.prototype.setUrl = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string secret = 3; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.prototype.getSecret = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.prototype.setSecret = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional MFAState state = 4; - * @return {!proto.caos.zitadel.auth.api.v1.MFAState} - */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.MFAState} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.MFAState} value */ -proto.caos.zitadel.auth.api.v1.MfaOtpResponse.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.OIDCClientAuth.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.OIDCClientAuth.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.OIDCClientAuth} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.OIDCClientAuth.toObject = function(includeInstance, msg) { - var f, obj = { - clientId: jspb.Message.getFieldWithDefault(msg, 1, ""), - clientSecret: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.OIDCClientAuth} - */ -proto.caos.zitadel.auth.api.v1.OIDCClientAuth.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.OIDCClientAuth; - return proto.caos.zitadel.auth.api.v1.OIDCClientAuth.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.OIDCClientAuth} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.OIDCClientAuth} - */ -proto.caos.zitadel.auth.api.v1.OIDCClientAuth.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClientId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setClientSecret(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.OIDCClientAuth.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.OIDCClientAuth.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.OIDCClientAuth} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.OIDCClientAuth.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClientId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getClientSecret(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string client_id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.OIDCClientAuth.prototype.getClientId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.OIDCClientAuth.prototype.setClientId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string client_secret = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.OIDCClientAuth.prototype.getClientSecret = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.OIDCClientAuth.prototype.setClientSecret = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - sortingColumn: jspb.Message.getFieldWithDefault(msg, 3, 0), - asc: jspb.Message.getFieldWithDefault(msg, 4, false), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest; - return proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.UserGrantSearchKey} */ (reader.readEnum()); - msg.setSortingColumn(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAsc(value); - break; - case 5: - var value = new proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery; - reader.readMessage(value,proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getSortingColumn(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getAsc(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional UserGrantSearchKey sorting_column = 3; - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantSearchKey} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.getSortingColumn = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.UserGrantSearchKey} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchKey} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.setSortingColumn = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional bool asc = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.getAsc = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.setAsc = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * repeated UserGrantSearchQuery queries = 5; - * @return {!Array} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery, 5)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery; - return proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.UserGrantSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional UserGrantSearchKey key = 1; - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantSearchKey} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.UserGrantSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchKey} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.auth.api.v1.SearchMethod} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.SearchMethod} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.auth.api.v1.UserGrantView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse; - return proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.auth.api.v1.UserGrantView; - reader.readMessage(value,proto.caos.zitadel.auth.api.v1.UserGrantView.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.auth.api.v1.UserGrantView.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated UserGrantView result = 4; - * @return {!Array} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.auth.api.v1.UserGrantView, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantView} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.auth.api.v1.UserGrantView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.UserGrantView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.toObject = function(includeInstance, msg) { - var f, obj = { - orgid: jspb.Message.getFieldWithDefault(msg, 1, ""), - projectid: jspb.Message.getFieldWithDefault(msg, 2, ""), - userid: jspb.Message.getFieldWithDefault(msg, 3, ""), - rolesList: jspb.Message.getRepeatedField(msg, 4), - orgname: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantView} - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.UserGrantView; - return proto.caos.zitadel.auth.api.v1.UserGrantView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.UserGrantView} - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOrgid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUserid(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setOrgname(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.UserGrantView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.UserGrantView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrgid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getProjectid(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getUserid(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getOrgname(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string OrgId = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.getOrgid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.setOrgid = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string ProjectId = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.getProjectid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.setProjectid = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string UserId = 3; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.getUserid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.setUserid = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string Roles = 4; - * @return {!Array} - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - -/** - * optional string OrgName = 5; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.getOrgname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.UserGrantView.prototype.setOrgname = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - asc: jspb.Message.getFieldWithDefault(msg, 4, false), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest; - return proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAsc(value); - break; - case 5: - var value = new proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery; - reader.readMessage(value,proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getAsc(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bool asc = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.getAsc = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.setAsc = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * repeated MyProjectOrgSearchQuery queries = 5; - * @return {!Array} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery, 5)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery; - return proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.auth.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional MyProjectOrgSearchKey key = 1; - * @return {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchKey} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchKey} value */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.auth.api.v1.SearchMethod} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.auth.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.auth.api.v1.SearchMethod} value */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.auth.api.v1.Org.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse; - return proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.auth.api.v1.Org; - reader.readMessage(value,proto.caos.zitadel.auth.api.v1.Org.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.auth.api.v1.Org.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated Org result = 4; - * @return {!Array} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.auth.api.v1.Org, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.Org=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.auth.api.v1.Org} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.auth.api.v1.Org, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.Org.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.Org.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.Org} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.Org.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.Org} - */ -proto.caos.zitadel.auth.api.v1.Org.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.Org; - return proto.caos.zitadel.auth.api.v1.Org.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.Org} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.Org} - */ -proto.caos.zitadel.auth.api.v1.Org.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.Org.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.Org.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.Org} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.Org.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.Org.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.Org.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.Org.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.Org.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.auth.api.v1.MyPermissions.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.MyPermissions.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.MyPermissions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.MyPermissions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MyPermissions.toObject = function(includeInstance, msg) { - var f, obj = { - permissionsList: jspb.Message.getRepeatedField(msg, 1) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.MyPermissions} - */ -proto.caos.zitadel.auth.api.v1.MyPermissions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.MyPermissions; - return proto.caos.zitadel.auth.api.v1.MyPermissions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.MyPermissions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.MyPermissions} - */ -proto.caos.zitadel.auth.api.v1.MyPermissions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addPermissions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.MyPermissions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.MyPermissions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.MyPermissions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.MyPermissions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPermissionsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string permissions = 1; - * @return {!Array} - */ -proto.caos.zitadel.auth.api.v1.MyPermissions.prototype.getPermissionsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.auth.api.v1.MyPermissions.prototype.setPermissionsList = function(value) { - jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.auth.api.v1.MyPermissions.prototype.addPermissions = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.auth.api.v1.MyPermissions.prototype.clearPermissionsList = function() { - this.setPermissionsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.ChangesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.ChangesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - sequenceOffset: jspb.Message.getFieldWithDefault(msg, 2, 0), - asc: jspb.Message.getFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.ChangesRequest} - */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.ChangesRequest; - return proto.caos.zitadel.auth.api.v1.ChangesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.ChangesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.ChangesRequest} - */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequenceOffset(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAsc(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.ChangesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.ChangesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getSequenceOffset(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getAsc(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional uint64 limit = 1; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 sequence_offset = 2; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.prototype.getSequenceOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.prototype.setSequenceOffset = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bool asc = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.prototype.getAsc = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.ChangesRequest.prototype.setAsc = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.auth.api.v1.Changes.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.Changes.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.Changes.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.Changes} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.Changes.toObject = function(includeInstance, msg) { - var f, obj = { - changesList: jspb.Message.toObjectList(msg.getChangesList(), - proto.caos.zitadel.auth.api.v1.Change.toObject, includeInstance), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.Changes} - */ -proto.caos.zitadel.auth.api.v1.Changes.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.Changes; - return proto.caos.zitadel.auth.api.v1.Changes.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.Changes} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.Changes} - */ -proto.caos.zitadel.auth.api.v1.Changes.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.caos.zitadel.auth.api.v1.Change; - reader.readMessage(value,proto.caos.zitadel.auth.api.v1.Change.deserializeBinaryFromReader); - msg.addChanges(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.Changes.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.Changes.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.Changes} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.Changes.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChangesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.caos.zitadel.auth.api.v1.Change.serializeBinaryToWriter - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } -}; - - -/** - * repeated Change changes = 1; - * @return {!Array} - */ -proto.caos.zitadel.auth.api.v1.Changes.prototype.getChangesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.auth.api.v1.Change, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.auth.api.v1.Changes.prototype.setChangesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.caos.zitadel.auth.api.v1.Change=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.auth.api.v1.Change} - */ -proto.caos.zitadel.auth.api.v1.Changes.prototype.addChanges = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.caos.zitadel.auth.api.v1.Change, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.auth.api.v1.Changes.prototype.clearChangesList = function() { - this.setChangesList([]); -}; - - -/** - * optional uint64 offset = 2; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.Changes.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.Changes.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 limit = 3; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.Changes.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.Changes.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.Change.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.Change} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.Change.toObject = function(includeInstance, msg) { - var f, obj = { - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - eventType: jspb.Message.getFieldWithDefault(msg, 2, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 3, 0), - editorId: jspb.Message.getFieldWithDefault(msg, 4, ""), - editor: jspb.Message.getFieldWithDefault(msg, 5, ""), - data: (f = msg.getData()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.Change} - */ -proto.caos.zitadel.auth.api.v1.Change.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.Change; - return proto.caos.zitadel.auth.api.v1.Change.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.Change} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.Change} - */ -proto.caos.zitadel.auth.api.v1.Change.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEventType(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEditorId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setEditor(value); - break; - case 6: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.Change.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.Change} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.Change.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEventType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getEditorId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getEditor(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Timestamp change_date = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.Change.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string event_type = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.getEventType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.Change.prototype.setEventType = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 sequence = 3; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.Change.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string editor_id = 4; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.getEditorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.Change.prototype.setEditorId = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string editor = 5; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.getEditor = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.Change.prototype.setEditor = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional google.protobuf.Struct data = 6; - * @return {?proto.google.protobuf.Struct} - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.getData = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); -}; - - -/** @param {?proto.google.protobuf.Struct|undefined} value */ -proto.caos.zitadel.auth.api.v1.Change.prototype.setData = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.clearData = function() { - this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.Change.prototype.hasData = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - minLength: jspb.Message.getFieldWithDefault(msg, 5, 0), - hasLowercase: jspb.Message.getFieldWithDefault(msg, 6, false), - hasUppercase: jspb.Message.getFieldWithDefault(msg, 7, false), - hasNumber: jspb.Message.getFieldWithDefault(msg, 8, false), - hasSymbol: jspb.Message.getFieldWithDefault(msg, 9, false), - sequence: jspb.Message.getFieldWithDefault(msg, 10, 0), - isDefault: jspb.Message.getFieldWithDefault(msg, 11, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy; - return proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinLength(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasLowercase(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasUppercase(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasNumber(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasSymbol(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDefault(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getMinLength(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } - f = message.getHasLowercase(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getHasUppercase(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getHasNumber(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getHasSymbol(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 10, - f - ); - } - f = message.getIsDefault(); - if (f) { - writer.writeBool( - 11, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional uint64 min_length = 5; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.getMinLength = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.setMinLength = function(value) { - jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional bool has_lowercase = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.getHasLowercase = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.setHasLowercase = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool has_uppercase = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.getHasUppercase = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.setHasUppercase = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional bool has_number = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.getHasNumber = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.setHasNumber = function(value) { - jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional bool has_symbol = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.getHasSymbol = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.setHasSymbol = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional uint64 sequence = 10; - * @return {number} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional bool is_default = 11; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.getIsDefault = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 11, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.auth.api.v1.PasswordComplexityPolicy.prototype.setIsDefault = function(value) { - jspb.Message.setProto3BooleanField(this, 11, value); -}; - - -/** - * @enum {number} - */ -proto.caos.zitadel.auth.api.v1.UserSessionState = { - USERSESSIONSTATE_UNSPECIFIED: 0, - USERSESSIONSTATE_ACTIVE: 1, - USERSESSIONSTATE_TERMINATED: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.auth.api.v1.OIDCResponseType = { - OIDCRESPONSETYPE_CODE: 0, - OIDCRESPONSETYPE_ID_TOKEN: 1, - OIDCRESPONSETYPE_ID_TOKEN_TOKEN: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.auth.api.v1.UserState = { - USERSTATE_UNSPECIFIED: 0, - USERSTATE_ACTIVE: 1, - USERSTATE_INACTIVE: 2, - USERSTATE_DELETED: 3, - USERSTATE_LOCKED: 4, - USERSTATE_SUSPEND: 5, - USERSTATE_INITIAL: 6 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.auth.api.v1.Gender = { - GENDER_UNSPECIFIED: 0, - GENDER_FEMALE: 1, - GENDER_MALE: 2, - GENDER_DIVERSE: 3 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.auth.api.v1.MfaType = { - MFATYPE_UNSPECIFIED: 0, - MFATYPE_SMS: 1, - MFATYPE_OTP: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.auth.api.v1.MFAState = { - MFASTATE_UNSPECIFIED: 0, - MFASTATE_NOT_READY: 1, - MFASTATE_READY: 2, - MFASTATE_REMOVED: 3 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.auth.api.v1.UserGrantSearchKey = { - USERGRANTSEARCHKEY_UNKNOWN: 0, - USERGRANTSEARCHKEY_ORG_ID: 1, - USERGRANTSEARCHKEY_PROJECT_ID: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.auth.api.v1.MyProjectOrgSearchKey = { - MYPROJECTORGSEARCHKEY_UNSPECIFIED: 0, - MYPROJECTORGSEARCHKEY_ORG_NAME: 1 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.auth.api.v1.SearchMethod = { - SEARCHMETHOD_EQUALS: 0, - SEARCHMETHOD_STARTS_WITH: 1, - SEARCHMETHOD_CONTAINS: 2, - SEARCHMETHOD_EQUALS_IGNORE_CASE: 3, - SEARCHMETHOD_STARTS_WITH_IGNORE_CASE: 4, - SEARCHMETHOD_CONTAINS_IGNORE_CASE: 5 -}; - -goog.object.extend(exports, proto.caos.zitadel.auth.api.v1); diff --git a/console/src/app/proto/generated/authoption/options_pb.d.ts b/console/src/app/proto/generated/authoption/options_pb.d.ts deleted file mode 100644 index 336ce12bb9..0000000000 --- a/console/src/app/proto/generated/authoption/options_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {} diff --git a/console/src/app/proto/generated/authoption/options_pb.js b/console/src/app/proto/generated/authoption/options_pb.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/console/src/app/proto/generated/google/api/annotations_pb.d.ts b/console/src/app/proto/generated/google/api/annotations_pb.d.ts deleted file mode 100644 index 336ce12bb9..0000000000 --- a/console/src/app/proto/generated/google/api/annotations_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {} diff --git a/console/src/app/proto/generated/google/api/annotations_pb.js b/console/src/app/proto/generated/google/api/annotations_pb.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/console/src/app/proto/generated/management_grpc_web_pb.d.ts b/console/src/app/proto/generated/management_grpc_web_pb.d.ts deleted file mode 100644 index 007e83a888..0000000000 --- a/console/src/app/proto/generated/management_grpc_web_pb.d.ts +++ /dev/null @@ -1,1561 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as google_api_annotations_pb from './google/api/annotations_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; -import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as protoc$gen$swagger_options_annotations_pb from './protoc-gen-swagger/options/annotations_pb'; -import * as validate_validate_pb from './validate/validate_pb'; -import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; -import * as authoption_options_pb from './authoption/options_pb'; - -import { - AddOrgDomainRequest, - AddOrgMemberRequest, - Application, - ApplicationID, - ApplicationSearchRequest, - ApplicationSearchResponse, - ApplicationUpdate, - ApplicationView, - ChangeOrgMemberRequest, - ChangeRequest, - Changes, - ClientSecret, - CreateUserRequest, - Domain, - Email, - GrantedProjectSearchRequest, - Iam, - MultiFactors, - OIDCApplicationCreate, - OIDCConfig, - OIDCConfigUpdate, - Org, - OrgDomain, - OrgDomainSearchRequest, - OrgDomainSearchResponse, - OrgIamPolicy, - OrgMember, - OrgMemberRoles, - OrgMemberSearchRequest, - OrgMemberSearchResponse, - OrgView, - PasswordAgePolicy, - PasswordAgePolicyCreate, - PasswordAgePolicyID, - PasswordAgePolicyUpdate, - PasswordComplexityPolicy, - PasswordComplexityPolicyCreate, - PasswordComplexityPolicyID, - PasswordComplexityPolicyUpdate, - PasswordLockoutPolicy, - PasswordLockoutPolicyCreate, - PasswordLockoutPolicyID, - PasswordLockoutPolicyUpdate, - PasswordRequest, - Project, - ProjectCreateRequest, - ProjectGrant, - ProjectGrantCreate, - ProjectGrantID, - ProjectGrantMember, - ProjectGrantMemberAdd, - ProjectGrantMemberChange, - ProjectGrantMemberRemove, - ProjectGrantMemberRoles, - ProjectGrantMemberSearchRequest, - ProjectGrantMemberSearchResponse, - ProjectGrantSearchRequest, - ProjectGrantSearchResponse, - ProjectGrantUpdate, - ProjectGrantUserGrantCreate, - ProjectGrantUserGrantID, - ProjectGrantUserGrantSearchRequest, - ProjectGrantUserGrantUpdate, - ProjectGrantView, - ProjectID, - ProjectMember, - ProjectMemberAdd, - ProjectMemberChange, - ProjectMemberRemove, - ProjectMemberRoles, - ProjectMemberSearchRequest, - ProjectMemberSearchResponse, - ProjectRole, - ProjectRoleAdd, - ProjectRoleAddBulk, - ProjectRoleChange, - ProjectRoleRemove, - ProjectRoleSearchRequest, - ProjectRoleSearchResponse, - ProjectSearchRequest, - ProjectSearchResponse, - ProjectUpdateRequest, - ProjectUserGrantID, - ProjectUserGrantSearchRequest, - ProjectUserGrantUpdate, - ProjectView, - RemoveOrgDomainRequest, - RemoveOrgMemberRequest, - SetPasswordNotificationRequest, - UniqueUserRequest, - UniqueUserResponse, - UpdateUserAddressRequest, - UpdateUserEmailRequest, - UpdateUserPhoneRequest, - UpdateUserProfileRequest, - User, - UserAddress, - UserAddressView, - UserEmail, - UserEmailView, - UserGrant, - UserGrantCreate, - UserGrantCreateBulk, - UserGrantID, - UserGrantRemoveBulk, - UserGrantSearchRequest, - UserGrantSearchResponse, - UserGrantUpdate, - UserGrantUpdateBulk, - UserGrantView, - UserID, - UserPhone, - UserPhoneView, - UserProfile, - UserProfileView, - UserSearchRequest, - UserSearchResponse, - UserView} from './management_pb'; - -export class ManagementServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: string; }); - - healthz( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - ready( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - validate( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_struct_pb.Struct) => void - ): grpcWeb.ClientReadableStream; - - getIam( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Iam) => void - ): grpcWeb.ClientReadableStream; - - getUserByID( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserView) => void - ): grpcWeb.ClientReadableStream; - - getUserByEmailGlobal( - request: Email, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserView) => void - ): grpcWeb.ClientReadableStream; - - searchUsers( - request: UserSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - isUserUnique( - request: UniqueUserRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UniqueUserResponse) => void - ): grpcWeb.ClientReadableStream; - - createUser( - request: CreateUserRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: User) => void - ): grpcWeb.ClientReadableStream; - - deactivateUser( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: User) => void - ): grpcWeb.ClientReadableStream; - - reactivateUser( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: User) => void - ): grpcWeb.ClientReadableStream; - - lockUser( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: User) => void - ): grpcWeb.ClientReadableStream; - - unlockUser( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: User) => void - ): grpcWeb.ClientReadableStream; - - deleteUser( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - userChanges( - request: ChangeRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Changes) => void - ): grpcWeb.ClientReadableStream; - - applicationChanges( - request: ChangeRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Changes) => void - ): grpcWeb.ClientReadableStream; - - orgChanges( - request: ChangeRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Changes) => void - ): grpcWeb.ClientReadableStream; - - projectChanges( - request: ChangeRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Changes) => void - ): grpcWeb.ClientReadableStream; - - getUserProfile( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserProfileView) => void - ): grpcWeb.ClientReadableStream; - - updateUserProfile( - request: UpdateUserProfileRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserProfile) => void - ): grpcWeb.ClientReadableStream; - - getUserEmail( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserEmailView) => void - ): grpcWeb.ClientReadableStream; - - changeUserEmail( - request: UpdateUserEmailRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserEmail) => void - ): grpcWeb.ClientReadableStream; - - resendEmailVerificationMail( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getUserPhone( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserPhoneView) => void - ): grpcWeb.ClientReadableStream; - - changeUserPhone( - request: UpdateUserPhoneRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserPhone) => void - ): grpcWeb.ClientReadableStream; - - removeUserPhone( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - resendPhoneVerificationCode( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getUserAddress( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserAddressView) => void - ): grpcWeb.ClientReadableStream; - - updateUserAddress( - request: UpdateUserAddressRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserAddress) => void - ): grpcWeb.ClientReadableStream; - - getUserMfas( - request: UserID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: MultiFactors) => void - ): grpcWeb.ClientReadableStream; - - sendSetPasswordNotification( - request: SetPasswordNotificationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - setInitialPassword( - request: PasswordRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getPasswordComplexityPolicy( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: PasswordComplexityPolicy) => void - ): grpcWeb.ClientReadableStream; - - createPasswordComplexityPolicy( - request: PasswordComplexityPolicyCreate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: PasswordComplexityPolicy) => void - ): grpcWeb.ClientReadableStream; - - updatePasswordComplexityPolicy( - request: PasswordComplexityPolicyUpdate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: PasswordComplexityPolicy) => void - ): grpcWeb.ClientReadableStream; - - deletePasswordComplexityPolicy( - request: PasswordComplexityPolicyID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getPasswordAgePolicy( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: PasswordAgePolicy) => void - ): grpcWeb.ClientReadableStream; - - createPasswordAgePolicy( - request: PasswordAgePolicyCreate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: PasswordAgePolicy) => void - ): grpcWeb.ClientReadableStream; - - updatePasswordAgePolicy( - request: PasswordAgePolicyUpdate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: PasswordAgePolicy) => void - ): grpcWeb.ClientReadableStream; - - deletePasswordAgePolicy( - request: PasswordAgePolicyID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getPasswordLockoutPolicy( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: PasswordLockoutPolicy) => void - ): grpcWeb.ClientReadableStream; - - createPasswordLockoutPolicy( - request: PasswordLockoutPolicyCreate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: PasswordLockoutPolicy) => void - ): grpcWeb.ClientReadableStream; - - updatePasswordLockoutPolicy( - request: PasswordLockoutPolicyUpdate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: PasswordLockoutPolicy) => void - ): grpcWeb.ClientReadableStream; - - deletePasswordLockoutPolicy( - request: PasswordLockoutPolicyID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getMyOrg( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: OrgView) => void - ): grpcWeb.ClientReadableStream; - - getOrgByDomainGlobal( - request: Domain, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: OrgView) => void - ): grpcWeb.ClientReadableStream; - - deactivateMyOrg( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Org) => void - ): grpcWeb.ClientReadableStream; - - reactivateMyOrg( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Org) => void - ): grpcWeb.ClientReadableStream; - - searchMyOrgDomains( - request: OrgDomainSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: OrgDomainSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - addMyOrgDomain( - request: AddOrgDomainRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: OrgDomain) => void - ): grpcWeb.ClientReadableStream; - - removeMyOrgDomain( - request: RemoveOrgDomainRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getMyOrgIamPolicy( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: OrgIamPolicy) => void - ): grpcWeb.ClientReadableStream; - - getOrgMemberRoles( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: OrgMemberRoles) => void - ): grpcWeb.ClientReadableStream; - - addMyOrgMember( - request: AddOrgMemberRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: OrgMember) => void - ): grpcWeb.ClientReadableStream; - - changeMyOrgMember( - request: ChangeOrgMemberRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: OrgMember) => void - ): grpcWeb.ClientReadableStream; - - removeMyOrgMember( - request: RemoveOrgMemberRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - searchMyOrgMembers( - request: OrgMemberSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: OrgMemberSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - searchProjects( - request: ProjectSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - projectByID( - request: ProjectID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectView) => void - ): grpcWeb.ClientReadableStream; - - createProject( - request: ProjectCreateRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Project) => void - ): grpcWeb.ClientReadableStream; - - updateProject( - request: ProjectUpdateRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Project) => void - ): grpcWeb.ClientReadableStream; - - deactivateProject( - request: ProjectID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Project) => void - ): grpcWeb.ClientReadableStream; - - reactivateProject( - request: ProjectID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Project) => void - ): grpcWeb.ClientReadableStream; - - searchGrantedProjects( - request: GrantedProjectSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrantSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - getGrantedProjectByID( - request: ProjectGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrantView) => void - ): grpcWeb.ClientReadableStream; - - getProjectMemberRoles( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectMemberRoles) => void - ): grpcWeb.ClientReadableStream; - - searchProjectMembers( - request: ProjectMemberSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectMemberSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - addProjectMember( - request: ProjectMemberAdd, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectMember) => void - ): grpcWeb.ClientReadableStream; - - changeProjectMember( - request: ProjectMemberChange, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectMember) => void - ): grpcWeb.ClientReadableStream; - - removeProjectMember( - request: ProjectMemberRemove, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - searchProjectRoles( - request: ProjectRoleSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectRoleSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - addProjectRole( - request: ProjectRoleAdd, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectRole) => void - ): grpcWeb.ClientReadableStream; - - bulkAddProjectRole( - request: ProjectRoleAddBulk, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - changeProjectRole( - request: ProjectRoleChange, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectRole) => void - ): grpcWeb.ClientReadableStream; - - removeProjectRole( - request: ProjectRoleRemove, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - searchApplications( - request: ApplicationSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ApplicationSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - applicationByID( - request: ApplicationID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ApplicationView) => void - ): grpcWeb.ClientReadableStream; - - createOIDCApplication( - request: OIDCApplicationCreate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Application) => void - ): grpcWeb.ClientReadableStream; - - updateApplication( - request: ApplicationUpdate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Application) => void - ): grpcWeb.ClientReadableStream; - - deactivateApplication( - request: ApplicationID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Application) => void - ): grpcWeb.ClientReadableStream; - - reactivateApplication( - request: ApplicationID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: Application) => void - ): grpcWeb.ClientReadableStream; - - removeApplication( - request: ApplicationID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - updateApplicationOIDCConfig( - request: OIDCConfigUpdate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: OIDCConfig) => void - ): grpcWeb.ClientReadableStream; - - regenerateOIDCClientSecret( - request: ApplicationID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ClientSecret) => void - ): grpcWeb.ClientReadableStream; - - searchProjectGrants( - request: ProjectGrantSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrantSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - projectGrantByID( - request: ProjectGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrantView) => void - ): grpcWeb.ClientReadableStream; - - createProjectGrant( - request: ProjectGrantCreate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrant) => void - ): grpcWeb.ClientReadableStream; - - updateProjectGrant( - request: ProjectGrantUpdate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrant) => void - ): grpcWeb.ClientReadableStream; - - deactivateProjectGrant( - request: ProjectGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrant) => void - ): grpcWeb.ClientReadableStream; - - reactivateProjectGrant( - request: ProjectGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrant) => void - ): grpcWeb.ClientReadableStream; - - removeProjectGrant( - request: ProjectGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getProjectGrantMemberRoles( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrantMemberRoles) => void - ): grpcWeb.ClientReadableStream; - - searchProjectGrantMembers( - request: ProjectGrantMemberSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrantMemberSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - addProjectGrantMember( - request: ProjectGrantMemberAdd, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrantMember) => void - ): grpcWeb.ClientReadableStream; - - changeProjectGrantMember( - request: ProjectGrantMemberChange, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: ProjectGrantMember) => void - ): grpcWeb.ClientReadableStream; - - removeProjectGrantMember( - request: ProjectGrantMemberRemove, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - searchUserGrants( - request: UserGrantSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrantSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - userGrantByID( - request: UserGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrantView) => void - ): grpcWeb.ClientReadableStream; - - createUserGrant( - request: UserGrantCreate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - - updateUserGrant( - request: UserGrantUpdate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - - deactivateUserGrant( - request: UserGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - - reactivateUserGrant( - request: UserGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - - removeUserGrant( - request: UserGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - bulkCreateUserGrant( - request: UserGrantCreateBulk, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - bulkUpdateUserGrant( - request: UserGrantUpdateBulk, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - bulkRemoveUserGrant( - request: UserGrantRemoveBulk, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - searchProjectUserGrants( - request: ProjectUserGrantSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrantSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - projectUserGrantByID( - request: ProjectUserGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrantView) => void - ): grpcWeb.ClientReadableStream; - - createProjectUserGrant( - request: UserGrantCreate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - - updateProjectUserGrant( - request: ProjectUserGrantUpdate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - - deactivateProjectUserGrant( - request: ProjectUserGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - - reactivateProjectUserGrant( - request: ProjectUserGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - - searchProjectGrantUserGrants( - request: ProjectGrantUserGrantSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrantSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - projectGrantUserGrantByID( - request: ProjectGrantUserGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrantView) => void - ): grpcWeb.ClientReadableStream; - - createProjectGrantUserGrant( - request: ProjectGrantUserGrantCreate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - - updateProjectGrantUserGrant( - request: ProjectGrantUserGrantUpdate, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - - deactivateProjectGrantUserGrant( - request: ProjectGrantUserGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - - reactivateProjectGrantUserGrant( - request: ProjectGrantUserGrantID, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: UserGrant) => void - ): grpcWeb.ClientReadableStream; - -} - -export class ManagementServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: string; }); - - healthz( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - ready( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - validate( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getIam( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getUserByID( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - getUserByEmailGlobal( - request: Email, - metadata?: grpcWeb.Metadata - ): Promise; - - searchUsers( - request: UserSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - isUserUnique( - request: UniqueUserRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createUser( - request: CreateUserRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deactivateUser( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - reactivateUser( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - lockUser( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - unlockUser( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteUser( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - userChanges( - request: ChangeRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - applicationChanges( - request: ChangeRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - orgChanges( - request: ChangeRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - projectChanges( - request: ChangeRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getUserProfile( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - updateUserProfile( - request: UpdateUserProfileRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getUserEmail( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - changeUserEmail( - request: UpdateUserEmailRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - resendEmailVerificationMail( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - getUserPhone( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - changeUserPhone( - request: UpdateUserPhoneRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - removeUserPhone( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - resendPhoneVerificationCode( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - getUserAddress( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - updateUserAddress( - request: UpdateUserAddressRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getUserMfas( - request: UserID, - metadata?: grpcWeb.Metadata - ): Promise; - - sendSetPasswordNotification( - request: SetPasswordNotificationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - setInitialPassword( - request: PasswordRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getPasswordComplexityPolicy( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - createPasswordComplexityPolicy( - request: PasswordComplexityPolicyCreate, - metadata?: grpcWeb.Metadata - ): Promise; - - updatePasswordComplexityPolicy( - request: PasswordComplexityPolicyUpdate, - metadata?: grpcWeb.Metadata - ): Promise; - - deletePasswordComplexityPolicy( - request: PasswordComplexityPolicyID, - metadata?: grpcWeb.Metadata - ): Promise; - - getPasswordAgePolicy( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - createPasswordAgePolicy( - request: PasswordAgePolicyCreate, - metadata?: grpcWeb.Metadata - ): Promise; - - updatePasswordAgePolicy( - request: PasswordAgePolicyUpdate, - metadata?: grpcWeb.Metadata - ): Promise; - - deletePasswordAgePolicy( - request: PasswordAgePolicyID, - metadata?: grpcWeb.Metadata - ): Promise; - - getPasswordLockoutPolicy( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - createPasswordLockoutPolicy( - request: PasswordLockoutPolicyCreate, - metadata?: grpcWeb.Metadata - ): Promise; - - updatePasswordLockoutPolicy( - request: PasswordLockoutPolicyUpdate, - metadata?: grpcWeb.Metadata - ): Promise; - - deletePasswordLockoutPolicy( - request: PasswordLockoutPolicyID, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyOrg( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getOrgByDomainGlobal( - request: Domain, - metadata?: grpcWeb.Metadata - ): Promise; - - deactivateMyOrg( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - reactivateMyOrg( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - searchMyOrgDomains( - request: OrgDomainSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - addMyOrgDomain( - request: AddOrgDomainRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - removeMyOrgDomain( - request: RemoveOrgDomainRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyOrgIamPolicy( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getOrgMemberRoles( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - addMyOrgMember( - request: AddOrgMemberRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - changeMyOrgMember( - request: ChangeOrgMemberRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - removeMyOrgMember( - request: RemoveOrgMemberRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - searchMyOrgMembers( - request: OrgMemberSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - searchProjects( - request: ProjectSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - projectByID( - request: ProjectID, - metadata?: grpcWeb.Metadata - ): Promise; - - createProject( - request: ProjectCreateRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateProject( - request: ProjectUpdateRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deactivateProject( - request: ProjectID, - metadata?: grpcWeb.Metadata - ): Promise; - - reactivateProject( - request: ProjectID, - metadata?: grpcWeb.Metadata - ): Promise; - - searchGrantedProjects( - request: GrantedProjectSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getGrantedProjectByID( - request: ProjectGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - getProjectMemberRoles( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - searchProjectMembers( - request: ProjectMemberSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - addProjectMember( - request: ProjectMemberAdd, - metadata?: grpcWeb.Metadata - ): Promise; - - changeProjectMember( - request: ProjectMemberChange, - metadata?: grpcWeb.Metadata - ): Promise; - - removeProjectMember( - request: ProjectMemberRemove, - metadata?: grpcWeb.Metadata - ): Promise; - - searchProjectRoles( - request: ProjectRoleSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - addProjectRole( - request: ProjectRoleAdd, - metadata?: grpcWeb.Metadata - ): Promise; - - bulkAddProjectRole( - request: ProjectRoleAddBulk, - metadata?: grpcWeb.Metadata - ): Promise; - - changeProjectRole( - request: ProjectRoleChange, - metadata?: grpcWeb.Metadata - ): Promise; - - removeProjectRole( - request: ProjectRoleRemove, - metadata?: grpcWeb.Metadata - ): Promise; - - searchApplications( - request: ApplicationSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - applicationByID( - request: ApplicationID, - metadata?: grpcWeb.Metadata - ): Promise; - - createOIDCApplication( - request: OIDCApplicationCreate, - metadata?: grpcWeb.Metadata - ): Promise; - - updateApplication( - request: ApplicationUpdate, - metadata?: grpcWeb.Metadata - ): Promise; - - deactivateApplication( - request: ApplicationID, - metadata?: grpcWeb.Metadata - ): Promise; - - reactivateApplication( - request: ApplicationID, - metadata?: grpcWeb.Metadata - ): Promise; - - removeApplication( - request: ApplicationID, - metadata?: grpcWeb.Metadata - ): Promise; - - updateApplicationOIDCConfig( - request: OIDCConfigUpdate, - metadata?: grpcWeb.Metadata - ): Promise; - - regenerateOIDCClientSecret( - request: ApplicationID, - metadata?: grpcWeb.Metadata - ): Promise; - - searchProjectGrants( - request: ProjectGrantSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - projectGrantByID( - request: ProjectGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - createProjectGrant( - request: ProjectGrantCreate, - metadata?: grpcWeb.Metadata - ): Promise; - - updateProjectGrant( - request: ProjectGrantUpdate, - metadata?: grpcWeb.Metadata - ): Promise; - - deactivateProjectGrant( - request: ProjectGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - reactivateProjectGrant( - request: ProjectGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - removeProjectGrant( - request: ProjectGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - getProjectGrantMemberRoles( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - searchProjectGrantMembers( - request: ProjectGrantMemberSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - addProjectGrantMember( - request: ProjectGrantMemberAdd, - metadata?: grpcWeb.Metadata - ): Promise; - - changeProjectGrantMember( - request: ProjectGrantMemberChange, - metadata?: grpcWeb.Metadata - ): Promise; - - removeProjectGrantMember( - request: ProjectGrantMemberRemove, - metadata?: grpcWeb.Metadata - ): Promise; - - searchUserGrants( - request: UserGrantSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - userGrantByID( - request: UserGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - createUserGrant( - request: UserGrantCreate, - metadata?: grpcWeb.Metadata - ): Promise; - - updateUserGrant( - request: UserGrantUpdate, - metadata?: grpcWeb.Metadata - ): Promise; - - deactivateUserGrant( - request: UserGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - reactivateUserGrant( - request: UserGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - removeUserGrant( - request: UserGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - bulkCreateUserGrant( - request: UserGrantCreateBulk, - metadata?: grpcWeb.Metadata - ): Promise; - - bulkUpdateUserGrant( - request: UserGrantUpdateBulk, - metadata?: grpcWeb.Metadata - ): Promise; - - bulkRemoveUserGrant( - request: UserGrantRemoveBulk, - metadata?: grpcWeb.Metadata - ): Promise; - - searchProjectUserGrants( - request: ProjectUserGrantSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - projectUserGrantByID( - request: ProjectUserGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - createProjectUserGrant( - request: UserGrantCreate, - metadata?: grpcWeb.Metadata - ): Promise; - - updateProjectUserGrant( - request: ProjectUserGrantUpdate, - metadata?: grpcWeb.Metadata - ): Promise; - - deactivateProjectUserGrant( - request: ProjectUserGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - reactivateProjectUserGrant( - request: ProjectUserGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - searchProjectGrantUserGrants( - request: ProjectGrantUserGrantSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - projectGrantUserGrantByID( - request: ProjectGrantUserGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - createProjectGrantUserGrant( - request: ProjectGrantUserGrantCreate, - metadata?: grpcWeb.Metadata - ): Promise; - - updateProjectGrantUserGrant( - request: ProjectGrantUserGrantUpdate, - metadata?: grpcWeb.Metadata - ): Promise; - - deactivateProjectGrantUserGrant( - request: ProjectGrantUserGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - - reactivateProjectGrantUserGrant( - request: ProjectGrantUserGrantID, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/console/src/app/proto/generated/management_grpc_web_pb.js b/console/src/app/proto/generated/management_grpc_web_pb.js deleted file mode 100644 index 7cec293a74..0000000000 --- a/console/src/app/proto/generated/management_grpc_web_pb.js +++ /dev/null @@ -1,9530 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for caos.zitadel.management.api.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var google_api_annotations_pb = require('./google/api/annotations_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') - -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js') - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var protoc$gen$swagger_options_annotations_pb = require('./protoc-gen-swagger/options/annotations_pb.js') - -var validate_validate_pb = require('./validate/validate_pb.js') - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js') - -var authoption_options_pb = require('./authoption/options_pb.js') -const proto = {}; -proto.caos = {}; -proto.caos.zitadel = {}; -proto.caos.zitadel.management = {}; -proto.caos.zitadel.management.api = {}; -proto.caos.zitadel.management.api.v1 = require('./management_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'binary'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'binary'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_Healthz = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/Healthz', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_Healthz = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.healthz = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/Healthz', - request, - metadata || {}, - methodDescriptor_ManagementService_Healthz, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.healthz = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/Healthz', - request, - metadata || {}, - methodDescriptor_ManagementService_Healthz); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_Ready = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/Ready', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_Ready = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.ready = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/Ready', - request, - metadata || {}, - methodDescriptor_ManagementService_Ready, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.ready = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/Ready', - request, - metadata || {}, - methodDescriptor_ManagementService_Ready); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Struct>} - */ -const methodDescriptor_ManagementService_Validate = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/Validate', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - google_protobuf_struct_pb.Struct, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_struct_pb.Struct.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.google.protobuf.Struct>} - */ -const methodInfo_ManagementService_Validate = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_struct_pb.Struct, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_struct_pb.Struct.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Struct)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.validate = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/Validate', - request, - metadata || {}, - methodDescriptor_ManagementService_Validate, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.validate = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/Validate', - request, - metadata || {}, - methodDescriptor_ManagementService_Validate); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.Iam>} - */ -const methodDescriptor_ManagementService_GetIam = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetIam', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.management.api.v1.Iam, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Iam.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.Iam>} - */ -const methodInfo_ManagementService_GetIam = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Iam, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Iam.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Iam)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getIam = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetIam', - request, - metadata || {}, - methodDescriptor_ManagementService_GetIam, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getIam = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetIam', - request, - metadata || {}, - methodDescriptor_ManagementService_GetIam); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.UserView>} - */ -const methodDescriptor_ManagementService_GetUserByID = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetUserByID', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - proto.caos.zitadel.management.api.v1.UserView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.UserView>} - */ -const methodInfo_ManagementService_GetUserByID = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getUserByID = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserByID', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserByID, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getUserByID = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserByID', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserByID); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.Email, - * !proto.caos.zitadel.management.api.v1.UserView>} - */ -const methodDescriptor_ManagementService_GetUserByEmailGlobal = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetUserByEmailGlobal', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.Email, - proto.caos.zitadel.management.api.v1.UserView, - /** - * @param {!proto.caos.zitadel.management.api.v1.Email} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.Email, - * !proto.caos.zitadel.management.api.v1.UserView>} - */ -const methodInfo_ManagementService_GetUserByEmailGlobal = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserView, - /** - * @param {!proto.caos.zitadel.management.api.v1.Email} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.Email} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getUserByEmailGlobal = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserByEmailGlobal', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserByEmailGlobal, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.Email} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getUserByEmailGlobal = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserByEmailGlobal', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserByEmailGlobal); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserSearchRequest, - * !proto.caos.zitadel.management.api.v1.UserSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchUsers = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchUsers', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserSearchRequest, - proto.caos.zitadel.management.api.v1.UserSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserSearchRequest, - * !proto.caos.zitadel.management.api.v1.UserSearchResponse>} - */ -const methodInfo_ManagementService_SearchUsers = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchUsers = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchUsers', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchUsers, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchUsers = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchUsers', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchUsers); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UniqueUserRequest, - * !proto.caos.zitadel.management.api.v1.UniqueUserResponse>} - */ -const methodDescriptor_ManagementService_IsUserUnique = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/IsUserUnique', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UniqueUserRequest, - proto.caos.zitadel.management.api.v1.UniqueUserResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.UniqueUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UniqueUserResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UniqueUserRequest, - * !proto.caos.zitadel.management.api.v1.UniqueUserResponse>} - */ -const methodInfo_ManagementService_IsUserUnique = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UniqueUserResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.UniqueUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UniqueUserResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UniqueUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UniqueUserResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.isUserUnique = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/IsUserUnique', - request, - metadata || {}, - methodDescriptor_ManagementService_IsUserUnique, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UniqueUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.isUserUnique = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/IsUserUnique', - request, - metadata || {}, - methodDescriptor_ManagementService_IsUserUnique); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.CreateUserRequest, - * !proto.caos.zitadel.management.api.v1.User>} - */ -const methodDescriptor_ManagementService_CreateUser = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/CreateUser', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.CreateUserRequest, - proto.caos.zitadel.management.api.v1.User, - /** - * @param {!proto.caos.zitadel.management.api.v1.CreateUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.User.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.CreateUserRequest, - * !proto.caos.zitadel.management.api.v1.User>} - */ -const methodInfo_ManagementService_CreateUser = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.User, - /** - * @param {!proto.caos.zitadel.management.api.v1.CreateUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.User.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.CreateUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.User)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.createUser = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateUser', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateUser, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.CreateUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.createUser = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateUser', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateUser); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.User>} - */ -const methodDescriptor_ManagementService_DeactivateUser = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeactivateUser', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - proto.caos.zitadel.management.api.v1.User, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.User.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.User>} - */ -const methodInfo_ManagementService_DeactivateUser = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.User, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.User.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.User)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deactivateUser = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateUser', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateUser, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deactivateUser = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateUser', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateUser); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.User>} - */ -const methodDescriptor_ManagementService_ReactivateUser = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ReactivateUser', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - proto.caos.zitadel.management.api.v1.User, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.User.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.User>} - */ -const methodInfo_ManagementService_ReactivateUser = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.User, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.User.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.User)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.reactivateUser = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateUser', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateUser, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.reactivateUser = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateUser', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateUser); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.User>} - */ -const methodDescriptor_ManagementService_LockUser = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/LockUser', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - proto.caos.zitadel.management.api.v1.User, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.User.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.User>} - */ -const methodInfo_ManagementService_LockUser = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.User, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.User.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.User)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.lockUser = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/LockUser', - request, - metadata || {}, - methodDescriptor_ManagementService_LockUser, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.lockUser = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/LockUser', - request, - metadata || {}, - methodDescriptor_ManagementService_LockUser); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.User>} - */ -const methodDescriptor_ManagementService_UnlockUser = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UnlockUser', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - proto.caos.zitadel.management.api.v1.User, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.User.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.User>} - */ -const methodInfo_ManagementService_UnlockUser = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.User, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.User.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.User)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.unlockUser = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UnlockUser', - request, - metadata || {}, - methodDescriptor_ManagementService_UnlockUser, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.unlockUser = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UnlockUser', - request, - metadata || {}, - methodDescriptor_ManagementService_UnlockUser); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_DeleteUser = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeleteUser', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_DeleteUser = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deleteUser = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeleteUser', - request, - metadata || {}, - methodDescriptor_ManagementService_DeleteUser, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deleteUser = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeleteUser', - request, - metadata || {}, - methodDescriptor_ManagementService_DeleteUser); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ChangeRequest, - * !proto.caos.zitadel.management.api.v1.Changes>} - */ -const methodDescriptor_ManagementService_UserChanges = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UserChanges', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ChangeRequest, - proto.caos.zitadel.management.api.v1.Changes, - /** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Changes.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ChangeRequest, - * !proto.caos.zitadel.management.api.v1.Changes>} - */ -const methodInfo_ManagementService_UserChanges = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Changes, - /** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Changes.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Changes)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.userChanges = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UserChanges', - request, - metadata || {}, - methodDescriptor_ManagementService_UserChanges, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.userChanges = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UserChanges', - request, - metadata || {}, - methodDescriptor_ManagementService_UserChanges); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ChangeRequest, - * !proto.caos.zitadel.management.api.v1.Changes>} - */ -const methodDescriptor_ManagementService_ApplicationChanges = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ChangeRequest, - proto.caos.zitadel.management.api.v1.Changes, - /** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Changes.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ChangeRequest, - * !proto.caos.zitadel.management.api.v1.Changes>} - */ -const methodInfo_ManagementService_ApplicationChanges = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Changes, - /** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Changes.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Changes)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.applicationChanges = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges', - request, - metadata || {}, - methodDescriptor_ManagementService_ApplicationChanges, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.applicationChanges = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges', - request, - metadata || {}, - methodDescriptor_ManagementService_ApplicationChanges); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ChangeRequest, - * !proto.caos.zitadel.management.api.v1.Changes>} - */ -const methodDescriptor_ManagementService_OrgChanges = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/OrgChanges', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ChangeRequest, - proto.caos.zitadel.management.api.v1.Changes, - /** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Changes.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ChangeRequest, - * !proto.caos.zitadel.management.api.v1.Changes>} - */ -const methodInfo_ManagementService_OrgChanges = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Changes, - /** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Changes.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Changes)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.orgChanges = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/OrgChanges', - request, - metadata || {}, - methodDescriptor_ManagementService_OrgChanges, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.orgChanges = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/OrgChanges', - request, - metadata || {}, - methodDescriptor_ManagementService_OrgChanges); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ChangeRequest, - * !proto.caos.zitadel.management.api.v1.Changes>} - */ -const methodDescriptor_ManagementService_ProjectChanges = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ProjectChanges', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ChangeRequest, - proto.caos.zitadel.management.api.v1.Changes, - /** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Changes.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ChangeRequest, - * !proto.caos.zitadel.management.api.v1.Changes>} - */ -const methodInfo_ManagementService_ProjectChanges = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Changes, - /** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Changes.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Changes)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.projectChanges = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ProjectChanges', - request, - metadata || {}, - methodDescriptor_ManagementService_ProjectChanges, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.projectChanges = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ProjectChanges', - request, - metadata || {}, - methodDescriptor_ManagementService_ProjectChanges); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.UserProfileView>} - */ -const methodDescriptor_ManagementService_GetUserProfile = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetUserProfile', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - proto.caos.zitadel.management.api.v1.UserProfileView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserProfileView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.UserProfileView>} - */ -const methodInfo_ManagementService_GetUserProfile = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserProfileView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserProfileView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserProfileView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getUserProfile = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserProfile', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserProfile, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getUserProfile = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserProfile', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserProfile); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest, - * !proto.caos.zitadel.management.api.v1.UserProfile>} - */ -const methodDescriptor_ManagementService_UpdateUserProfile = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest, - proto.caos.zitadel.management.api.v1.UserProfile, - /** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserProfile.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest, - * !proto.caos.zitadel.management.api.v1.UserProfile>} - */ -const methodInfo_ManagementService_UpdateUserProfile = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserProfile, - /** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserProfile.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserProfile)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updateUserProfile = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateUserProfile, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updateUserProfile = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateUserProfile); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.UserEmailView>} - */ -const methodDescriptor_ManagementService_GetUserEmail = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetUserEmail', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - proto.caos.zitadel.management.api.v1.UserEmailView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserEmailView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.UserEmailView>} - */ -const methodInfo_ManagementService_GetUserEmail = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserEmailView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserEmailView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserEmailView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getUserEmail = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserEmail', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserEmail, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getUserEmail = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserEmail', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserEmail); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest, - * !proto.caos.zitadel.management.api.v1.UserEmail>} - */ -const methodDescriptor_ManagementService_ChangeUserEmail = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest, - proto.caos.zitadel.management.api.v1.UserEmail, - /** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserEmail.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest, - * !proto.caos.zitadel.management.api.v1.UserEmail>} - */ -const methodInfo_ManagementService_ChangeUserEmail = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserEmail, - /** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserEmail.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserEmail)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.changeUserEmail = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeUserEmail, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.changeUserEmail = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeUserEmail); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_ResendEmailVerificationMail = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_ResendEmailVerificationMail = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.resendEmailVerificationMail = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail', - request, - metadata || {}, - methodDescriptor_ManagementService_ResendEmailVerificationMail, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.resendEmailVerificationMail = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail', - request, - metadata || {}, - methodDescriptor_ManagementService_ResendEmailVerificationMail); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.UserPhoneView>} - */ -const methodDescriptor_ManagementService_GetUserPhone = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetUserPhone', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - proto.caos.zitadel.management.api.v1.UserPhoneView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserPhoneView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.UserPhoneView>} - */ -const methodInfo_ManagementService_GetUserPhone = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserPhoneView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserPhoneView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserPhoneView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getUserPhone = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserPhone', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserPhone, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getUserPhone = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserPhone', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserPhone); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest, - * !proto.caos.zitadel.management.api.v1.UserPhone>} - */ -const methodDescriptor_ManagementService_ChangeUserPhone = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest, - proto.caos.zitadel.management.api.v1.UserPhone, - /** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserPhone.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest, - * !proto.caos.zitadel.management.api.v1.UserPhone>} - */ -const methodInfo_ManagementService_ChangeUserPhone = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserPhone, - /** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserPhone.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserPhone)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.changeUserPhone = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeUserPhone, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.changeUserPhone = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeUserPhone); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_RemoveUserPhone = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_RemoveUserPhone = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.removeUserPhone = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveUserPhone, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.removeUserPhone = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveUserPhone); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_ResendPhoneVerificationCode = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_ResendPhoneVerificationCode = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.resendPhoneVerificationCode = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode', - request, - metadata || {}, - methodDescriptor_ManagementService_ResendPhoneVerificationCode, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.resendPhoneVerificationCode = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode', - request, - metadata || {}, - methodDescriptor_ManagementService_ResendPhoneVerificationCode); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.UserAddressView>} - */ -const methodDescriptor_ManagementService_GetUserAddress = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetUserAddress', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - proto.caos.zitadel.management.api.v1.UserAddressView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserAddressView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.UserAddressView>} - */ -const methodInfo_ManagementService_GetUserAddress = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserAddressView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserAddressView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserAddressView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getUserAddress = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserAddress', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserAddress, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getUserAddress = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserAddress', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserAddress); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest, - * !proto.caos.zitadel.management.api.v1.UserAddress>} - */ -const methodDescriptor_ManagementService_UpdateUserAddress = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest, - proto.caos.zitadel.management.api.v1.UserAddress, - /** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserAddress.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest, - * !proto.caos.zitadel.management.api.v1.UserAddress>} - */ -const methodInfo_ManagementService_UpdateUserAddress = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserAddress, - /** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserAddress.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserAddress)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updateUserAddress = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateUserAddress, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updateUserAddress = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateUserAddress); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.MultiFactors>} - */ -const methodDescriptor_ManagementService_GetUserMfas = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetUserMfas', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserID, - proto.caos.zitadel.management.api.v1.MultiFactors, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.MultiFactors.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserID, - * !proto.caos.zitadel.management.api.v1.MultiFactors>} - */ -const methodInfo_ManagementService_GetUserMfas = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.MultiFactors, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.MultiFactors.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.MultiFactors)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getUserMfas = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserMfas', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserMfas, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getUserMfas = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetUserMfas', - request, - metadata || {}, - methodDescriptor_ManagementService_GetUserMfas); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_SendSetPasswordNotification = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_SendSetPasswordNotification = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.sendSetPasswordNotification = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification', - request, - metadata || {}, - methodDescriptor_ManagementService_SendSetPasswordNotification, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.sendSetPasswordNotification = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification', - request, - metadata || {}, - methodDescriptor_ManagementService_SendSetPasswordNotification); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.PasswordRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_SetInitialPassword = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.PasswordRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.PasswordRequest, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_SetInitialPassword = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.setInitialPassword = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword', - request, - metadata || {}, - methodDescriptor_ManagementService_SetInitialPassword, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.setInitialPassword = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword', - request, - metadata || {}, - methodDescriptor_ManagementService_SetInitialPassword); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy>} - */ -const methodDescriptor_ManagementService_GetPasswordComplexityPolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy>} - */ -const methodInfo_ManagementService_GetPasswordComplexityPolicy = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getPasswordComplexityPolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_GetPasswordComplexityPolicy, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getPasswordComplexityPolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_GetPasswordComplexityPolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate, - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy>} - */ -const methodDescriptor_ManagementService_CreatePasswordComplexityPolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate, - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy>} - */ -const methodInfo_ManagementService_CreatePasswordComplexityPolicy = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.createPasswordComplexityPolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_CreatePasswordComplexityPolicy, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.createPasswordComplexityPolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_CreatePasswordComplexityPolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate, - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy>} - */ -const methodDescriptor_ManagementService_UpdatePasswordComplexityPolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate, - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy>} - */ -const methodInfo_ManagementService_UpdatePasswordComplexityPolicy = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updatePasswordComplexityPolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdatePasswordComplexityPolicy, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updatePasswordComplexityPolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdatePasswordComplexityPolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_DeletePasswordComplexityPolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeletePasswordComplexityPolicy', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_DeletePasswordComplexityPolicy = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deletePasswordComplexityPolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeletePasswordComplexityPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_DeletePasswordComplexityPolicy, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deletePasswordComplexityPolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeletePasswordComplexityPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_DeletePasswordComplexityPolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicy>} - */ -const methodDescriptor_ManagementService_GetPasswordAgePolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.management.api.v1.PasswordAgePolicy, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordAgePolicy.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicy>} - */ -const methodInfo_ManagementService_GetPasswordAgePolicy = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.PasswordAgePolicy, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordAgePolicy.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.PasswordAgePolicy)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getPasswordAgePolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_GetPasswordAgePolicy, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getPasswordAgePolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_GetPasswordAgePolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate, - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicy>} - */ -const methodDescriptor_ManagementService_CreatePasswordAgePolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate, - proto.caos.zitadel.management.api.v1.PasswordAgePolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordAgePolicy.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate, - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicy>} - */ -const methodInfo_ManagementService_CreatePasswordAgePolicy = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.PasswordAgePolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordAgePolicy.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.PasswordAgePolicy)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.createPasswordAgePolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_CreatePasswordAgePolicy, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.createPasswordAgePolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_CreatePasswordAgePolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate, - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicy>} - */ -const methodDescriptor_ManagementService_UpdatePasswordAgePolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate, - proto.caos.zitadel.management.api.v1.PasswordAgePolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordAgePolicy.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate, - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicy>} - */ -const methodInfo_ManagementService_UpdatePasswordAgePolicy = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.PasswordAgePolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordAgePolicy.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.PasswordAgePolicy)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updatePasswordAgePolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdatePasswordAgePolicy, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updatePasswordAgePolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdatePasswordAgePolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicyID, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_DeletePasswordAgePolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeletePasswordAgePolicy', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.PasswordAgePolicyID, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.PasswordAgePolicyID, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_DeletePasswordAgePolicy = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deletePasswordAgePolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeletePasswordAgePolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_DeletePasswordAgePolicy, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deletePasswordAgePolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeletePasswordAgePolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_DeletePasswordAgePolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy>} - */ -const methodDescriptor_ManagementService_GetPasswordLockoutPolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy>} - */ -const methodInfo_ManagementService_GetPasswordLockoutPolicy = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getPasswordLockoutPolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_GetPasswordLockoutPolicy, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getPasswordLockoutPolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_GetPasswordLockoutPolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate, - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy>} - */ -const methodDescriptor_ManagementService_CreatePasswordLockoutPolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate, - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy>} - */ -const methodInfo_ManagementService_CreatePasswordLockoutPolicy = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.createPasswordLockoutPolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_CreatePasswordLockoutPolicy, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.createPasswordLockoutPolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_CreatePasswordLockoutPolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate, - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy>} - */ -const methodDescriptor_ManagementService_UpdatePasswordLockoutPolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate, - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy>} - */ -const methodInfo_ManagementService_UpdatePasswordLockoutPolicy = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updatePasswordLockoutPolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdatePasswordLockoutPolicy, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updatePasswordLockoutPolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdatePasswordLockoutPolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_DeletePasswordLockoutPolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeletePasswordLockoutPolicy', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_DeletePasswordLockoutPolicy = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deletePasswordLockoutPolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeletePasswordLockoutPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_DeletePasswordLockoutPolicy, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deletePasswordLockoutPolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeletePasswordLockoutPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_DeletePasswordLockoutPolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.OrgView>} - */ -const methodDescriptor_ManagementService_GetMyOrg = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetMyOrg', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.management.api.v1.OrgView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.OrgView>} - */ -const methodInfo_ManagementService_GetMyOrg = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.OrgView, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgView.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.OrgView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getMyOrg = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetMyOrg', - request, - metadata || {}, - methodDescriptor_ManagementService_GetMyOrg, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getMyOrg = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetMyOrg', - request, - metadata || {}, - methodDescriptor_ManagementService_GetMyOrg); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.Domain, - * !proto.caos.zitadel.management.api.v1.OrgView>} - */ -const methodDescriptor_ManagementService_GetOrgByDomainGlobal = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.Domain, - proto.caos.zitadel.management.api.v1.OrgView, - /** - * @param {!proto.caos.zitadel.management.api.v1.Domain} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.Domain, - * !proto.caos.zitadel.management.api.v1.OrgView>} - */ -const methodInfo_ManagementService_GetOrgByDomainGlobal = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.OrgView, - /** - * @param {!proto.caos.zitadel.management.api.v1.Domain} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.Domain} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.OrgView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getOrgByDomainGlobal = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal', - request, - metadata || {}, - methodDescriptor_ManagementService_GetOrgByDomainGlobal, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.Domain} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getOrgByDomainGlobal = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal', - request, - metadata || {}, - methodDescriptor_ManagementService_GetOrgByDomainGlobal); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.Org>} - */ -const methodDescriptor_ManagementService_DeactivateMyOrg = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.management.api.v1.Org, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Org.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.Org>} - */ -const methodInfo_ManagementService_DeactivateMyOrg = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Org, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Org.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Org)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deactivateMyOrg = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateMyOrg, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deactivateMyOrg = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateMyOrg); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.Org>} - */ -const methodDescriptor_ManagementService_ReactivateMyOrg = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.management.api.v1.Org, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Org.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.Org>} - */ -const methodInfo_ManagementService_ReactivateMyOrg = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Org, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Org.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Org)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.reactivateMyOrg = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateMyOrg, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.reactivateMyOrg = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateMyOrg); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest, - * !proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchMyOrgDomains = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest, - proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest, - * !proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse>} - */ -const methodInfo_ManagementService_SearchMyOrgDomains = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchMyOrgDomains = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchMyOrgDomains, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchMyOrgDomains = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchMyOrgDomains); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.AddOrgDomainRequest, - * !proto.caos.zitadel.management.api.v1.OrgDomain>} - */ -const methodDescriptor_ManagementService_AddMyOrgDomain = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.AddOrgDomainRequest, - proto.caos.zitadel.management.api.v1.OrgDomain, - /** - * @param {!proto.caos.zitadel.management.api.v1.AddOrgDomainRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgDomain.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.AddOrgDomainRequest, - * !proto.caos.zitadel.management.api.v1.OrgDomain>} - */ -const methodInfo_ManagementService_AddMyOrgDomain = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.OrgDomain, - /** - * @param {!proto.caos.zitadel.management.api.v1.AddOrgDomainRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgDomain.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.AddOrgDomainRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.OrgDomain)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.addMyOrgDomain = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain', - request, - metadata || {}, - methodDescriptor_ManagementService_AddMyOrgDomain, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.AddOrgDomainRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.addMyOrgDomain = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain', - request, - metadata || {}, - methodDescriptor_ManagementService_AddMyOrgDomain); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_RemoveMyOrgDomain = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_RemoveMyOrgDomain = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.removeMyOrgDomain = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveMyOrgDomain, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.removeMyOrgDomain = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveMyOrgDomain); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.OrgIamPolicy>} - */ -const methodDescriptor_ManagementService_GetMyOrgIamPolicy = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.management.api.v1.OrgIamPolicy, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgIamPolicy.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.OrgIamPolicy>} - */ -const methodInfo_ManagementService_GetMyOrgIamPolicy = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.OrgIamPolicy, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgIamPolicy.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.OrgIamPolicy)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getMyOrgIamPolicy = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_GetMyOrgIamPolicy, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getMyOrgIamPolicy = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy', - request, - metadata || {}, - methodDescriptor_ManagementService_GetMyOrgIamPolicy); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.OrgMemberRoles>} - */ -const methodDescriptor_ManagementService_GetOrgMemberRoles = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.management.api.v1.OrgMemberRoles, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgMemberRoles.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.OrgMemberRoles>} - */ -const methodInfo_ManagementService_GetOrgMemberRoles = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.OrgMemberRoles, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgMemberRoles.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.OrgMemberRoles)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getOrgMemberRoles = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles', - request, - metadata || {}, - methodDescriptor_ManagementService_GetOrgMemberRoles, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getOrgMemberRoles = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles', - request, - metadata || {}, - methodDescriptor_ManagementService_GetOrgMemberRoles); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.AddOrgMemberRequest, - * !proto.caos.zitadel.management.api.v1.OrgMember>} - */ -const methodDescriptor_ManagementService_AddMyOrgMember = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.AddOrgMemberRequest, - proto.caos.zitadel.management.api.v1.OrgMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.AddOrgMemberRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgMember.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.AddOrgMemberRequest, - * !proto.caos.zitadel.management.api.v1.OrgMember>} - */ -const methodInfo_ManagementService_AddMyOrgMember = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.OrgMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.AddOrgMemberRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgMember.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.AddOrgMemberRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.OrgMember)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.addMyOrgMember = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember', - request, - metadata || {}, - methodDescriptor_ManagementService_AddMyOrgMember, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.AddOrgMemberRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.addMyOrgMember = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember', - request, - metadata || {}, - methodDescriptor_ManagementService_AddMyOrgMember); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest, - * !proto.caos.zitadel.management.api.v1.OrgMember>} - */ -const methodDescriptor_ManagementService_ChangeMyOrgMember = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest, - proto.caos.zitadel.management.api.v1.OrgMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgMember.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest, - * !proto.caos.zitadel.management.api.v1.OrgMember>} - */ -const methodInfo_ManagementService_ChangeMyOrgMember = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.OrgMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgMember.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.OrgMember)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.changeMyOrgMember = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeMyOrgMember, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.changeMyOrgMember = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeMyOrgMember); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_RemoveMyOrgMember = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_RemoveMyOrgMember = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.removeMyOrgMember = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveMyOrgMember, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.removeMyOrgMember = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveMyOrgMember); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest, - * !proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchMyOrgMembers = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest, - proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest, - * !proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse>} - */ -const methodInfo_ManagementService_SearchMyOrgMembers = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchMyOrgMembers = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchMyOrgMembers, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchMyOrgMembers = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchMyOrgMembers); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchProjects = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchProjects', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectSearchRequest, - proto.caos.zitadel.management.api.v1.ProjectSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectSearchResponse>} - */ -const methodInfo_ManagementService_SearchProjects = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchProjects = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjects', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjects, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchProjects = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjects', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjects); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectID, - * !proto.caos.zitadel.management.api.v1.ProjectView>} - */ -const methodDescriptor_ManagementService_ProjectByID = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ProjectByID', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectID, - proto.caos.zitadel.management.api.v1.ProjectView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectID, - * !proto.caos.zitadel.management.api.v1.ProjectView>} - */ -const methodInfo_ManagementService_ProjectByID = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.projectByID = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ProjectByID', - request, - metadata || {}, - methodDescriptor_ManagementService_ProjectByID, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.projectByID = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ProjectByID', - request, - metadata || {}, - methodDescriptor_ManagementService_ProjectByID); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectCreateRequest, - * !proto.caos.zitadel.management.api.v1.Project>} - */ -const methodDescriptor_ManagementService_CreateProject = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/CreateProject', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectCreateRequest, - proto.caos.zitadel.management.api.v1.Project, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectCreateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Project.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectCreateRequest, - * !proto.caos.zitadel.management.api.v1.Project>} - */ -const methodInfo_ManagementService_CreateProject = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Project, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectCreateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Project.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectCreateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Project)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.createProject = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateProject', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateProject, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectCreateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.createProject = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateProject', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateProject); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectUpdateRequest, - * !proto.caos.zitadel.management.api.v1.Project>} - */ -const methodDescriptor_ManagementService_UpdateProject = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdateProject', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectUpdateRequest, - proto.caos.zitadel.management.api.v1.Project, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUpdateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Project.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectUpdateRequest, - * !proto.caos.zitadel.management.api.v1.Project>} - */ -const methodInfo_ManagementService_UpdateProject = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Project, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUpdateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Project.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUpdateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Project)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updateProject = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateProject', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateProject, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUpdateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updateProject = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateProject', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateProject); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectID, - * !proto.caos.zitadel.management.api.v1.Project>} - */ -const methodDescriptor_ManagementService_DeactivateProject = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProject', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectID, - proto.caos.zitadel.management.api.v1.Project, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Project.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectID, - * !proto.caos.zitadel.management.api.v1.Project>} - */ -const methodInfo_ManagementService_DeactivateProject = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Project, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Project.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Project)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deactivateProject = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProject', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateProject, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deactivateProject = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProject', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateProject); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectID, - * !proto.caos.zitadel.management.api.v1.Project>} - */ -const methodDescriptor_ManagementService_ReactivateProject = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProject', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectID, - proto.caos.zitadel.management.api.v1.Project, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Project.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectID, - * !proto.caos.zitadel.management.api.v1.Project>} - */ -const methodInfo_ManagementService_ReactivateProject = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Project, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Project.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Project)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.reactivateProject = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProject', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateProject, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.reactivateProject = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProject', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateProject); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchGrantedProjects = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest, - proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse>} - */ -const methodInfo_ManagementService_SearchGrantedProjects = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchGrantedProjects = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchGrantedProjects, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchGrantedProjects = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchGrantedProjects); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantID, - * !proto.caos.zitadel.management.api.v1.ProjectGrantView>} - */ -const methodDescriptor_ManagementService_GetGrantedProjectByID = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantID, - proto.caos.zitadel.management.api.v1.ProjectGrantView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantID, - * !proto.caos.zitadel.management.api.v1.ProjectGrantView>} - */ -const methodInfo_ManagementService_GetGrantedProjectByID = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrantView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrantView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getGrantedProjectByID = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID', - request, - metadata || {}, - methodDescriptor_ManagementService_GetGrantedProjectByID, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getGrantedProjectByID = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID', - request, - metadata || {}, - methodDescriptor_ManagementService_GetGrantedProjectByID); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.ProjectMemberRoles>} - */ -const methodDescriptor_ManagementService_GetProjectMemberRoles = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.management.api.v1.ProjectMemberRoles, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectMemberRoles.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.ProjectMemberRoles>} - */ -const methodInfo_ManagementService_GetProjectMemberRoles = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectMemberRoles, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectMemberRoles.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectMemberRoles)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getProjectMemberRoles = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles', - request, - metadata || {}, - methodDescriptor_ManagementService_GetProjectMemberRoles, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getProjectMemberRoles = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles', - request, - metadata || {}, - methodDescriptor_ManagementService_GetProjectMemberRoles); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchProjectMembers = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest, - proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse>} - */ -const methodInfo_ManagementService_SearchProjectMembers = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchProjectMembers = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectMembers, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchProjectMembers = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectMembers); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectMemberAdd, - * !proto.caos.zitadel.management.api.v1.ProjectMember>} - */ -const methodDescriptor_ManagementService_AddProjectMember = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/AddProjectMember', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectMemberAdd, - proto.caos.zitadel.management.api.v1.ProjectMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberAdd} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectMember.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectMemberAdd, - * !proto.caos.zitadel.management.api.v1.ProjectMember>} - */ -const methodInfo_ManagementService_AddProjectMember = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberAdd} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectMember.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberAdd} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectMember)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.addProjectMember = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/AddProjectMember', - request, - metadata || {}, - methodDescriptor_ManagementService_AddProjectMember, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberAdd} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.addProjectMember = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/AddProjectMember', - request, - metadata || {}, - methodDescriptor_ManagementService_AddProjectMember); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectMemberChange, - * !proto.caos.zitadel.management.api.v1.ProjectMember>} - */ -const methodDescriptor_ManagementService_ChangeProjectMember = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectMemberChange, - proto.caos.zitadel.management.api.v1.ProjectMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberChange} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectMember.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectMemberChange, - * !proto.caos.zitadel.management.api.v1.ProjectMember>} - */ -const methodInfo_ManagementService_ChangeProjectMember = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberChange} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectMember.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberChange} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectMember)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.changeProjectMember = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeProjectMember, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberChange} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.changeProjectMember = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeProjectMember); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectMemberRemove, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_RemoveProjectMember = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectMemberRemove, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberRemove} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectMemberRemove, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_RemoveProjectMember = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberRemove} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberRemove} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.removeProjectMember = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveProjectMember, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberRemove} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.removeProjectMember = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveProjectMember); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchProjectRoles = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest, - proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse>} - */ -const methodInfo_ManagementService_SearchProjectRoles = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchProjectRoles = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectRoles, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchProjectRoles = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectRoles); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectRoleAdd, - * !proto.caos.zitadel.management.api.v1.ProjectRole>} - */ -const methodDescriptor_ManagementService_AddProjectRole = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/AddProjectRole', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectRoleAdd, - proto.caos.zitadel.management.api.v1.ProjectRole, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAdd} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectRole.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectRoleAdd, - * !proto.caos.zitadel.management.api.v1.ProjectRole>} - */ -const methodInfo_ManagementService_AddProjectRole = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectRole, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAdd} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectRole.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAdd} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectRole)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.addProjectRole = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/AddProjectRole', - request, - metadata || {}, - methodDescriptor_ManagementService_AddProjectRole, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAdd} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.addProjectRole = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/AddProjectRole', - request, - metadata || {}, - methodDescriptor_ManagementService_AddProjectRole); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_BulkAddProjectRole = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_BulkAddProjectRole = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.bulkAddProjectRole = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole', - request, - metadata || {}, - methodDescriptor_ManagementService_BulkAddProjectRole, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.bulkAddProjectRole = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole', - request, - metadata || {}, - methodDescriptor_ManagementService_BulkAddProjectRole); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectRoleChange, - * !proto.caos.zitadel.management.api.v1.ProjectRole>} - */ -const methodDescriptor_ManagementService_ChangeProjectRole = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectRoleChange, - proto.caos.zitadel.management.api.v1.ProjectRole, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleChange} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectRole.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectRoleChange, - * !proto.caos.zitadel.management.api.v1.ProjectRole>} - */ -const methodInfo_ManagementService_ChangeProjectRole = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectRole, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleChange} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectRole.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleChange} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectRole)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.changeProjectRole = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeProjectRole, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleChange} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.changeProjectRole = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeProjectRole); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectRoleRemove, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_RemoveProjectRole = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectRoleRemove, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleRemove} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectRoleRemove, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_RemoveProjectRole = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleRemove} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleRemove} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.removeProjectRole = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveProjectRole, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleRemove} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.removeProjectRole = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveProjectRole); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ApplicationSearchRequest, - * !proto.caos.zitadel.management.api.v1.ApplicationSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchApplications = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchApplications', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ApplicationSearchRequest, - proto.caos.zitadel.management.api.v1.ApplicationSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ApplicationSearchRequest, - * !proto.caos.zitadel.management.api.v1.ApplicationSearchResponse>} - */ -const methodInfo_ManagementService_SearchApplications = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ApplicationSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ApplicationSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchApplications = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchApplications', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchApplications, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchApplications = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchApplications', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchApplications); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ApplicationID, - * !proto.caos.zitadel.management.api.v1.ApplicationView>} - */ -const methodDescriptor_ManagementService_ApplicationByID = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ApplicationByID', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ApplicationID, - proto.caos.zitadel.management.api.v1.ApplicationView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ApplicationView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ApplicationID, - * !proto.caos.zitadel.management.api.v1.ApplicationView>} - */ -const methodInfo_ManagementService_ApplicationByID = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ApplicationView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ApplicationView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ApplicationView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.applicationByID = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ApplicationByID', - request, - metadata || {}, - methodDescriptor_ManagementService_ApplicationByID, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.applicationByID = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ApplicationByID', - request, - metadata || {}, - methodDescriptor_ManagementService_ApplicationByID); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.OIDCApplicationCreate, - * !proto.caos.zitadel.management.api.v1.Application>} - */ -const methodDescriptor_ManagementService_CreateOIDCApplication = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.OIDCApplicationCreate, - proto.caos.zitadel.management.api.v1.Application, - /** - * @param {!proto.caos.zitadel.management.api.v1.OIDCApplicationCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Application.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.OIDCApplicationCreate, - * !proto.caos.zitadel.management.api.v1.Application>} - */ -const methodInfo_ManagementService_CreateOIDCApplication = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Application, - /** - * @param {!proto.caos.zitadel.management.api.v1.OIDCApplicationCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Application.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OIDCApplicationCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Application)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.createOIDCApplication = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateOIDCApplication, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OIDCApplicationCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.createOIDCApplication = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateOIDCApplication); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ApplicationUpdate, - * !proto.caos.zitadel.management.api.v1.Application>} - */ -const methodDescriptor_ManagementService_UpdateApplication = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdateApplication', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ApplicationUpdate, - proto.caos.zitadel.management.api.v1.Application, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Application.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ApplicationUpdate, - * !proto.caos.zitadel.management.api.v1.Application>} - */ -const methodInfo_ManagementService_UpdateApplication = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Application, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Application.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Application)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updateApplication = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateApplication', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateApplication, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updateApplication = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateApplication', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateApplication); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ApplicationID, - * !proto.caos.zitadel.management.api.v1.Application>} - */ -const methodDescriptor_ManagementService_DeactivateApplication = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ApplicationID, - proto.caos.zitadel.management.api.v1.Application, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Application.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ApplicationID, - * !proto.caos.zitadel.management.api.v1.Application>} - */ -const methodInfo_ManagementService_DeactivateApplication = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Application, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Application.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Application)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deactivateApplication = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateApplication, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deactivateApplication = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateApplication); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ApplicationID, - * !proto.caos.zitadel.management.api.v1.Application>} - */ -const methodDescriptor_ManagementService_ReactivateApplication = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ApplicationID, - proto.caos.zitadel.management.api.v1.Application, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Application.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ApplicationID, - * !proto.caos.zitadel.management.api.v1.Application>} - */ -const methodInfo_ManagementService_ReactivateApplication = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.Application, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.Application.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.Application)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.reactivateApplication = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateApplication, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.reactivateApplication = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateApplication); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ApplicationID, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_RemoveApplication = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/RemoveApplication', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ApplicationID, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ApplicationID, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_RemoveApplication = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.removeApplication = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveApplication', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveApplication, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.removeApplication = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveApplication', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveApplication); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.OIDCConfigUpdate, - * !proto.caos.zitadel.management.api.v1.OIDCConfig>} - */ -const methodDescriptor_ManagementService_UpdateApplicationOIDCConfig = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.OIDCConfigUpdate, - proto.caos.zitadel.management.api.v1.OIDCConfig, - /** - * @param {!proto.caos.zitadel.management.api.v1.OIDCConfigUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OIDCConfig.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.OIDCConfigUpdate, - * !proto.caos.zitadel.management.api.v1.OIDCConfig>} - */ -const methodInfo_ManagementService_UpdateApplicationOIDCConfig = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.OIDCConfig, - /** - * @param {!proto.caos.zitadel.management.api.v1.OIDCConfigUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.OIDCConfig.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OIDCConfigUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.OIDCConfig)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updateApplicationOIDCConfig = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateApplicationOIDCConfig, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OIDCConfigUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updateApplicationOIDCConfig = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateApplicationOIDCConfig); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ApplicationID, - * !proto.caos.zitadel.management.api.v1.ClientSecret>} - */ -const methodDescriptor_ManagementService_RegenerateOIDCClientSecret = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ApplicationID, - proto.caos.zitadel.management.api.v1.ClientSecret, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ClientSecret.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ApplicationID, - * !proto.caos.zitadel.management.api.v1.ClientSecret>} - */ -const methodInfo_ManagementService_RegenerateOIDCClientSecret = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ClientSecret, - /** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ClientSecret.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ClientSecret)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.regenerateOIDCClientSecret = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret', - request, - metadata || {}, - methodDescriptor_ManagementService_RegenerateOIDCClientSecret, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.regenerateOIDCClientSecret = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret', - request, - metadata || {}, - methodDescriptor_ManagementService_RegenerateOIDCClientSecret); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchProjectGrants = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest, - proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse>} - */ -const methodInfo_ManagementService_SearchProjectGrants = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchProjectGrants = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectGrants, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchProjectGrants = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectGrants); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantID, - * !proto.caos.zitadel.management.api.v1.ProjectGrantView>} - */ -const methodDescriptor_ManagementService_ProjectGrantByID = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantID, - proto.caos.zitadel.management.api.v1.ProjectGrantView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantID, - * !proto.caos.zitadel.management.api.v1.ProjectGrantView>} - */ -const methodInfo_ManagementService_ProjectGrantByID = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrantView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrantView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.projectGrantByID = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID', - request, - metadata || {}, - methodDescriptor_ManagementService_ProjectGrantByID, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.projectGrantByID = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID', - request, - metadata || {}, - methodDescriptor_ManagementService_ProjectGrantByID); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantCreate, - * !proto.caos.zitadel.management.api.v1.ProjectGrant>} - */ -const methodDescriptor_ManagementService_CreateProjectGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantCreate, - proto.caos.zitadel.management.api.v1.ProjectGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantCreate, - * !proto.caos.zitadel.management.api.v1.ProjectGrant>} - */ -const methodInfo_ManagementService_CreateProjectGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.createProjectGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateProjectGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.createProjectGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateProjectGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUpdate, - * !proto.caos.zitadel.management.api.v1.ProjectGrant>} - */ -const methodDescriptor_ManagementService_UpdateProjectGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantUpdate, - proto.caos.zitadel.management.api.v1.ProjectGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUpdate, - * !proto.caos.zitadel.management.api.v1.ProjectGrant>} - */ -const methodInfo_ManagementService_UpdateProjectGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updateProjectGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateProjectGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updateProjectGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateProjectGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantID, - * !proto.caos.zitadel.management.api.v1.ProjectGrant>} - */ -const methodDescriptor_ManagementService_DeactivateProjectGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantID, - proto.caos.zitadel.management.api.v1.ProjectGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantID, - * !proto.caos.zitadel.management.api.v1.ProjectGrant>} - */ -const methodInfo_ManagementService_DeactivateProjectGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deactivateProjectGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateProjectGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deactivateProjectGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateProjectGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantID, - * !proto.caos.zitadel.management.api.v1.ProjectGrant>} - */ -const methodDescriptor_ManagementService_ReactivateProjectGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantID, - proto.caos.zitadel.management.api.v1.ProjectGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantID, - * !proto.caos.zitadel.management.api.v1.ProjectGrant>} - */ -const methodInfo_ManagementService_ReactivateProjectGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.reactivateProjectGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateProjectGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.reactivateProjectGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateProjectGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantID, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_RemoveProjectGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantID, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantID, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_RemoveProjectGrant = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.removeProjectGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveProjectGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.removeProjectGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveProjectGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles>} - */ -const methodDescriptor_ManagementService_GetProjectGrantMemberRoles = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.google.protobuf.Empty, - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles>} - */ -const methodInfo_ManagementService_GetProjectGrantMemberRoles = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.getProjectGrantMemberRoles = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles', - request, - metadata || {}, - methodDescriptor_ManagementService_GetProjectGrantMemberRoles, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.getProjectGrantMemberRoles = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles', - request, - metadata || {}, - methodDescriptor_ManagementService_GetProjectGrantMemberRoles); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchProjectGrantMembers = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest, - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse>} - */ -const methodInfo_ManagementService_SearchProjectGrantMembers = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchProjectGrantMembers = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectGrantMembers, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchProjectGrantMembers = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectGrantMembers); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd, - * !proto.caos.zitadel.management.api.v1.ProjectGrantMember>} - */ -const methodDescriptor_ManagementService_AddProjectGrantMember = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd, - proto.caos.zitadel.management.api.v1.ProjectGrantMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantMember.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd, - * !proto.caos.zitadel.management.api.v1.ProjectGrantMember>} - */ -const methodInfo_ManagementService_AddProjectGrantMember = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrantMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantMember.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrantMember)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.addProjectGrantMember = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember', - request, - metadata || {}, - methodDescriptor_ManagementService_AddProjectGrantMember, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.addProjectGrantMember = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember', - request, - metadata || {}, - methodDescriptor_ManagementService_AddProjectGrantMember); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange, - * !proto.caos.zitadel.management.api.v1.ProjectGrantMember>} - */ -const methodDescriptor_ManagementService_ChangeProjectGrantMember = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange, - proto.caos.zitadel.management.api.v1.ProjectGrantMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantMember.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange, - * !proto.caos.zitadel.management.api.v1.ProjectGrantMember>} - */ -const methodInfo_ManagementService_ChangeProjectGrantMember = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.ProjectGrantMember, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.ProjectGrantMember.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.ProjectGrantMember)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.changeProjectGrantMember = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeProjectGrantMember, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.changeProjectGrantMember = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember', - request, - metadata || {}, - methodDescriptor_ManagementService_ChangeProjectGrantMember); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_RemoveProjectGrantMember = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_RemoveProjectGrantMember = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.removeProjectGrantMember = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveProjectGrantMember, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.removeProjectGrantMember = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveProjectGrantMember); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserGrantSearchRequest, - * !proto.caos.zitadel.management.api.v1.UserGrantSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchUserGrants = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserGrantSearchRequest, - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserGrantSearchRequest, - * !proto.caos.zitadel.management.api.v1.UserGrantSearchResponse>} - */ -const methodInfo_ManagementService_SearchUserGrants = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrantSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchUserGrants = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchUserGrants, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchUserGrants = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchUserGrants); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrantView>} - */ -const methodDescriptor_ManagementService_UserGrantByID = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UserGrantByID', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserGrantID, - proto.caos.zitadel.management.api.v1.UserGrantView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrantView>} - */ -const methodInfo_ManagementService_UserGrantByID = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrantView, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrantView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.userGrantByID = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UserGrantByID', - request, - metadata || {}, - methodDescriptor_ManagementService_UserGrantByID, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.userGrantByID = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UserGrantByID', - request, - metadata || {}, - methodDescriptor_ManagementService_UserGrantByID); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserGrantCreate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_CreateUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserGrantCreate, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserGrantCreate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_CreateUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.createUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.createUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserGrantUpdate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_UpdateUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserGrantUpdate, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserGrantUpdate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_UpdateUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updateUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updateUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_DeactivateUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserGrantID, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_DeactivateUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deactivateUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deactivateUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_ReactivateUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserGrantID, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_ReactivateUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.reactivateUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.reactivateUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserGrantID, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_RemoveUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserGrantID, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserGrantID, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_RemoveUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.removeUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.removeUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_RemoveUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserGrantCreateBulk, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_BulkCreateUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/BulkCreateUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserGrantCreateBulk, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreateBulk} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserGrantCreateBulk, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_BulkCreateUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreateBulk} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreateBulk} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.bulkCreateUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/BulkCreateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_BulkCreateUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreateBulk} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.bulkCreateUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/BulkCreateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_BulkCreateUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_BulkUpdateUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/BulkUpdateUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_BulkUpdateUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.bulkUpdateUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/BulkUpdateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_BulkUpdateUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.bulkUpdateUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/BulkUpdateUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_BulkUpdateUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ManagementService_BulkRemoveUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk, - * !proto.google.protobuf.Empty>} - */ -const methodInfo_ManagementService_BulkRemoveUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.bulkRemoveUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_BulkRemoveUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.bulkRemoveUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_BulkRemoveUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest, - * !proto.caos.zitadel.management.api.v1.UserGrantSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchProjectUserGrants = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectUserGrants', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest, - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest, - * !proto.caos.zitadel.management.api.v1.UserGrantSearchResponse>} - */ -const methodInfo_ManagementService_SearchProjectUserGrants = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrantSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchProjectUserGrants = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectUserGrants', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectUserGrants, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchProjectUserGrants = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectUserGrants', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectUserGrants); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrantView>} - */ -const methodDescriptor_ManagementService_ProjectUserGrantByID = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ProjectUserGrantByID', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectUserGrantID, - proto.caos.zitadel.management.api.v1.UserGrantView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrantView>} - */ -const methodInfo_ManagementService_ProjectUserGrantByID = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrantView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrantView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.projectUserGrantByID = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ProjectUserGrantByID', - request, - metadata || {}, - methodDescriptor_ManagementService_ProjectUserGrantByID, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.projectUserGrantByID = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ProjectUserGrantByID', - request, - metadata || {}, - methodDescriptor_ManagementService_ProjectUserGrantByID); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.UserGrantCreate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_CreateProjectUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/CreateProjectUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.UserGrantCreate, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.UserGrantCreate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_CreateProjectUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.createProjectUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateProjectUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateProjectUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.createProjectUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateProjectUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateProjectUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_UpdateProjectUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdateProjectUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_UpdateProjectUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updateProjectUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateProjectUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateProjectUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updateProjectUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateProjectUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateProjectUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_DeactivateProjectUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectUserGrantID, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_DeactivateProjectUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deactivateProjectUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateProjectUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deactivateProjectUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateProjectUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_ReactivateProjectUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectUserGrantID, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_ReactivateProjectUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.reactivateProjectUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateProjectUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.reactivateProjectUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateProjectUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest, - * !proto.caos.zitadel.management.api.v1.UserGrantSearchResponse>} - */ -const methodDescriptor_ManagementService_SearchProjectGrantUserGrants = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantUserGrants', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest, - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest, - * !proto.caos.zitadel.management.api.v1.UserGrantSearchResponse>} - */ -const methodInfo_ManagementService_SearchProjectGrantUserGrants = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrantSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.searchProjectGrantUserGrants = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantUserGrants', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectGrantUserGrants, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.searchProjectGrantUserGrants = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantUserGrants', - request, - metadata || {}, - methodDescriptor_ManagementService_SearchProjectGrantUserGrants); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrantView>} - */ -const methodDescriptor_ManagementService_ProjectGrantUserGrantByID = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ProjectGrantUserGrantByID', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID, - proto.caos.zitadel.management.api.v1.UserGrantView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantView.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrantView>} - */ -const methodInfo_ManagementService_ProjectGrantUserGrantByID = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrantView, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrantView.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrantView)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.projectGrantUserGrantByID = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ProjectGrantUserGrantByID', - request, - metadata || {}, - methodDescriptor_ManagementService_ProjectGrantUserGrantByID, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.projectGrantUserGrantByID = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ProjectGrantUserGrantByID', - request, - metadata || {}, - methodDescriptor_ManagementService_ProjectGrantUserGrantByID); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_CreateProjectGrantUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrantUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_CreateProjectGrantUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.createProjectGrantUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrantUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateProjectGrantUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.createProjectGrantUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrantUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_CreateProjectGrantUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_UpdateProjectGrantUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrantUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_UpdateProjectGrantUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.updateProjectGrantUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrantUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateProjectGrantUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.updateProjectGrantUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrantUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_UpdateProjectGrantUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_DeactivateProjectGrantUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrantUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_DeactivateProjectGrantUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.deactivateProjectGrantUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrantUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateProjectGrantUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.deactivateProjectGrantUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrantUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_DeactivateProjectGrantUserGrant); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodDescriptor_ManagementService_ReactivateProjectGrantUserGrant = new grpc.web.MethodDescriptor( - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrantUserGrant', - grpc.web.MethodType.UNARY, - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID, - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID, - * !proto.caos.zitadel.management.api.v1.UserGrant>} - */ -const methodInfo_ManagementService_ReactivateProjectGrantUserGrant = new grpc.web.AbstractClientBase.MethodInfo( - proto.caos.zitadel.management.api.v1.UserGrant, - /** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary -); - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.caos.zitadel.management.api.v1.UserGrant)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.caos.zitadel.management.api.v1.ManagementServiceClient.prototype.reactivateProjectGrantUserGrant = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrantUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateProjectGrantUserGrant, - callback); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.caos.zitadel.management.api.v1.ManagementServicePromiseClient.prototype.reactivateProjectGrantUserGrant = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrantUserGrant', - request, - metadata || {}, - methodDescriptor_ManagementService_ReactivateProjectGrantUserGrant); -}; - - -module.exports = proto.caos.zitadel.management.api.v1; - diff --git a/console/src/app/proto/generated/management_pb.d.ts b/console/src/app/proto/generated/management_pb.d.ts deleted file mode 100644 index 5797352acb..0000000000 --- a/console/src/app/proto/generated/management_pb.d.ts +++ /dev/null @@ -1,4966 +0,0 @@ -import * as jspb from "google-protobuf" - -import * as google_api_annotations_pb from './google/api/annotations_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; -import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as protoc$gen$swagger_options_annotations_pb from './protoc-gen-swagger/options/annotations_pb'; -import * as validate_validate_pb from './validate/validate_pb'; -import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; -import * as authoption_options_pb from './authoption/options_pb'; - -export class Iam extends jspb.Message { - getGlobalOrgId(): string; - setGlobalOrgId(value: string): void; - - getIamProjectId(): string; - setIamProjectId(value: string): void; - - getSetUpDone(): boolean; - setSetUpDone(value: boolean): void; - - getSetUpStarted(): boolean; - setSetUpStarted(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Iam.AsObject; - static toObject(includeInstance: boolean, msg: Iam): Iam.AsObject; - static serializeBinaryToWriter(message: Iam, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Iam; - static deserializeBinaryFromReader(message: Iam, reader: jspb.BinaryReader): Iam; -} - -export namespace Iam { - export type AsObject = { - globalOrgId: string, - iamProjectId: string, - setUpDone: boolean, - setUpStarted: boolean, - } -} - -export class ChangeRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - getSecId(): string; - setSecId(value: string): void; - - getLimit(): number; - setLimit(value: number): void; - - getSequenceOffset(): number; - setSequenceOffset(value: number): void; - - getAsc(): boolean; - setAsc(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChangeRequest.AsObject; - static toObject(includeInstance: boolean, msg: ChangeRequest): ChangeRequest.AsObject; - static serializeBinaryToWriter(message: ChangeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChangeRequest; - static deserializeBinaryFromReader(message: ChangeRequest, reader: jspb.BinaryReader): ChangeRequest; -} - -export namespace ChangeRequest { - export type AsObject = { - id: string, - secId: string, - limit: number, - sequenceOffset: number, - asc: boolean, - } -} - -export class Changes extends jspb.Message { - getChangesList(): Array; - setChangesList(value: Array): void; - clearChangesList(): void; - addChanges(value?: Change, index?: number): Change; - - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Changes.AsObject; - static toObject(includeInstance: boolean, msg: Changes): Changes.AsObject; - static serializeBinaryToWriter(message: Changes, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Changes; - static deserializeBinaryFromReader(message: Changes, reader: jspb.BinaryReader): Changes; -} - -export namespace Changes { - export type AsObject = { - changesList: Array, - offset: number, - limit: number, - } -} - -export class Change extends jspb.Message { - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getEventType(): string; - setEventType(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getEditorId(): string; - setEditorId(value: string): void; - - getEditor(): string; - setEditor(value: string): void; - - getData(): google_protobuf_struct_pb.Struct | undefined; - setData(value?: google_protobuf_struct_pb.Struct): void; - hasData(): boolean; - clearData(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Change.AsObject; - static toObject(includeInstance: boolean, msg: Change): Change.AsObject; - static serializeBinaryToWriter(message: Change, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Change; - static deserializeBinaryFromReader(message: Change, reader: jspb.BinaryReader): Change; -} - -export namespace Change { - export type AsObject = { - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - eventType: string, - sequence: number, - editorId: string, - editor: string, - data?: google_protobuf_struct_pb.Struct.AsObject, - } -} - -export class ApplicationID extends jspb.Message { - getId(): string; - setId(value: string): void; - - getProjectId(): string; - setProjectId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApplicationID.AsObject; - static toObject(includeInstance: boolean, msg: ApplicationID): ApplicationID.AsObject; - static serializeBinaryToWriter(message: ApplicationID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApplicationID; - static deserializeBinaryFromReader(message: ApplicationID, reader: jspb.BinaryReader): ApplicationID; -} - -export namespace ApplicationID { - export type AsObject = { - id: string, - projectId: string, - } -} - -export class ProjectID extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectID.AsObject; - static toObject(includeInstance: boolean, msg: ProjectID): ProjectID.AsObject; - static serializeBinaryToWriter(message: ProjectID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectID; - static deserializeBinaryFromReader(message: ProjectID, reader: jspb.BinaryReader): ProjectID; -} - -export namespace ProjectID { - export type AsObject = { - id: string, - } -} - -export class UserID extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserID.AsObject; - static toObject(includeInstance: boolean, msg: UserID): UserID.AsObject; - static serializeBinaryToWriter(message: UserID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserID; - static deserializeBinaryFromReader(message: UserID, reader: jspb.BinaryReader): UserID; -} - -export namespace UserID { - export type AsObject = { - id: string, - } -} - -export class Email extends jspb.Message { - getEmail(): string; - setEmail(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Email.AsObject; - static toObject(includeInstance: boolean, msg: Email): Email.AsObject; - static serializeBinaryToWriter(message: Email, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Email; - static deserializeBinaryFromReader(message: Email, reader: jspb.BinaryReader): Email; -} - -export namespace Email { - export type AsObject = { - email: string, - } -} - -export class UniqueUserRequest extends jspb.Message { - getUserName(): string; - setUserName(value: string): void; - - getEmail(): string; - setEmail(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UniqueUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: UniqueUserRequest): UniqueUserRequest.AsObject; - static serializeBinaryToWriter(message: UniqueUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UniqueUserRequest; - static deserializeBinaryFromReader(message: UniqueUserRequest, reader: jspb.BinaryReader): UniqueUserRequest; -} - -export namespace UniqueUserRequest { - export type AsObject = { - userName: string, - email: string, - } -} - -export class UniqueUserResponse extends jspb.Message { - getIsUnique(): boolean; - setIsUnique(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UniqueUserResponse.AsObject; - static toObject(includeInstance: boolean, msg: UniqueUserResponse): UniqueUserResponse.AsObject; - static serializeBinaryToWriter(message: UniqueUserResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UniqueUserResponse; - static deserializeBinaryFromReader(message: UniqueUserResponse, reader: jspb.BinaryReader): UniqueUserResponse; -} - -export namespace UniqueUserResponse { - export type AsObject = { - isUnique: boolean, - } -} - -export class CreateUserRequest extends jspb.Message { - getUserName(): string; - setUserName(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getNickName(): string; - setNickName(value: string): void; - - getPreferredLanguage(): string; - setPreferredLanguage(value: string): void; - - getGender(): Gender; - setGender(value: Gender): void; - - getEmail(): string; - setEmail(value: string): void; - - getIsEmailVerified(): boolean; - setIsEmailVerified(value: boolean): void; - - getPhone(): string; - setPhone(value: string): void; - - getIsPhoneVerified(): boolean; - setIsPhoneVerified(value: boolean): void; - - getCountry(): string; - setCountry(value: string): void; - - getLocality(): string; - setLocality(value: string): void; - - getPostalCode(): string; - setPostalCode(value: string): void; - - getRegion(): string; - setRegion(value: string): void; - - getStreetAddress(): string; - setStreetAddress(value: string): void; - - getPassword(): string; - setPassword(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateUserRequest): CreateUserRequest.AsObject; - static serializeBinaryToWriter(message: CreateUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateUserRequest; - static deserializeBinaryFromReader(message: CreateUserRequest, reader: jspb.BinaryReader): CreateUserRequest; -} - -export namespace CreateUserRequest { - export type AsObject = { - userName: string, - firstName: string, - lastName: string, - nickName: string, - preferredLanguage: string, - gender: Gender, - email: string, - isEmailVerified: boolean, - phone: string, - isPhoneVerified: boolean, - country: string, - locality: string, - postalCode: string, - region: string, - streetAddress: string, - password: string, - } -} - -export class User extends jspb.Message { - getId(): string; - setId(value: string): void; - - getState(): UserState; - setState(value: UserState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getUserName(): string; - setUserName(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getNickName(): string; - setNickName(value: string): void; - - getPreferredLanguage(): string; - setPreferredLanguage(value: string): void; - - getGender(): Gender; - setGender(value: Gender): void; - - getEmail(): string; - setEmail(value: string): void; - - getIsEmailVerified(): boolean; - setIsEmailVerified(value: boolean): void; - - getPhone(): string; - setPhone(value: string): void; - - getIsPhoneVerified(): boolean; - setIsPhoneVerified(value: boolean): void; - - getCountry(): string; - setCountry(value: string): void; - - getLocality(): string; - setLocality(value: string): void; - - getPostalCode(): string; - setPostalCode(value: string): void; - - getRegion(): string; - setRegion(value: string): void; - - getStreetAddress(): string; - setStreetAddress(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): User.AsObject; - static toObject(includeInstance: boolean, msg: User): User.AsObject; - static serializeBinaryToWriter(message: User, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): User; - static deserializeBinaryFromReader(message: User, reader: jspb.BinaryReader): User; -} - -export namespace User { - export type AsObject = { - id: string, - state: UserState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - userName: string, - firstName: string, - lastName: string, - displayName: string, - nickName: string, - preferredLanguage: string, - gender: Gender, - email: string, - isEmailVerified: boolean, - phone: string, - isPhoneVerified: boolean, - country: string, - locality: string, - postalCode: string, - region: string, - streetAddress: string, - sequence: number, - } -} - -export class UserView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getState(): UserState; - setState(value: UserState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getLastLogin(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastLogin(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasLastLogin(): boolean; - clearLastLogin(): void; - - getPasswordChanged(): google_protobuf_timestamp_pb.Timestamp | undefined; - setPasswordChanged(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasPasswordChanged(): boolean; - clearPasswordChanged(): void; - - getUserName(): string; - setUserName(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getNickName(): string; - setNickName(value: string): void; - - getPreferredLanguage(): string; - setPreferredLanguage(value: string): void; - - getGender(): Gender; - setGender(value: Gender): void; - - getEmail(): string; - setEmail(value: string): void; - - getIsEmailVerified(): boolean; - setIsEmailVerified(value: boolean): void; - - getPhone(): string; - setPhone(value: string): void; - - getIsPhoneVerified(): boolean; - setIsPhoneVerified(value: boolean): void; - - getCountry(): string; - setCountry(value: string): void; - - getLocality(): string; - setLocality(value: string): void; - - getPostalCode(): string; - setPostalCode(value: string): void; - - getRegion(): string; - setRegion(value: string): void; - - getStreetAddress(): string; - setStreetAddress(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getResourceOwner(): string; - setResourceOwner(value: string): void; - - getLoginNamesList(): Array; - setLoginNamesList(value: Array): void; - clearLoginNamesList(): void; - addLoginNames(value: string, index?: number): void; - - getPreferredLoginName(): string; - setPreferredLoginName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserView.AsObject; - static toObject(includeInstance: boolean, msg: UserView): UserView.AsObject; - static serializeBinaryToWriter(message: UserView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserView; - static deserializeBinaryFromReader(message: UserView, reader: jspb.BinaryReader): UserView; -} - -export namespace UserView { - export type AsObject = { - id: string, - state: UserState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastLogin?: google_protobuf_timestamp_pb.Timestamp.AsObject, - passwordChanged?: google_protobuf_timestamp_pb.Timestamp.AsObject, - userName: string, - firstName: string, - lastName: string, - displayName: string, - nickName: string, - preferredLanguage: string, - gender: Gender, - email: string, - isEmailVerified: boolean, - phone: string, - isPhoneVerified: boolean, - country: string, - locality: string, - postalCode: string, - region: string, - streetAddress: string, - sequence: number, - resourceOwner: string, - loginNamesList: Array, - preferredLoginName: string, - } -} - -export class UserSearchRequest extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getSortingColumn(): UserSearchKey; - setSortingColumn(value: UserSearchKey): void; - - getAsc(): boolean; - setAsc(value: boolean): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: UserSearchQuery, index?: number): UserSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: UserSearchRequest): UserSearchRequest.AsObject; - static serializeBinaryToWriter(message: UserSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserSearchRequest; - static deserializeBinaryFromReader(message: UserSearchRequest, reader: jspb.BinaryReader): UserSearchRequest; -} - -export namespace UserSearchRequest { - export type AsObject = { - offset: number, - limit: number, - sortingColumn: UserSearchKey, - asc: boolean, - queriesList: Array, - } -} - -export class UserSearchQuery extends jspb.Message { - getKey(): UserSearchKey; - setKey(value: UserSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: UserSearchQuery): UserSearchQuery.AsObject; - static serializeBinaryToWriter(message: UserSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserSearchQuery; - static deserializeBinaryFromReader(message: UserSearchQuery, reader: jspb.BinaryReader): UserSearchQuery; -} - -export namespace UserSearchQuery { - export type AsObject = { - key: UserSearchKey, - method: SearchMethod, - value: string, - } -} - -export class UserSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: UserView, index?: number): UserView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: UserSearchResponse): UserSearchResponse.AsObject; - static serializeBinaryToWriter(message: UserSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserSearchResponse; - static deserializeBinaryFromReader(message: UserSearchResponse, reader: jspb.BinaryReader): UserSearchResponse; -} - -export namespace UserSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class UserProfile extends jspb.Message { - getId(): string; - setId(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getNickName(): string; - setNickName(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getPreferredLanguage(): string; - setPreferredLanguage(value: string): void; - - getGender(): Gender; - setGender(value: Gender): void; - - getUserName(): string; - setUserName(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserProfile.AsObject; - static toObject(includeInstance: boolean, msg: UserProfile): UserProfile.AsObject; - static serializeBinaryToWriter(message: UserProfile, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserProfile; - static deserializeBinaryFromReader(message: UserProfile, reader: jspb.BinaryReader): UserProfile; -} - -export namespace UserProfile { - export type AsObject = { - id: string, - firstName: string, - lastName: string, - nickName: string, - displayName: string, - preferredLanguage: string, - gender: Gender, - userName: string, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UserProfileView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getNickName(): string; - setNickName(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getPreferredLanguage(): string; - setPreferredLanguage(value: string): void; - - getGender(): Gender; - setGender(value: Gender): void; - - getUserName(): string; - setUserName(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getLoginNamesList(): Array; - setLoginNamesList(value: Array): void; - clearLoginNamesList(): void; - addLoginNames(value: string, index?: number): void; - - getPreferredLoginName(): string; - setPreferredLoginName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserProfileView.AsObject; - static toObject(includeInstance: boolean, msg: UserProfileView): UserProfileView.AsObject; - static serializeBinaryToWriter(message: UserProfileView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserProfileView; - static deserializeBinaryFromReader(message: UserProfileView, reader: jspb.BinaryReader): UserProfileView; -} - -export namespace UserProfileView { - export type AsObject = { - id: string, - firstName: string, - lastName: string, - nickName: string, - displayName: string, - preferredLanguage: string, - gender: Gender, - userName: string, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - loginNamesList: Array, - preferredLoginName: string, - } -} - -export class UpdateUserProfileRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getNickName(): string; - setNickName(value: string): void; - - getPreferredLanguage(): string; - setPreferredLanguage(value: string): void; - - getGender(): Gender; - setGender(value: Gender): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserProfileRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserProfileRequest): UpdateUserProfileRequest.AsObject; - static serializeBinaryToWriter(message: UpdateUserProfileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserProfileRequest; - static deserializeBinaryFromReader(message: UpdateUserProfileRequest, reader: jspb.BinaryReader): UpdateUserProfileRequest; -} - -export namespace UpdateUserProfileRequest { - export type AsObject = { - id: string, - firstName: string, - lastName: string, - nickName: string, - preferredLanguage: string, - gender: Gender, - } -} - -export class UserEmail extends jspb.Message { - getId(): string; - setId(value: string): void; - - getEmail(): string; - setEmail(value: string): void; - - getIsEmailVerified(): boolean; - setIsEmailVerified(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserEmail.AsObject; - static toObject(includeInstance: boolean, msg: UserEmail): UserEmail.AsObject; - static serializeBinaryToWriter(message: UserEmail, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserEmail; - static deserializeBinaryFromReader(message: UserEmail, reader: jspb.BinaryReader): UserEmail; -} - -export namespace UserEmail { - export type AsObject = { - id: string, - email: string, - isEmailVerified: boolean, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UserEmailView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getEmail(): string; - setEmail(value: string): void; - - getIsEmailVerified(): boolean; - setIsEmailVerified(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserEmailView.AsObject; - static toObject(includeInstance: boolean, msg: UserEmailView): UserEmailView.AsObject; - static serializeBinaryToWriter(message: UserEmailView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserEmailView; - static deserializeBinaryFromReader(message: UserEmailView, reader: jspb.BinaryReader): UserEmailView; -} - -export namespace UserEmailView { - export type AsObject = { - id: string, - email: string, - isEmailVerified: boolean, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateUserEmailRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - getEmail(): string; - setEmail(value: string): void; - - getIsEmailVerified(): boolean; - setIsEmailVerified(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserEmailRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserEmailRequest): UpdateUserEmailRequest.AsObject; - static serializeBinaryToWriter(message: UpdateUserEmailRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserEmailRequest; - static deserializeBinaryFromReader(message: UpdateUserEmailRequest, reader: jspb.BinaryReader): UpdateUserEmailRequest; -} - -export namespace UpdateUserEmailRequest { - export type AsObject = { - id: string, - email: string, - isEmailVerified: boolean, - } -} - -export class UserPhone extends jspb.Message { - getId(): string; - setId(value: string): void; - - getPhone(): string; - setPhone(value: string): void; - - getIsPhoneVerified(): boolean; - setIsPhoneVerified(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserPhone.AsObject; - static toObject(includeInstance: boolean, msg: UserPhone): UserPhone.AsObject; - static serializeBinaryToWriter(message: UserPhone, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserPhone; - static deserializeBinaryFromReader(message: UserPhone, reader: jspb.BinaryReader): UserPhone; -} - -export namespace UserPhone { - export type AsObject = { - id: string, - phone: string, - isPhoneVerified: boolean, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UserPhoneView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getPhone(): string; - setPhone(value: string): void; - - getIsPhoneVerified(): boolean; - setIsPhoneVerified(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserPhoneView.AsObject; - static toObject(includeInstance: boolean, msg: UserPhoneView): UserPhoneView.AsObject; - static serializeBinaryToWriter(message: UserPhoneView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserPhoneView; - static deserializeBinaryFromReader(message: UserPhoneView, reader: jspb.BinaryReader): UserPhoneView; -} - -export namespace UserPhoneView { - export type AsObject = { - id: string, - phone: string, - isPhoneVerified: boolean, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateUserPhoneRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - getPhone(): string; - setPhone(value: string): void; - - getIsPhoneVerified(): boolean; - setIsPhoneVerified(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserPhoneRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserPhoneRequest): UpdateUserPhoneRequest.AsObject; - static serializeBinaryToWriter(message: UpdateUserPhoneRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserPhoneRequest; - static deserializeBinaryFromReader(message: UpdateUserPhoneRequest, reader: jspb.BinaryReader): UpdateUserPhoneRequest; -} - -export namespace UpdateUserPhoneRequest { - export type AsObject = { - id: string, - phone: string, - isPhoneVerified: boolean, - } -} - -export class UserAddress extends jspb.Message { - getId(): string; - setId(value: string): void; - - getCountry(): string; - setCountry(value: string): void; - - getLocality(): string; - setLocality(value: string): void; - - getPostalCode(): string; - setPostalCode(value: string): void; - - getRegion(): string; - setRegion(value: string): void; - - getStreetAddress(): string; - setStreetAddress(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserAddress.AsObject; - static toObject(includeInstance: boolean, msg: UserAddress): UserAddress.AsObject; - static serializeBinaryToWriter(message: UserAddress, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserAddress; - static deserializeBinaryFromReader(message: UserAddress, reader: jspb.BinaryReader): UserAddress; -} - -export namespace UserAddress { - export type AsObject = { - id: string, - country: string, - locality: string, - postalCode: string, - region: string, - streetAddress: string, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UserAddressView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getCountry(): string; - setCountry(value: string): void; - - getLocality(): string; - setLocality(value: string): void; - - getPostalCode(): string; - setPostalCode(value: string): void; - - getRegion(): string; - setRegion(value: string): void; - - getStreetAddress(): string; - setStreetAddress(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserAddressView.AsObject; - static toObject(includeInstance: boolean, msg: UserAddressView): UserAddressView.AsObject; - static serializeBinaryToWriter(message: UserAddressView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserAddressView; - static deserializeBinaryFromReader(message: UserAddressView, reader: jspb.BinaryReader): UserAddressView; -} - -export namespace UserAddressView { - export type AsObject = { - id: string, - country: string, - locality: string, - postalCode: string, - region: string, - streetAddress: string, - sequence: number, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateUserAddressRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - getCountry(): string; - setCountry(value: string): void; - - getLocality(): string; - setLocality(value: string): void; - - getPostalCode(): string; - setPostalCode(value: string): void; - - getRegion(): string; - setRegion(value: string): void; - - getStreetAddress(): string; - setStreetAddress(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserAddressRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserAddressRequest): UpdateUserAddressRequest.AsObject; - static serializeBinaryToWriter(message: UpdateUserAddressRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserAddressRequest; - static deserializeBinaryFromReader(message: UpdateUserAddressRequest, reader: jspb.BinaryReader): UpdateUserAddressRequest; -} - -export namespace UpdateUserAddressRequest { - export type AsObject = { - id: string, - country: string, - locality: string, - postalCode: string, - region: string, - streetAddress: string, - } -} - -export class MultiFactors extends jspb.Message { - getMfasList(): Array; - setMfasList(value: Array): void; - clearMfasList(): void; - addMfas(value?: MultiFactor, index?: number): MultiFactor; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiFactors.AsObject; - static toObject(includeInstance: boolean, msg: MultiFactors): MultiFactors.AsObject; - static serializeBinaryToWriter(message: MultiFactors, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiFactors; - static deserializeBinaryFromReader(message: MultiFactors, reader: jspb.BinaryReader): MultiFactors; -} - -export namespace MultiFactors { - export type AsObject = { - mfasList: Array, - } -} - -export class MultiFactor extends jspb.Message { - getType(): MfaType; - setType(value: MfaType): void; - - getState(): MFAState; - setState(value: MFAState): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiFactor.AsObject; - static toObject(includeInstance: boolean, msg: MultiFactor): MultiFactor.AsObject; - static serializeBinaryToWriter(message: MultiFactor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiFactor; - static deserializeBinaryFromReader(message: MultiFactor, reader: jspb.BinaryReader): MultiFactor; -} - -export namespace MultiFactor { - export type AsObject = { - type: MfaType, - state: MFAState, - } -} - -export class PasswordID extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordID.AsObject; - static toObject(includeInstance: boolean, msg: PasswordID): PasswordID.AsObject; - static serializeBinaryToWriter(message: PasswordID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordID; - static deserializeBinaryFromReader(message: PasswordID, reader: jspb.BinaryReader): PasswordID; -} - -export namespace PasswordID { - export type AsObject = { - id: string, - } -} - -export class PasswordRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - getPassword(): string; - setPassword(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordRequest.AsObject; - static toObject(includeInstance: boolean, msg: PasswordRequest): PasswordRequest.AsObject; - static serializeBinaryToWriter(message: PasswordRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordRequest; - static deserializeBinaryFromReader(message: PasswordRequest, reader: jspb.BinaryReader): PasswordRequest; -} - -export namespace PasswordRequest { - export type AsObject = { - id: string, - password: string, - } -} - -export class ResetPasswordRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResetPasswordRequest.AsObject; - static toObject(includeInstance: boolean, msg: ResetPasswordRequest): ResetPasswordRequest.AsObject; - static serializeBinaryToWriter(message: ResetPasswordRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResetPasswordRequest; - static deserializeBinaryFromReader(message: ResetPasswordRequest, reader: jspb.BinaryReader): ResetPasswordRequest; -} - -export namespace ResetPasswordRequest { - export type AsObject = { - id: string, - } -} - -export class SetPasswordNotificationRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - getType(): NotificationType; - setType(value: NotificationType): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetPasswordNotificationRequest.AsObject; - static toObject(includeInstance: boolean, msg: SetPasswordNotificationRequest): SetPasswordNotificationRequest.AsObject; - static serializeBinaryToWriter(message: SetPasswordNotificationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetPasswordNotificationRequest; - static deserializeBinaryFromReader(message: SetPasswordNotificationRequest, reader: jspb.BinaryReader): SetPasswordNotificationRequest; -} - -export namespace SetPasswordNotificationRequest { - export type AsObject = { - id: string, - type: NotificationType, - } -} - -export class PasswordComplexityPolicyID extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordComplexityPolicyID.AsObject; - static toObject(includeInstance: boolean, msg: PasswordComplexityPolicyID): PasswordComplexityPolicyID.AsObject; - static serializeBinaryToWriter(message: PasswordComplexityPolicyID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordComplexityPolicyID; - static deserializeBinaryFromReader(message: PasswordComplexityPolicyID, reader: jspb.BinaryReader): PasswordComplexityPolicyID; -} - -export namespace PasswordComplexityPolicyID { - export type AsObject = { - id: string, - } -} - -export class PasswordComplexityPolicy extends jspb.Message { - getId(): string; - setId(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getState(): PolicyState; - setState(value: PolicyState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getMinLength(): number; - setMinLength(value: number): void; - - getHasLowercase(): boolean; - setHasLowercase(value: boolean): void; - - getHasUppercase(): boolean; - setHasUppercase(value: boolean): void; - - getHasNumber(): boolean; - setHasNumber(value: boolean): void; - - getHasSymbol(): boolean; - setHasSymbol(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - getIsDefault(): boolean; - setIsDefault(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordComplexityPolicy.AsObject; - static toObject(includeInstance: boolean, msg: PasswordComplexityPolicy): PasswordComplexityPolicy.AsObject; - static serializeBinaryToWriter(message: PasswordComplexityPolicy, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordComplexityPolicy; - static deserializeBinaryFromReader(message: PasswordComplexityPolicy, reader: jspb.BinaryReader): PasswordComplexityPolicy; -} - -export namespace PasswordComplexityPolicy { - export type AsObject = { - id: string, - description: string, - state: PolicyState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - minLength: number, - hasLowercase: boolean, - hasUppercase: boolean, - hasNumber: boolean, - hasSymbol: boolean, - sequence: number, - isDefault: boolean, - } -} - -export class PasswordComplexityPolicyCreate extends jspb.Message { - getDescription(): string; - setDescription(value: string): void; - - getMinLength(): number; - setMinLength(value: number): void; - - getHasLowercase(): boolean; - setHasLowercase(value: boolean): void; - - getHasUppercase(): boolean; - setHasUppercase(value: boolean): void; - - getHasNumber(): boolean; - setHasNumber(value: boolean): void; - - getHasSymbol(): boolean; - setHasSymbol(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordComplexityPolicyCreate.AsObject; - static toObject(includeInstance: boolean, msg: PasswordComplexityPolicyCreate): PasswordComplexityPolicyCreate.AsObject; - static serializeBinaryToWriter(message: PasswordComplexityPolicyCreate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordComplexityPolicyCreate; - static deserializeBinaryFromReader(message: PasswordComplexityPolicyCreate, reader: jspb.BinaryReader): PasswordComplexityPolicyCreate; -} - -export namespace PasswordComplexityPolicyCreate { - export type AsObject = { - description: string, - minLength: number, - hasLowercase: boolean, - hasUppercase: boolean, - hasNumber: boolean, - hasSymbol: boolean, - } -} - -export class PasswordComplexityPolicyUpdate extends jspb.Message { - getId(): string; - setId(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getMinLength(): number; - setMinLength(value: number): void; - - getHasLowercase(): boolean; - setHasLowercase(value: boolean): void; - - getHasUppercase(): boolean; - setHasUppercase(value: boolean): void; - - getHasNumber(): boolean; - setHasNumber(value: boolean): void; - - getHasSymbol(): boolean; - setHasSymbol(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordComplexityPolicyUpdate.AsObject; - static toObject(includeInstance: boolean, msg: PasswordComplexityPolicyUpdate): PasswordComplexityPolicyUpdate.AsObject; - static serializeBinaryToWriter(message: PasswordComplexityPolicyUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordComplexityPolicyUpdate; - static deserializeBinaryFromReader(message: PasswordComplexityPolicyUpdate, reader: jspb.BinaryReader): PasswordComplexityPolicyUpdate; -} - -export namespace PasswordComplexityPolicyUpdate { - export type AsObject = { - id: string, - description: string, - minLength: number, - hasLowercase: boolean, - hasUppercase: boolean, - hasNumber: boolean, - hasSymbol: boolean, - } -} - -export class PasswordAgePolicyID extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordAgePolicyID.AsObject; - static toObject(includeInstance: boolean, msg: PasswordAgePolicyID): PasswordAgePolicyID.AsObject; - static serializeBinaryToWriter(message: PasswordAgePolicyID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordAgePolicyID; - static deserializeBinaryFromReader(message: PasswordAgePolicyID, reader: jspb.BinaryReader): PasswordAgePolicyID; -} - -export namespace PasswordAgePolicyID { - export type AsObject = { - id: string, - } -} - -export class PasswordAgePolicy extends jspb.Message { - getId(): string; - setId(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getState(): PolicyState; - setState(value: PolicyState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getMaxAgeDays(): number; - setMaxAgeDays(value: number): void; - - getExpireWarnDays(): number; - setExpireWarnDays(value: number): void; - - getSequence(): number; - setSequence(value: number): void; - - getIsDefault(): boolean; - setIsDefault(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordAgePolicy.AsObject; - static toObject(includeInstance: boolean, msg: PasswordAgePolicy): PasswordAgePolicy.AsObject; - static serializeBinaryToWriter(message: PasswordAgePolicy, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordAgePolicy; - static deserializeBinaryFromReader(message: PasswordAgePolicy, reader: jspb.BinaryReader): PasswordAgePolicy; -} - -export namespace PasswordAgePolicy { - export type AsObject = { - id: string, - description: string, - state: PolicyState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - maxAgeDays: number, - expireWarnDays: number, - sequence: number, - isDefault: boolean, - } -} - -export class PasswordAgePolicyCreate extends jspb.Message { - getDescription(): string; - setDescription(value: string): void; - - getMaxAgeDays(): number; - setMaxAgeDays(value: number): void; - - getExpireWarnDays(): number; - setExpireWarnDays(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordAgePolicyCreate.AsObject; - static toObject(includeInstance: boolean, msg: PasswordAgePolicyCreate): PasswordAgePolicyCreate.AsObject; - static serializeBinaryToWriter(message: PasswordAgePolicyCreate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordAgePolicyCreate; - static deserializeBinaryFromReader(message: PasswordAgePolicyCreate, reader: jspb.BinaryReader): PasswordAgePolicyCreate; -} - -export namespace PasswordAgePolicyCreate { - export type AsObject = { - description: string, - maxAgeDays: number, - expireWarnDays: number, - } -} - -export class PasswordAgePolicyUpdate extends jspb.Message { - getId(): string; - setId(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getMaxAgeDays(): number; - setMaxAgeDays(value: number): void; - - getExpireWarnDays(): number; - setExpireWarnDays(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordAgePolicyUpdate.AsObject; - static toObject(includeInstance: boolean, msg: PasswordAgePolicyUpdate): PasswordAgePolicyUpdate.AsObject; - static serializeBinaryToWriter(message: PasswordAgePolicyUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordAgePolicyUpdate; - static deserializeBinaryFromReader(message: PasswordAgePolicyUpdate, reader: jspb.BinaryReader): PasswordAgePolicyUpdate; -} - -export namespace PasswordAgePolicyUpdate { - export type AsObject = { - id: string, - description: string, - maxAgeDays: number, - expireWarnDays: number, - } -} - -export class PasswordLockoutPolicyID extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordLockoutPolicyID.AsObject; - static toObject(includeInstance: boolean, msg: PasswordLockoutPolicyID): PasswordLockoutPolicyID.AsObject; - static serializeBinaryToWriter(message: PasswordLockoutPolicyID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordLockoutPolicyID; - static deserializeBinaryFromReader(message: PasswordLockoutPolicyID, reader: jspb.BinaryReader): PasswordLockoutPolicyID; -} - -export namespace PasswordLockoutPolicyID { - export type AsObject = { - id: string, - } -} - -export class PasswordLockoutPolicy extends jspb.Message { - getId(): string; - setId(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getState(): PolicyState; - setState(value: PolicyState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getMaxAttempts(): number; - setMaxAttempts(value: number): void; - - getShowLockOutFailures(): boolean; - setShowLockOutFailures(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - getIsDefault(): boolean; - setIsDefault(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordLockoutPolicy.AsObject; - static toObject(includeInstance: boolean, msg: PasswordLockoutPolicy): PasswordLockoutPolicy.AsObject; - static serializeBinaryToWriter(message: PasswordLockoutPolicy, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordLockoutPolicy; - static deserializeBinaryFromReader(message: PasswordLockoutPolicy, reader: jspb.BinaryReader): PasswordLockoutPolicy; -} - -export namespace PasswordLockoutPolicy { - export type AsObject = { - id: string, - description: string, - state: PolicyState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - maxAttempts: number, - showLockOutFailures: boolean, - sequence: number, - isDefault: boolean, - } -} - -export class PasswordLockoutPolicyCreate extends jspb.Message { - getDescription(): string; - setDescription(value: string): void; - - getMaxAttempts(): number; - setMaxAttempts(value: number): void; - - getShowLockOutFailures(): boolean; - setShowLockOutFailures(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordLockoutPolicyCreate.AsObject; - static toObject(includeInstance: boolean, msg: PasswordLockoutPolicyCreate): PasswordLockoutPolicyCreate.AsObject; - static serializeBinaryToWriter(message: PasswordLockoutPolicyCreate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordLockoutPolicyCreate; - static deserializeBinaryFromReader(message: PasswordLockoutPolicyCreate, reader: jspb.BinaryReader): PasswordLockoutPolicyCreate; -} - -export namespace PasswordLockoutPolicyCreate { - export type AsObject = { - description: string, - maxAttempts: number, - showLockOutFailures: boolean, - } -} - -export class PasswordLockoutPolicyUpdate extends jspb.Message { - getId(): string; - setId(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getMaxAttempts(): number; - setMaxAttempts(value: number): void; - - getShowLockOutFailures(): boolean; - setShowLockOutFailures(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PasswordLockoutPolicyUpdate.AsObject; - static toObject(includeInstance: boolean, msg: PasswordLockoutPolicyUpdate): PasswordLockoutPolicyUpdate.AsObject; - static serializeBinaryToWriter(message: PasswordLockoutPolicyUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PasswordLockoutPolicyUpdate; - static deserializeBinaryFromReader(message: PasswordLockoutPolicyUpdate, reader: jspb.BinaryReader): PasswordLockoutPolicyUpdate; -} - -export namespace PasswordLockoutPolicyUpdate { - export type AsObject = { - id: string, - description: string, - maxAttempts: number, - showLockOutFailures: boolean, - } -} - -export class OrgIamPolicy extends jspb.Message { - getOrgId(): string; - setOrgId(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getUserLoginMustBeDomain(): boolean; - setUserLoginMustBeDomain(value: boolean): void; - - getDefault(): boolean; - setDefault(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgIamPolicy.AsObject; - static toObject(includeInstance: boolean, msg: OrgIamPolicy): OrgIamPolicy.AsObject; - static serializeBinaryToWriter(message: OrgIamPolicy, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgIamPolicy; - static deserializeBinaryFromReader(message: OrgIamPolicy, reader: jspb.BinaryReader): OrgIamPolicy; -} - -export namespace OrgIamPolicy { - export type AsObject = { - orgId: string, - description: string, - userLoginMustBeDomain: boolean, - pb_default: boolean, - } -} - -export class OrgID extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgID.AsObject; - static toObject(includeInstance: boolean, msg: OrgID): OrgID.AsObject; - static serializeBinaryToWriter(message: OrgID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgID; - static deserializeBinaryFromReader(message: OrgID, reader: jspb.BinaryReader): OrgID; -} - -export namespace OrgID { - export type AsObject = { - id: string, - } -} - -export class Org extends jspb.Message { - getId(): string; - setId(value: string): void; - - getState(): OrgState; - setState(value: OrgState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getName(): string; - setName(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Org.AsObject; - static toObject(includeInstance: boolean, msg: Org): Org.AsObject; - static serializeBinaryToWriter(message: Org, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Org; - static deserializeBinaryFromReader(message: Org, reader: jspb.BinaryReader): Org; -} - -export namespace Org { - export type AsObject = { - id: string, - state: OrgState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - sequence: number, - } -} - -export class OrgView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getState(): OrgState; - setState(value: OrgState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getName(): string; - setName(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgView.AsObject; - static toObject(includeInstance: boolean, msg: OrgView): OrgView.AsObject; - static serializeBinaryToWriter(message: OrgView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgView; - static deserializeBinaryFromReader(message: OrgView, reader: jspb.BinaryReader): OrgView; -} - -export namespace OrgView { - export type AsObject = { - id: string, - state: OrgState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - sequence: number, - } -} - -export class Domain extends jspb.Message { - getDomain(): string; - setDomain(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Domain.AsObject; - static toObject(includeInstance: boolean, msg: Domain): Domain.AsObject; - static serializeBinaryToWriter(message: Domain, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Domain; - static deserializeBinaryFromReader(message: Domain, reader: jspb.BinaryReader): Domain; -} - -export namespace Domain { - export type AsObject = { - domain: string, - } -} - -export class OrgDomains extends jspb.Message { - getDomainsList(): Array; - setDomainsList(value: Array): void; - clearDomainsList(): void; - addDomains(value?: OrgDomain, index?: number): OrgDomain; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgDomains.AsObject; - static toObject(includeInstance: boolean, msg: OrgDomains): OrgDomains.AsObject; - static serializeBinaryToWriter(message: OrgDomains, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgDomains; - static deserializeBinaryFromReader(message: OrgDomains, reader: jspb.BinaryReader): OrgDomains; -} - -export namespace OrgDomains { - export type AsObject = { - domainsList: Array, - } -} - -export class OrgDomain extends jspb.Message { - getOrgId(): string; - setOrgId(value: string): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getDomain(): string; - setDomain(value: string): void; - - getVerified(): boolean; - setVerified(value: boolean): void; - - getPrimary(): boolean; - setPrimary(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgDomain.AsObject; - static toObject(includeInstance: boolean, msg: OrgDomain): OrgDomain.AsObject; - static serializeBinaryToWriter(message: OrgDomain, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgDomain; - static deserializeBinaryFromReader(message: OrgDomain, reader: jspb.BinaryReader): OrgDomain; -} - -export namespace OrgDomain { - export type AsObject = { - orgId: string, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - domain: string, - verified: boolean, - primary: boolean, - sequence: number, - } -} - -export class OrgDomainView extends jspb.Message { - getOrgId(): string; - setOrgId(value: string): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getDomain(): string; - setDomain(value: string): void; - - getVerified(): boolean; - setVerified(value: boolean): void; - - getPrimary(): boolean; - setPrimary(value: boolean): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgDomainView.AsObject; - static toObject(includeInstance: boolean, msg: OrgDomainView): OrgDomainView.AsObject; - static serializeBinaryToWriter(message: OrgDomainView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgDomainView; - static deserializeBinaryFromReader(message: OrgDomainView, reader: jspb.BinaryReader): OrgDomainView; -} - -export namespace OrgDomainView { - export type AsObject = { - orgId: string, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - domain: string, - verified: boolean, - primary: boolean, - sequence: number, - } -} - -export class AddOrgDomainRequest extends jspb.Message { - getDomain(): string; - setDomain(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddOrgDomainRequest.AsObject; - static toObject(includeInstance: boolean, msg: AddOrgDomainRequest): AddOrgDomainRequest.AsObject; - static serializeBinaryToWriter(message: AddOrgDomainRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddOrgDomainRequest; - static deserializeBinaryFromReader(message: AddOrgDomainRequest, reader: jspb.BinaryReader): AddOrgDomainRequest; -} - -export namespace AddOrgDomainRequest { - export type AsObject = { - domain: string, - } -} - -export class RemoveOrgDomainRequest extends jspb.Message { - getDomain(): string; - setDomain(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveOrgDomainRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveOrgDomainRequest): RemoveOrgDomainRequest.AsObject; - static serializeBinaryToWriter(message: RemoveOrgDomainRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveOrgDomainRequest; - static deserializeBinaryFromReader(message: RemoveOrgDomainRequest, reader: jspb.BinaryReader): RemoveOrgDomainRequest; -} - -export namespace RemoveOrgDomainRequest { - export type AsObject = { - domain: string, - } -} - -export class OrgDomainSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: OrgDomainView, index?: number): OrgDomainView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgDomainSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: OrgDomainSearchResponse): OrgDomainSearchResponse.AsObject; - static serializeBinaryToWriter(message: OrgDomainSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgDomainSearchResponse; - static deserializeBinaryFromReader(message: OrgDomainSearchResponse, reader: jspb.BinaryReader): OrgDomainSearchResponse; -} - -export namespace OrgDomainSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class OrgDomainSearchRequest extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: OrgDomainSearchQuery, index?: number): OrgDomainSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgDomainSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: OrgDomainSearchRequest): OrgDomainSearchRequest.AsObject; - static serializeBinaryToWriter(message: OrgDomainSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgDomainSearchRequest; - static deserializeBinaryFromReader(message: OrgDomainSearchRequest, reader: jspb.BinaryReader): OrgDomainSearchRequest; -} - -export namespace OrgDomainSearchRequest { - export type AsObject = { - offset: number, - limit: number, - queriesList: Array, - } -} - -export class OrgDomainSearchQuery extends jspb.Message { - getKey(): OrgDomainSearchKey; - setKey(value: OrgDomainSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgDomainSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: OrgDomainSearchQuery): OrgDomainSearchQuery.AsObject; - static serializeBinaryToWriter(message: OrgDomainSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgDomainSearchQuery; - static deserializeBinaryFromReader(message: OrgDomainSearchQuery, reader: jspb.BinaryReader): OrgDomainSearchQuery; -} - -export namespace OrgDomainSearchQuery { - export type AsObject = { - key: OrgDomainSearchKey, - method: SearchMethod, - value: string, - } -} - -export class OrgMemberRoles extends jspb.Message { - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgMemberRoles.AsObject; - static toObject(includeInstance: boolean, msg: OrgMemberRoles): OrgMemberRoles.AsObject; - static serializeBinaryToWriter(message: OrgMemberRoles, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgMemberRoles; - static deserializeBinaryFromReader(message: OrgMemberRoles, reader: jspb.BinaryReader): OrgMemberRoles; -} - -export namespace OrgMemberRoles { - export type AsObject = { - rolesList: Array, - } -} - -export class OrgMember extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgMember.AsObject; - static toObject(includeInstance: boolean, msg: OrgMember): OrgMember.AsObject; - static serializeBinaryToWriter(message: OrgMember, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgMember; - static deserializeBinaryFromReader(message: OrgMember, reader: jspb.BinaryReader): OrgMember; -} - -export namespace OrgMember { - export type AsObject = { - userId: string, - rolesList: Array, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - sequence: number, - } -} - -export class AddOrgMemberRequest extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddOrgMemberRequest.AsObject; - static toObject(includeInstance: boolean, msg: AddOrgMemberRequest): AddOrgMemberRequest.AsObject; - static serializeBinaryToWriter(message: AddOrgMemberRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddOrgMemberRequest; - static deserializeBinaryFromReader(message: AddOrgMemberRequest, reader: jspb.BinaryReader): AddOrgMemberRequest; -} - -export namespace AddOrgMemberRequest { - export type AsObject = { - userId: string, - rolesList: Array, - } -} - -export class ChangeOrgMemberRequest extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChangeOrgMemberRequest.AsObject; - static toObject(includeInstance: boolean, msg: ChangeOrgMemberRequest): ChangeOrgMemberRequest.AsObject; - static serializeBinaryToWriter(message: ChangeOrgMemberRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChangeOrgMemberRequest; - static deserializeBinaryFromReader(message: ChangeOrgMemberRequest, reader: jspb.BinaryReader): ChangeOrgMemberRequest; -} - -export namespace ChangeOrgMemberRequest { - export type AsObject = { - userId: string, - rolesList: Array, - } -} - -export class RemoveOrgMemberRequest extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveOrgMemberRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveOrgMemberRequest): RemoveOrgMemberRequest.AsObject; - static serializeBinaryToWriter(message: RemoveOrgMemberRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveOrgMemberRequest; - static deserializeBinaryFromReader(message: RemoveOrgMemberRequest, reader: jspb.BinaryReader): RemoveOrgMemberRequest; -} - -export namespace RemoveOrgMemberRequest { - export type AsObject = { - userId: string, - } -} - -export class OrgMemberSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: OrgMemberView, index?: number): OrgMemberView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgMemberSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: OrgMemberSearchResponse): OrgMemberSearchResponse.AsObject; - static serializeBinaryToWriter(message: OrgMemberSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgMemberSearchResponse; - static deserializeBinaryFromReader(message: OrgMemberSearchResponse, reader: jspb.BinaryReader): OrgMemberSearchResponse; -} - -export namespace OrgMemberSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class OrgMemberView extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getSequence(): number; - setSequence(value: number): void; - - getUserName(): string; - setUserName(value: string): void; - - getEmail(): string; - setEmail(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgMemberView.AsObject; - static toObject(includeInstance: boolean, msg: OrgMemberView): OrgMemberView.AsObject; - static serializeBinaryToWriter(message: OrgMemberView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgMemberView; - static deserializeBinaryFromReader(message: OrgMemberView, reader: jspb.BinaryReader): OrgMemberView; -} - -export namespace OrgMemberView { - export type AsObject = { - userId: string, - rolesList: Array, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - sequence: number, - userName: string, - email: string, - firstName: string, - lastName: string, - } -} - -export class OrgMemberSearchRequest extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: OrgMemberSearchQuery, index?: number): OrgMemberSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgMemberSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: OrgMemberSearchRequest): OrgMemberSearchRequest.AsObject; - static serializeBinaryToWriter(message: OrgMemberSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgMemberSearchRequest; - static deserializeBinaryFromReader(message: OrgMemberSearchRequest, reader: jspb.BinaryReader): OrgMemberSearchRequest; -} - -export namespace OrgMemberSearchRequest { - export type AsObject = { - offset: number, - limit: number, - queriesList: Array, - } -} - -export class OrgMemberSearchQuery extends jspb.Message { - getKey(): OrgMemberSearchKey; - setKey(value: OrgMemberSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OrgMemberSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: OrgMemberSearchQuery): OrgMemberSearchQuery.AsObject; - static serializeBinaryToWriter(message: OrgMemberSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OrgMemberSearchQuery; - static deserializeBinaryFromReader(message: OrgMemberSearchQuery, reader: jspb.BinaryReader): OrgMemberSearchQuery; -} - -export namespace OrgMemberSearchQuery { - export type AsObject = { - key: OrgMemberSearchKey, - method: SearchMethod, - value: string, - } -} - -export class ProjectCreateRequest extends jspb.Message { - getName(): string; - setName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectCreateRequest.AsObject; - static toObject(includeInstance: boolean, msg: ProjectCreateRequest): ProjectCreateRequest.AsObject; - static serializeBinaryToWriter(message: ProjectCreateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectCreateRequest; - static deserializeBinaryFromReader(message: ProjectCreateRequest, reader: jspb.BinaryReader): ProjectCreateRequest; -} - -export namespace ProjectCreateRequest { - export type AsObject = { - name: string, - } -} - -export class ProjectUpdateRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectUpdateRequest.AsObject; - static toObject(includeInstance: boolean, msg: ProjectUpdateRequest): ProjectUpdateRequest.AsObject; - static serializeBinaryToWriter(message: ProjectUpdateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectUpdateRequest; - static deserializeBinaryFromReader(message: ProjectUpdateRequest, reader: jspb.BinaryReader): ProjectUpdateRequest; -} - -export namespace ProjectUpdateRequest { - export type AsObject = { - id: string, - name: string, - } -} - -export class ProjectSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: ProjectView, index?: number): ProjectView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: ProjectSearchResponse): ProjectSearchResponse.AsObject; - static serializeBinaryToWriter(message: ProjectSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectSearchResponse; - static deserializeBinaryFromReader(message: ProjectSearchResponse, reader: jspb.BinaryReader): ProjectSearchResponse; -} - -export namespace ProjectSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class ProjectView extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getName(): string; - setName(value: string): void; - - getState(): ProjectState; - setState(value: ProjectState): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getResourceOwner(): string; - setResourceOwner(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectView.AsObject; - static toObject(includeInstance: boolean, msg: ProjectView): ProjectView.AsObject; - static serializeBinaryToWriter(message: ProjectView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectView; - static deserializeBinaryFromReader(message: ProjectView, reader: jspb.BinaryReader): ProjectView; -} - -export namespace ProjectView { - export type AsObject = { - projectId: string, - name: string, - state: ProjectState, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - resourceOwner: string, - sequence: number, - } -} - -export class ProjectSearchRequest extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: ProjectSearchQuery, index?: number): ProjectSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: ProjectSearchRequest): ProjectSearchRequest.AsObject; - static serializeBinaryToWriter(message: ProjectSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectSearchRequest; - static deserializeBinaryFromReader(message: ProjectSearchRequest, reader: jspb.BinaryReader): ProjectSearchRequest; -} - -export namespace ProjectSearchRequest { - export type AsObject = { - offset: number, - limit: number, - queriesList: Array, - } -} - -export class ProjectSearchQuery extends jspb.Message { - getKey(): ProjectSearchKey; - setKey(value: ProjectSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: ProjectSearchQuery): ProjectSearchQuery.AsObject; - static serializeBinaryToWriter(message: ProjectSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectSearchQuery; - static deserializeBinaryFromReader(message: ProjectSearchQuery, reader: jspb.BinaryReader): ProjectSearchQuery; -} - -export namespace ProjectSearchQuery { - export type AsObject = { - key: ProjectSearchKey, - method: SearchMethod, - value: string, - } -} - -export class Projects extends jspb.Message { - getProjectsList(): Array; - setProjectsList(value: Array): void; - clearProjectsList(): void; - addProjects(value?: Project, index?: number): Project; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Projects.AsObject; - static toObject(includeInstance: boolean, msg: Projects): Projects.AsObject; - static serializeBinaryToWriter(message: Projects, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Projects; - static deserializeBinaryFromReader(message: Projects, reader: jspb.BinaryReader): Projects; -} - -export namespace Projects { - export type AsObject = { - projectsList: Array, - } -} - -export class Project extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): void; - - getState(): ProjectState; - setState(value: ProjectState): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Project.AsObject; - static toObject(includeInstance: boolean, msg: Project): Project.AsObject; - static serializeBinaryToWriter(message: Project, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Project; - static deserializeBinaryFromReader(message: Project, reader: jspb.BinaryReader): Project; -} - -export namespace Project { - export type AsObject = { - id: string, - name: string, - state: ProjectState, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - sequence: number, - } -} - -export class ProjectMemberRoles extends jspb.Message { - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectMemberRoles.AsObject; - static toObject(includeInstance: boolean, msg: ProjectMemberRoles): ProjectMemberRoles.AsObject; - static serializeBinaryToWriter(message: ProjectMemberRoles, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectMemberRoles; - static deserializeBinaryFromReader(message: ProjectMemberRoles, reader: jspb.BinaryReader): ProjectMemberRoles; -} - -export namespace ProjectMemberRoles { - export type AsObject = { - rolesList: Array, - } -} - -export class ProjectMember extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectMember.AsObject; - static toObject(includeInstance: boolean, msg: ProjectMember): ProjectMember.AsObject; - static serializeBinaryToWriter(message: ProjectMember, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectMember; - static deserializeBinaryFromReader(message: ProjectMember, reader: jspb.BinaryReader): ProjectMember; -} - -export namespace ProjectMember { - export type AsObject = { - userId: string, - rolesList: Array, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - sequence: number, - } -} - -export class ProjectMemberAdd extends jspb.Message { - getId(): string; - setId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectMemberAdd.AsObject; - static toObject(includeInstance: boolean, msg: ProjectMemberAdd): ProjectMemberAdd.AsObject; - static serializeBinaryToWriter(message: ProjectMemberAdd, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectMemberAdd; - static deserializeBinaryFromReader(message: ProjectMemberAdd, reader: jspb.BinaryReader): ProjectMemberAdd; -} - -export namespace ProjectMemberAdd { - export type AsObject = { - id: string, - userId: string, - rolesList: Array, - } -} - -export class ProjectMemberChange extends jspb.Message { - getId(): string; - setId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectMemberChange.AsObject; - static toObject(includeInstance: boolean, msg: ProjectMemberChange): ProjectMemberChange.AsObject; - static serializeBinaryToWriter(message: ProjectMemberChange, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectMemberChange; - static deserializeBinaryFromReader(message: ProjectMemberChange, reader: jspb.BinaryReader): ProjectMemberChange; -} - -export namespace ProjectMemberChange { - export type AsObject = { - id: string, - userId: string, - rolesList: Array, - } -} - -export class ProjectMemberRemove extends jspb.Message { - getId(): string; - setId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectMemberRemove.AsObject; - static toObject(includeInstance: boolean, msg: ProjectMemberRemove): ProjectMemberRemove.AsObject; - static serializeBinaryToWriter(message: ProjectMemberRemove, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectMemberRemove; - static deserializeBinaryFromReader(message: ProjectMemberRemove, reader: jspb.BinaryReader): ProjectMemberRemove; -} - -export namespace ProjectMemberRemove { - export type AsObject = { - id: string, - userId: string, - } -} - -export class ProjectRoleAdd extends jspb.Message { - getId(): string; - setId(value: string): void; - - getKey(): string; - setKey(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getGroup(): string; - setGroup(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectRoleAdd.AsObject; - static toObject(includeInstance: boolean, msg: ProjectRoleAdd): ProjectRoleAdd.AsObject; - static serializeBinaryToWriter(message: ProjectRoleAdd, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectRoleAdd; - static deserializeBinaryFromReader(message: ProjectRoleAdd, reader: jspb.BinaryReader): ProjectRoleAdd; -} - -export namespace ProjectRoleAdd { - export type AsObject = { - id: string, - key: string, - displayName: string, - group: string, - } -} - -export class ProjectRoleAddBulk extends jspb.Message { - getId(): string; - setId(value: string): void; - - getProjectRolesList(): Array; - setProjectRolesList(value: Array): void; - clearProjectRolesList(): void; - addProjectRoles(value?: ProjectRoleAdd, index?: number): ProjectRoleAdd; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectRoleAddBulk.AsObject; - static toObject(includeInstance: boolean, msg: ProjectRoleAddBulk): ProjectRoleAddBulk.AsObject; - static serializeBinaryToWriter(message: ProjectRoleAddBulk, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectRoleAddBulk; - static deserializeBinaryFromReader(message: ProjectRoleAddBulk, reader: jspb.BinaryReader): ProjectRoleAddBulk; -} - -export namespace ProjectRoleAddBulk { - export type AsObject = { - id: string, - projectRolesList: Array, - } -} - -export class ProjectRoleChange extends jspb.Message { - getId(): string; - setId(value: string): void; - - getKey(): string; - setKey(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getGroup(): string; - setGroup(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectRoleChange.AsObject; - static toObject(includeInstance: boolean, msg: ProjectRoleChange): ProjectRoleChange.AsObject; - static serializeBinaryToWriter(message: ProjectRoleChange, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectRoleChange; - static deserializeBinaryFromReader(message: ProjectRoleChange, reader: jspb.BinaryReader): ProjectRoleChange; -} - -export namespace ProjectRoleChange { - export type AsObject = { - id: string, - key: string, - displayName: string, - group: string, - } -} - -export class ProjectRole extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getKey(): string; - setKey(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getGroup(): string; - setGroup(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectRole.AsObject; - static toObject(includeInstance: boolean, msg: ProjectRole): ProjectRole.AsObject; - static serializeBinaryToWriter(message: ProjectRole, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectRole; - static deserializeBinaryFromReader(message: ProjectRole, reader: jspb.BinaryReader): ProjectRole; -} - -export namespace ProjectRole { - export type AsObject = { - projectId: string, - key: string, - displayName: string, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - group: string, - sequence: number, - } -} - -export class ProjectRoleView extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getKey(): string; - setKey(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getGroup(): string; - setGroup(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectRoleView.AsObject; - static toObject(includeInstance: boolean, msg: ProjectRoleView): ProjectRoleView.AsObject; - static serializeBinaryToWriter(message: ProjectRoleView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectRoleView; - static deserializeBinaryFromReader(message: ProjectRoleView, reader: jspb.BinaryReader): ProjectRoleView; -} - -export namespace ProjectRoleView { - export type AsObject = { - projectId: string, - key: string, - displayName: string, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - group: string, - sequence: number, - } -} - -export class ProjectRoleRemove extends jspb.Message { - getId(): string; - setId(value: string): void; - - getKey(): string; - setKey(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectRoleRemove.AsObject; - static toObject(includeInstance: boolean, msg: ProjectRoleRemove): ProjectRoleRemove.AsObject; - static serializeBinaryToWriter(message: ProjectRoleRemove, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectRoleRemove; - static deserializeBinaryFromReader(message: ProjectRoleRemove, reader: jspb.BinaryReader): ProjectRoleRemove; -} - -export namespace ProjectRoleRemove { - export type AsObject = { - id: string, - key: string, - } -} - -export class ProjectRoleSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: ProjectRoleView, index?: number): ProjectRoleView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectRoleSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: ProjectRoleSearchResponse): ProjectRoleSearchResponse.AsObject; - static serializeBinaryToWriter(message: ProjectRoleSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectRoleSearchResponse; - static deserializeBinaryFromReader(message: ProjectRoleSearchResponse, reader: jspb.BinaryReader): ProjectRoleSearchResponse; -} - -export namespace ProjectRoleSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class ProjectRoleSearchRequest extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: ProjectRoleSearchQuery, index?: number): ProjectRoleSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectRoleSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: ProjectRoleSearchRequest): ProjectRoleSearchRequest.AsObject; - static serializeBinaryToWriter(message: ProjectRoleSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectRoleSearchRequest; - static deserializeBinaryFromReader(message: ProjectRoleSearchRequest, reader: jspb.BinaryReader): ProjectRoleSearchRequest; -} - -export namespace ProjectRoleSearchRequest { - export type AsObject = { - projectId: string, - offset: number, - limit: number, - queriesList: Array, - } -} - -export class ProjectRoleSearchQuery extends jspb.Message { - getKey(): ProjectRoleSearchKey; - setKey(value: ProjectRoleSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectRoleSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: ProjectRoleSearchQuery): ProjectRoleSearchQuery.AsObject; - static serializeBinaryToWriter(message: ProjectRoleSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectRoleSearchQuery; - static deserializeBinaryFromReader(message: ProjectRoleSearchQuery, reader: jspb.BinaryReader): ProjectRoleSearchQuery; -} - -export namespace ProjectRoleSearchQuery { - export type AsObject = { - key: ProjectRoleSearchKey, - method: SearchMethod, - value: string, - } -} - -export class ProjectMemberView extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getUserName(): string; - setUserName(value: string): void; - - getEmail(): string; - setEmail(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectMemberView.AsObject; - static toObject(includeInstance: boolean, msg: ProjectMemberView): ProjectMemberView.AsObject; - static serializeBinaryToWriter(message: ProjectMemberView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectMemberView; - static deserializeBinaryFromReader(message: ProjectMemberView, reader: jspb.BinaryReader): ProjectMemberView; -} - -export namespace ProjectMemberView { - export type AsObject = { - userId: string, - userName: string, - email: string, - firstName: string, - lastName: string, - rolesList: Array, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - sequence: number, - } -} - -export class ProjectMemberSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: ProjectMemberView, index?: number): ProjectMemberView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectMemberSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: ProjectMemberSearchResponse): ProjectMemberSearchResponse.AsObject; - static serializeBinaryToWriter(message: ProjectMemberSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectMemberSearchResponse; - static deserializeBinaryFromReader(message: ProjectMemberSearchResponse, reader: jspb.BinaryReader): ProjectMemberSearchResponse; -} - -export namespace ProjectMemberSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class ProjectMemberSearchRequest extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: ProjectMemberSearchQuery, index?: number): ProjectMemberSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectMemberSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: ProjectMemberSearchRequest): ProjectMemberSearchRequest.AsObject; - static serializeBinaryToWriter(message: ProjectMemberSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectMemberSearchRequest; - static deserializeBinaryFromReader(message: ProjectMemberSearchRequest, reader: jspb.BinaryReader): ProjectMemberSearchRequest; -} - -export namespace ProjectMemberSearchRequest { - export type AsObject = { - projectId: string, - offset: number, - limit: number, - queriesList: Array, - } -} - -export class ProjectMemberSearchQuery extends jspb.Message { - getKey(): ProjectMemberSearchKey; - setKey(value: ProjectMemberSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectMemberSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: ProjectMemberSearchQuery): ProjectMemberSearchQuery.AsObject; - static serializeBinaryToWriter(message: ProjectMemberSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectMemberSearchQuery; - static deserializeBinaryFromReader(message: ProjectMemberSearchQuery, reader: jspb.BinaryReader): ProjectMemberSearchQuery; -} - -export namespace ProjectMemberSearchQuery { - export type AsObject = { - key: ProjectMemberSearchKey, - method: SearchMethod, - value: string, - } -} - -export class Application extends jspb.Message { - getId(): string; - setId(value: string): void; - - getState(): AppState; - setState(value: AppState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getName(): string; - setName(value: string): void; - - getOidcConfig(): OIDCConfig | undefined; - setOidcConfig(value?: OIDCConfig): void; - hasOidcConfig(): boolean; - clearOidcConfig(): void; - - getSequence(): number; - setSequence(value: number): void; - - getAppConfigCase(): Application.AppConfigCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Application.AsObject; - static toObject(includeInstance: boolean, msg: Application): Application.AsObject; - static serializeBinaryToWriter(message: Application, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Application; - static deserializeBinaryFromReader(message: Application, reader: jspb.BinaryReader): Application; -} - -export namespace Application { - export type AsObject = { - id: string, - state: AppState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - oidcConfig?: OIDCConfig.AsObject, - sequence: number, - } - - export enum AppConfigCase { - APP_CONFIG_NOT_SET = 0, - OIDC_CONFIG = 8, - } -} - -export class ApplicationUpdate extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApplicationUpdate.AsObject; - static toObject(includeInstance: boolean, msg: ApplicationUpdate): ApplicationUpdate.AsObject; - static serializeBinaryToWriter(message: ApplicationUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApplicationUpdate; - static deserializeBinaryFromReader(message: ApplicationUpdate, reader: jspb.BinaryReader): ApplicationUpdate; -} - -export namespace ApplicationUpdate { - export type AsObject = { - projectId: string, - id: string, - name: string, - } -} - -export class OIDCConfig extends jspb.Message { - getRedirectUrisList(): Array; - setRedirectUrisList(value: Array): void; - clearRedirectUrisList(): void; - addRedirectUris(value: string, index?: number): void; - - getResponseTypesList(): Array; - setResponseTypesList(value: Array): void; - clearResponseTypesList(): void; - addResponseTypes(value: OIDCResponseType, index?: number): void; - - getGrantTypesList(): Array; - setGrantTypesList(value: Array): void; - clearGrantTypesList(): void; - addGrantTypes(value: OIDCGrantType, index?: number): void; - - getApplicationType(): OIDCApplicationType; - setApplicationType(value: OIDCApplicationType): void; - - getClientId(): string; - setClientId(value: string): void; - - getClientSecret(): string; - setClientSecret(value: string): void; - - getAuthMethodType(): OIDCAuthMethodType; - setAuthMethodType(value: OIDCAuthMethodType): void; - - getPostLogoutRedirectUrisList(): Array; - setPostLogoutRedirectUrisList(value: Array): void; - clearPostLogoutRedirectUrisList(): void; - addPostLogoutRedirectUris(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OIDCConfig.AsObject; - static toObject(includeInstance: boolean, msg: OIDCConfig): OIDCConfig.AsObject; - static serializeBinaryToWriter(message: OIDCConfig, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OIDCConfig; - static deserializeBinaryFromReader(message: OIDCConfig, reader: jspb.BinaryReader): OIDCConfig; -} - -export namespace OIDCConfig { - export type AsObject = { - redirectUrisList: Array, - responseTypesList: Array, - grantTypesList: Array, - applicationType: OIDCApplicationType, - clientId: string, - clientSecret: string, - authMethodType: OIDCAuthMethodType, - postLogoutRedirectUrisList: Array, - } -} - -export class OIDCApplicationCreate extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getName(): string; - setName(value: string): void; - - getRedirectUrisList(): Array; - setRedirectUrisList(value: Array): void; - clearRedirectUrisList(): void; - addRedirectUris(value: string, index?: number): void; - - getResponseTypesList(): Array; - setResponseTypesList(value: Array): void; - clearResponseTypesList(): void; - addResponseTypes(value: OIDCResponseType, index?: number): void; - - getGrantTypesList(): Array; - setGrantTypesList(value: Array): void; - clearGrantTypesList(): void; - addGrantTypes(value: OIDCGrantType, index?: number): void; - - getApplicationType(): OIDCApplicationType; - setApplicationType(value: OIDCApplicationType): void; - - getAuthMethodType(): OIDCAuthMethodType; - setAuthMethodType(value: OIDCAuthMethodType): void; - - getPostLogoutRedirectUrisList(): Array; - setPostLogoutRedirectUrisList(value: Array): void; - clearPostLogoutRedirectUrisList(): void; - addPostLogoutRedirectUris(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OIDCApplicationCreate.AsObject; - static toObject(includeInstance: boolean, msg: OIDCApplicationCreate): OIDCApplicationCreate.AsObject; - static serializeBinaryToWriter(message: OIDCApplicationCreate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OIDCApplicationCreate; - static deserializeBinaryFromReader(message: OIDCApplicationCreate, reader: jspb.BinaryReader): OIDCApplicationCreate; -} - -export namespace OIDCApplicationCreate { - export type AsObject = { - projectId: string, - name: string, - redirectUrisList: Array, - responseTypesList: Array, - grantTypesList: Array, - applicationType: OIDCApplicationType, - authMethodType: OIDCAuthMethodType, - postLogoutRedirectUrisList: Array, - } -} - -export class OIDCConfigUpdate extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getApplicationId(): string; - setApplicationId(value: string): void; - - getRedirectUrisList(): Array; - setRedirectUrisList(value: Array): void; - clearRedirectUrisList(): void; - addRedirectUris(value: string, index?: number): void; - - getResponseTypesList(): Array; - setResponseTypesList(value: Array): void; - clearResponseTypesList(): void; - addResponseTypes(value: OIDCResponseType, index?: number): void; - - getGrantTypesList(): Array; - setGrantTypesList(value: Array): void; - clearGrantTypesList(): void; - addGrantTypes(value: OIDCGrantType, index?: number): void; - - getApplicationType(): OIDCApplicationType; - setApplicationType(value: OIDCApplicationType): void; - - getAuthMethodType(): OIDCAuthMethodType; - setAuthMethodType(value: OIDCAuthMethodType): void; - - getPostLogoutRedirectUrisList(): Array; - setPostLogoutRedirectUrisList(value: Array): void; - clearPostLogoutRedirectUrisList(): void; - addPostLogoutRedirectUris(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OIDCConfigUpdate.AsObject; - static toObject(includeInstance: boolean, msg: OIDCConfigUpdate): OIDCConfigUpdate.AsObject; - static serializeBinaryToWriter(message: OIDCConfigUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OIDCConfigUpdate; - static deserializeBinaryFromReader(message: OIDCConfigUpdate, reader: jspb.BinaryReader): OIDCConfigUpdate; -} - -export namespace OIDCConfigUpdate { - export type AsObject = { - projectId: string, - applicationId: string, - redirectUrisList: Array, - responseTypesList: Array, - grantTypesList: Array, - applicationType: OIDCApplicationType, - authMethodType: OIDCAuthMethodType, - postLogoutRedirectUrisList: Array, - } -} - -export class ClientSecret extends jspb.Message { - getClientSecret(): string; - setClientSecret(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClientSecret.AsObject; - static toObject(includeInstance: boolean, msg: ClientSecret): ClientSecret.AsObject; - static serializeBinaryToWriter(message: ClientSecret, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClientSecret; - static deserializeBinaryFromReader(message: ClientSecret, reader: jspb.BinaryReader): ClientSecret; -} - -export namespace ClientSecret { - export type AsObject = { - clientSecret: string, - } -} - -export class ApplicationView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getState(): AppState; - setState(value: AppState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getName(): string; - setName(value: string): void; - - getOidcConfig(): OIDCConfig | undefined; - setOidcConfig(value?: OIDCConfig): void; - hasOidcConfig(): boolean; - clearOidcConfig(): void; - - getSequence(): number; - setSequence(value: number): void; - - getAppConfigCase(): ApplicationView.AppConfigCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApplicationView.AsObject; - static toObject(includeInstance: boolean, msg: ApplicationView): ApplicationView.AsObject; - static serializeBinaryToWriter(message: ApplicationView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApplicationView; - static deserializeBinaryFromReader(message: ApplicationView, reader: jspb.BinaryReader): ApplicationView; -} - -export namespace ApplicationView { - export type AsObject = { - id: string, - state: AppState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - oidcConfig?: OIDCConfig.AsObject, - sequence: number, - } - - export enum AppConfigCase { - APP_CONFIG_NOT_SET = 0, - OIDC_CONFIG = 8, - } -} - -export class ApplicationSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: ApplicationView, index?: number): ApplicationView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApplicationSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: ApplicationSearchResponse): ApplicationSearchResponse.AsObject; - static serializeBinaryToWriter(message: ApplicationSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApplicationSearchResponse; - static deserializeBinaryFromReader(message: ApplicationSearchResponse, reader: jspb.BinaryReader): ApplicationSearchResponse; -} - -export namespace ApplicationSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class ApplicationSearchRequest extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: ApplicationSearchQuery, index?: number): ApplicationSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApplicationSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: ApplicationSearchRequest): ApplicationSearchRequest.AsObject; - static serializeBinaryToWriter(message: ApplicationSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApplicationSearchRequest; - static deserializeBinaryFromReader(message: ApplicationSearchRequest, reader: jspb.BinaryReader): ApplicationSearchRequest; -} - -export namespace ApplicationSearchRequest { - export type AsObject = { - projectId: string, - offset: number, - limit: number, - queriesList: Array, - } -} - -export class ApplicationSearchQuery extends jspb.Message { - getKey(): ApplicationSearchKey; - setKey(value: ApplicationSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApplicationSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: ApplicationSearchQuery): ApplicationSearchQuery.AsObject; - static serializeBinaryToWriter(message: ApplicationSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApplicationSearchQuery; - static deserializeBinaryFromReader(message: ApplicationSearchQuery, reader: jspb.BinaryReader): ApplicationSearchQuery; -} - -export namespace ApplicationSearchQuery { - export type AsObject = { - key: ApplicationSearchKey, - method: SearchMethod, - value: string, - } -} - -export class ProjectGrant extends jspb.Message { - getId(): string; - setId(value: string): void; - - getProjectId(): string; - setProjectId(value: string): void; - - getGrantedOrgId(): string; - setGrantedOrgId(value: string): void; - - getRoleKeysList(): Array; - setRoleKeysList(value: Array): void; - clearRoleKeysList(): void; - addRoleKeys(value: string, index?: number): void; - - getState(): ProjectGrantState; - setState(value: ProjectGrantState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrant.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrant): ProjectGrant.AsObject; - static serializeBinaryToWriter(message: ProjectGrant, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrant; - static deserializeBinaryFromReader(message: ProjectGrant, reader: jspb.BinaryReader): ProjectGrant; -} - -export namespace ProjectGrant { - export type AsObject = { - id: string, - projectId: string, - grantedOrgId: string, - roleKeysList: Array, - state: ProjectGrantState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - sequence: number, - } -} - -export class ProjectGrantCreate extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getGrantedOrgId(): string; - setGrantedOrgId(value: string): void; - - getRoleKeysList(): Array; - setRoleKeysList(value: Array): void; - clearRoleKeysList(): void; - addRoleKeys(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantCreate.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantCreate): ProjectGrantCreate.AsObject; - static serializeBinaryToWriter(message: ProjectGrantCreate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantCreate; - static deserializeBinaryFromReader(message: ProjectGrantCreate, reader: jspb.BinaryReader): ProjectGrantCreate; -} - -export namespace ProjectGrantCreate { - export type AsObject = { - projectId: string, - grantedOrgId: string, - roleKeysList: Array, - } -} - -export class ProjectGrantUpdate extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getId(): string; - setId(value: string): void; - - getRoleKeysList(): Array; - setRoleKeysList(value: Array): void; - clearRoleKeysList(): void; - addRoleKeys(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantUpdate.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantUpdate): ProjectGrantUpdate.AsObject; - static serializeBinaryToWriter(message: ProjectGrantUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantUpdate; - static deserializeBinaryFromReader(message: ProjectGrantUpdate, reader: jspb.BinaryReader): ProjectGrantUpdate; -} - -export namespace ProjectGrantUpdate { - export type AsObject = { - projectId: string, - id: string, - roleKeysList: Array, - } -} - -export class ProjectGrantID extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantID.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantID): ProjectGrantID.AsObject; - static serializeBinaryToWriter(message: ProjectGrantID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantID; - static deserializeBinaryFromReader(message: ProjectGrantID, reader: jspb.BinaryReader): ProjectGrantID; -} - -export namespace ProjectGrantID { - export type AsObject = { - projectId: string, - id: string, - } -} - -export class ProjectGrantView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getProjectId(): string; - setProjectId(value: string): void; - - getGrantedOrgId(): string; - setGrantedOrgId(value: string): void; - - getGrantedOrgName(): string; - setGrantedOrgName(value: string): void; - - getRoleKeysList(): Array; - setRoleKeysList(value: Array): void; - clearRoleKeysList(): void; - addRoleKeys(value: string, index?: number): void; - - getState(): ProjectGrantState; - setState(value: ProjectGrantState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getProjectName(): string; - setProjectName(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getResourceOwner(): string; - setResourceOwner(value: string): void; - - getResourceOwnerName(): string; - setResourceOwnerName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantView.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantView): ProjectGrantView.AsObject; - static serializeBinaryToWriter(message: ProjectGrantView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantView; - static deserializeBinaryFromReader(message: ProjectGrantView, reader: jspb.BinaryReader): ProjectGrantView; -} - -export namespace ProjectGrantView { - export type AsObject = { - id: string, - projectId: string, - grantedOrgId: string, - grantedOrgName: string, - roleKeysList: Array, - state: ProjectGrantState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - projectName: string, - sequence: number, - resourceOwner: string, - resourceOwnerName: string, - } -} - -export class ProjectGrantSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: ProjectGrantView, index?: number): ProjectGrantView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantSearchResponse): ProjectGrantSearchResponse.AsObject; - static serializeBinaryToWriter(message: ProjectGrantSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantSearchResponse; - static deserializeBinaryFromReader(message: ProjectGrantSearchResponse, reader: jspb.BinaryReader): ProjectGrantSearchResponse; -} - -export namespace ProjectGrantSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class GrantedProjectSearchRequest extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: ProjectSearchQuery, index?: number): ProjectSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GrantedProjectSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: GrantedProjectSearchRequest): GrantedProjectSearchRequest.AsObject; - static serializeBinaryToWriter(message: GrantedProjectSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GrantedProjectSearchRequest; - static deserializeBinaryFromReader(message: GrantedProjectSearchRequest, reader: jspb.BinaryReader): GrantedProjectSearchRequest; -} - -export namespace GrantedProjectSearchRequest { - export type AsObject = { - offset: number, - limit: number, - queriesList: Array, - } -} - -export class ProjectGrantSearchRequest extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: ProjectGrantSearchQuery, index?: number): ProjectGrantSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantSearchRequest): ProjectGrantSearchRequest.AsObject; - static serializeBinaryToWriter(message: ProjectGrantSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantSearchRequest; - static deserializeBinaryFromReader(message: ProjectGrantSearchRequest, reader: jspb.BinaryReader): ProjectGrantSearchRequest; -} - -export namespace ProjectGrantSearchRequest { - export type AsObject = { - projectId: string, - offset: number, - limit: number, - queriesList: Array, - } -} - -export class ProjectGrantSearchQuery extends jspb.Message { - getKey(): ProjectGrantSearchKey; - setKey(value: ProjectGrantSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantSearchQuery): ProjectGrantSearchQuery.AsObject; - static serializeBinaryToWriter(message: ProjectGrantSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantSearchQuery; - static deserializeBinaryFromReader(message: ProjectGrantSearchQuery, reader: jspb.BinaryReader): ProjectGrantSearchQuery; -} - -export namespace ProjectGrantSearchQuery { - export type AsObject = { - key: ProjectGrantSearchKey, - method: SearchMethod, - value: string, - } -} - -export class ProjectGrantMemberRoles extends jspb.Message { - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantMemberRoles.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantMemberRoles): ProjectGrantMemberRoles.AsObject; - static serializeBinaryToWriter(message: ProjectGrantMemberRoles, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantMemberRoles; - static deserializeBinaryFromReader(message: ProjectGrantMemberRoles, reader: jspb.BinaryReader): ProjectGrantMemberRoles; -} - -export namespace ProjectGrantMemberRoles { - export type AsObject = { - rolesList: Array, - } -} - -export class ProjectGrantMember extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantMember.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantMember): ProjectGrantMember.AsObject; - static serializeBinaryToWriter(message: ProjectGrantMember, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantMember; - static deserializeBinaryFromReader(message: ProjectGrantMember, reader: jspb.BinaryReader): ProjectGrantMember; -} - -export namespace ProjectGrantMember { - export type AsObject = { - userId: string, - rolesList: Array, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - sequence: number, - } -} - -export class ProjectGrantMemberAdd extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getGrantId(): string; - setGrantId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantMemberAdd.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantMemberAdd): ProjectGrantMemberAdd.AsObject; - static serializeBinaryToWriter(message: ProjectGrantMemberAdd, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantMemberAdd; - static deserializeBinaryFromReader(message: ProjectGrantMemberAdd, reader: jspb.BinaryReader): ProjectGrantMemberAdd; -} - -export namespace ProjectGrantMemberAdd { - export type AsObject = { - projectId: string, - grantId: string, - userId: string, - rolesList: Array, - } -} - -export class ProjectGrantMemberChange extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getGrantId(): string; - setGrantId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantMemberChange.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantMemberChange): ProjectGrantMemberChange.AsObject; - static serializeBinaryToWriter(message: ProjectGrantMemberChange, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantMemberChange; - static deserializeBinaryFromReader(message: ProjectGrantMemberChange, reader: jspb.BinaryReader): ProjectGrantMemberChange; -} - -export namespace ProjectGrantMemberChange { - export type AsObject = { - projectId: string, - grantId: string, - userId: string, - rolesList: Array, - } -} - -export class ProjectGrantMemberRemove extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getGrantId(): string; - setGrantId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantMemberRemove.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantMemberRemove): ProjectGrantMemberRemove.AsObject; - static serializeBinaryToWriter(message: ProjectGrantMemberRemove, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantMemberRemove; - static deserializeBinaryFromReader(message: ProjectGrantMemberRemove, reader: jspb.BinaryReader): ProjectGrantMemberRemove; -} - -export namespace ProjectGrantMemberRemove { - export type AsObject = { - projectId: string, - grantId: string, - userId: string, - } -} - -export class ProjectGrantMemberView extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getUserName(): string; - setUserName(value: string): void; - - getEmail(): string; - setEmail(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getRolesList(): Array; - setRolesList(value: Array): void; - clearRolesList(): void; - addRoles(value: string, index?: number): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantMemberView.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantMemberView): ProjectGrantMemberView.AsObject; - static serializeBinaryToWriter(message: ProjectGrantMemberView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantMemberView; - static deserializeBinaryFromReader(message: ProjectGrantMemberView, reader: jspb.BinaryReader): ProjectGrantMemberView; -} - -export namespace ProjectGrantMemberView { - export type AsObject = { - userId: string, - userName: string, - email: string, - firstName: string, - lastName: string, - rolesList: Array, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - sequence: number, - } -} - -export class ProjectGrantMemberSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: ProjectGrantMemberView, index?: number): ProjectGrantMemberView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantMemberSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantMemberSearchResponse): ProjectGrantMemberSearchResponse.AsObject; - static serializeBinaryToWriter(message: ProjectGrantMemberSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantMemberSearchResponse; - static deserializeBinaryFromReader(message: ProjectGrantMemberSearchResponse, reader: jspb.BinaryReader): ProjectGrantMemberSearchResponse; -} - -export namespace ProjectGrantMemberSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class ProjectGrantMemberSearchRequest extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getGrantId(): string; - setGrantId(value: string): void; - - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: ProjectGrantMemberSearchQuery, index?: number): ProjectGrantMemberSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantMemberSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantMemberSearchRequest): ProjectGrantMemberSearchRequest.AsObject; - static serializeBinaryToWriter(message: ProjectGrantMemberSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantMemberSearchRequest; - static deserializeBinaryFromReader(message: ProjectGrantMemberSearchRequest, reader: jspb.BinaryReader): ProjectGrantMemberSearchRequest; -} - -export namespace ProjectGrantMemberSearchRequest { - export type AsObject = { - projectId: string, - grantId: string, - offset: number, - limit: number, - queriesList: Array, - } -} - -export class ProjectGrantMemberSearchQuery extends jspb.Message { - getKey(): ProjectGrantMemberSearchKey; - setKey(value: ProjectGrantMemberSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantMemberSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantMemberSearchQuery): ProjectGrantMemberSearchQuery.AsObject; - static serializeBinaryToWriter(message: ProjectGrantMemberSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantMemberSearchQuery; - static deserializeBinaryFromReader(message: ProjectGrantMemberSearchQuery, reader: jspb.BinaryReader): ProjectGrantMemberSearchQuery; -} - -export namespace ProjectGrantMemberSearchQuery { - export type AsObject = { - key: ProjectGrantMemberSearchKey, - method: SearchMethod, - value: string, - } -} - -export class UserGrant extends jspb.Message { - getId(): string; - setId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - getOrgId(): string; - setOrgId(value: string): void; - - getProjectId(): string; - setProjectId(value: string): void; - - getRoleKeysList(): Array; - setRoleKeysList(value: Array): void; - clearRoleKeysList(): void; - addRoleKeys(value: string, index?: number): void; - - getState(): UserGrantState; - setState(value: UserGrantState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getSequence(): number; - setSequence(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrant.AsObject; - static toObject(includeInstance: boolean, msg: UserGrant): UserGrant.AsObject; - static serializeBinaryToWriter(message: UserGrant, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrant; - static deserializeBinaryFromReader(message: UserGrant, reader: jspb.BinaryReader): UserGrant; -} - -export namespace UserGrant { - export type AsObject = { - id: string, - userId: string, - orgId: string, - projectId: string, - roleKeysList: Array, - state: UserGrantState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - sequence: number, - } -} - -export class UserGrantCreateBulk extends jspb.Message { - getUserGrantsList(): Array; - setUserGrantsList(value: Array): void; - clearUserGrantsList(): void; - addUserGrants(value?: UserGrantCreate, index?: number): UserGrantCreate; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantCreateBulk.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantCreateBulk): UserGrantCreateBulk.AsObject; - static serializeBinaryToWriter(message: UserGrantCreateBulk, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantCreateBulk; - static deserializeBinaryFromReader(message: UserGrantCreateBulk, reader: jspb.BinaryReader): UserGrantCreateBulk; -} - -export namespace UserGrantCreateBulk { - export type AsObject = { - userGrantsList: Array, - } -} - -export class UserGrantCreate extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getProjectId(): string; - setProjectId(value: string): void; - - getRoleKeysList(): Array; - setRoleKeysList(value: Array): void; - clearRoleKeysList(): void; - addRoleKeys(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantCreate.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantCreate): UserGrantCreate.AsObject; - static serializeBinaryToWriter(message: UserGrantCreate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantCreate; - static deserializeBinaryFromReader(message: UserGrantCreate, reader: jspb.BinaryReader): UserGrantCreate; -} - -export namespace UserGrantCreate { - export type AsObject = { - userId: string, - projectId: string, - roleKeysList: Array, - } -} - -export class UserGrantUpdateBulk extends jspb.Message { - getUserGrantsList(): Array; - setUserGrantsList(value: Array): void; - clearUserGrantsList(): void; - addUserGrants(value?: UserGrantUpdate, index?: number): UserGrantUpdate; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantUpdateBulk.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantUpdateBulk): UserGrantUpdateBulk.AsObject; - static serializeBinaryToWriter(message: UserGrantUpdateBulk, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantUpdateBulk; - static deserializeBinaryFromReader(message: UserGrantUpdateBulk, reader: jspb.BinaryReader): UserGrantUpdateBulk; -} - -export namespace UserGrantUpdateBulk { - export type AsObject = { - userGrantsList: Array, - } -} - -export class UserGrantUpdate extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getId(): string; - setId(value: string): void; - - getRoleKeysList(): Array; - setRoleKeysList(value: Array): void; - clearRoleKeysList(): void; - addRoleKeys(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantUpdate.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantUpdate): UserGrantUpdate.AsObject; - static serializeBinaryToWriter(message: UserGrantUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantUpdate; - static deserializeBinaryFromReader(message: UserGrantUpdate, reader: jspb.BinaryReader): UserGrantUpdate; -} - -export namespace UserGrantUpdate { - export type AsObject = { - userId: string, - id: string, - roleKeysList: Array, - } -} - -export class UserGrantRemoveBulk extends jspb.Message { - getIdsList(): Array; - setIdsList(value: Array): void; - clearIdsList(): void; - addIds(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantRemoveBulk.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantRemoveBulk): UserGrantRemoveBulk.AsObject; - static serializeBinaryToWriter(message: UserGrantRemoveBulk, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantRemoveBulk; - static deserializeBinaryFromReader(message: UserGrantRemoveBulk, reader: jspb.BinaryReader): UserGrantRemoveBulk; -} - -export namespace UserGrantRemoveBulk { - export type AsObject = { - idsList: Array, - } -} - -export class UserGrantID extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantID.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantID): UserGrantID.AsObject; - static serializeBinaryToWriter(message: UserGrantID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantID; - static deserializeBinaryFromReader(message: UserGrantID, reader: jspb.BinaryReader): UserGrantID; -} - -export namespace UserGrantID { - export type AsObject = { - userId: string, - id: string, - } -} - -export class ProjectUserGrantID extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectUserGrantID.AsObject; - static toObject(includeInstance: boolean, msg: ProjectUserGrantID): ProjectUserGrantID.AsObject; - static serializeBinaryToWriter(message: ProjectUserGrantID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectUserGrantID; - static deserializeBinaryFromReader(message: ProjectUserGrantID, reader: jspb.BinaryReader): ProjectUserGrantID; -} - -export namespace ProjectUserGrantID { - export type AsObject = { - projectId: string, - userId: string, - id: string, - } -} - -export class ProjectUserGrantUpdate extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - getId(): string; - setId(value: string): void; - - getRoleKeysList(): Array; - setRoleKeysList(value: Array): void; - clearRoleKeysList(): void; - addRoleKeys(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectUserGrantUpdate.AsObject; - static toObject(includeInstance: boolean, msg: ProjectUserGrantUpdate): ProjectUserGrantUpdate.AsObject; - static serializeBinaryToWriter(message: ProjectUserGrantUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectUserGrantUpdate; - static deserializeBinaryFromReader(message: ProjectUserGrantUpdate, reader: jspb.BinaryReader): ProjectUserGrantUpdate; -} - -export namespace ProjectUserGrantUpdate { - export type AsObject = { - projectId: string, - userId: string, - id: string, - roleKeysList: Array, - } -} - -export class ProjectGrantUserGrantID extends jspb.Message { - getProjectGrantId(): string; - setProjectGrantId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantUserGrantID.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantUserGrantID): ProjectGrantUserGrantID.AsObject; - static serializeBinaryToWriter(message: ProjectGrantUserGrantID, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantUserGrantID; - static deserializeBinaryFromReader(message: ProjectGrantUserGrantID, reader: jspb.BinaryReader): ProjectGrantUserGrantID; -} - -export namespace ProjectGrantUserGrantID { - export type AsObject = { - projectGrantId: string, - userId: string, - id: string, - } -} - -export class ProjectGrantUserGrantCreate extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getOrgId(): string; - setOrgId(value: string): void; - - getProjectGrantId(): string; - setProjectGrantId(value: string): void; - - getProjectId(): string; - setProjectId(value: string): void; - - getRoleKeysList(): Array; - setRoleKeysList(value: Array): void; - clearRoleKeysList(): void; - addRoleKeys(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantUserGrantCreate.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantUserGrantCreate): ProjectGrantUserGrantCreate.AsObject; - static serializeBinaryToWriter(message: ProjectGrantUserGrantCreate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantUserGrantCreate; - static deserializeBinaryFromReader(message: ProjectGrantUserGrantCreate, reader: jspb.BinaryReader): ProjectGrantUserGrantCreate; -} - -export namespace ProjectGrantUserGrantCreate { - export type AsObject = { - userId: string, - orgId: string, - projectGrantId: string, - projectId: string, - roleKeysList: Array, - } -} - -export class ProjectGrantUserGrantUpdate extends jspb.Message { - getProjectGrantId(): string; - setProjectGrantId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - getId(): string; - setId(value: string): void; - - getRoleKeysList(): Array; - setRoleKeysList(value: Array): void; - clearRoleKeysList(): void; - addRoleKeys(value: string, index?: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantUserGrantUpdate.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantUserGrantUpdate): ProjectGrantUserGrantUpdate.AsObject; - static serializeBinaryToWriter(message: ProjectGrantUserGrantUpdate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantUserGrantUpdate; - static deserializeBinaryFromReader(message: ProjectGrantUserGrantUpdate, reader: jspb.BinaryReader): ProjectGrantUserGrantUpdate; -} - -export namespace ProjectGrantUserGrantUpdate { - export type AsObject = { - projectGrantId: string, - userId: string, - id: string, - roleKeysList: Array, - } -} - -export class UserGrantView extends jspb.Message { - getId(): string; - setId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - getOrgId(): string; - setOrgId(value: string): void; - - getProjectId(): string; - setProjectId(value: string): void; - - getRoleKeysList(): Array; - setRoleKeysList(value: Array): void; - clearRoleKeysList(): void; - addRoleKeys(value: string, index?: number): void; - - getState(): UserGrantState; - setState(value: UserGrantState): void; - - getCreationDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreationDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasCreationDate(): boolean; - clearCreationDate(): void; - - getChangeDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setChangeDate(value?: google_protobuf_timestamp_pb.Timestamp): void; - hasChangeDate(): boolean; - clearChangeDate(): void; - - getUserName(): string; - setUserName(value: string): void; - - getFirstName(): string; - setFirstName(value: string): void; - - getLastName(): string; - setLastName(value: string): void; - - getEmail(): string; - setEmail(value: string): void; - - getOrgName(): string; - setOrgName(value: string): void; - - getOrgDomain(): string; - setOrgDomain(value: string): void; - - getProjectName(): string; - setProjectName(value: string): void; - - getSequence(): number; - setSequence(value: number): void; - - getResourceOwner(): string; - setResourceOwner(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantView.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantView): UserGrantView.AsObject; - static serializeBinaryToWriter(message: UserGrantView, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantView; - static deserializeBinaryFromReader(message: UserGrantView, reader: jspb.BinaryReader): UserGrantView; -} - -export namespace UserGrantView { - export type AsObject = { - id: string, - userId: string, - orgId: string, - projectId: string, - roleKeysList: Array, - state: UserGrantState, - creationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - changeDate?: google_protobuf_timestamp_pb.Timestamp.AsObject, - userName: string, - firstName: string, - lastName: string, - email: string, - orgName: string, - orgDomain: string, - projectName: string, - sequence: number, - resourceOwner: string, - displayName: string, - } -} - -export class UserGrantSearchResponse extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getTotalResult(): number; - setTotalResult(value: number): void; - - getResultList(): Array; - setResultList(value: Array): void; - clearResultList(): void; - addResult(value?: UserGrantView, index?: number): UserGrantView; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantSearchResponse): UserGrantSearchResponse.AsObject; - static serializeBinaryToWriter(message: UserGrantSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantSearchResponse; - static deserializeBinaryFromReader(message: UserGrantSearchResponse, reader: jspb.BinaryReader): UserGrantSearchResponse; -} - -export namespace UserGrantSearchResponse { - export type AsObject = { - offset: number, - limit: number, - totalResult: number, - resultList: Array, - } -} - -export class UserGrantSearchRequest extends jspb.Message { - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: UserGrantSearchQuery, index?: number): UserGrantSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantSearchRequest): UserGrantSearchRequest.AsObject; - static serializeBinaryToWriter(message: UserGrantSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantSearchRequest; - static deserializeBinaryFromReader(message: UserGrantSearchRequest, reader: jspb.BinaryReader): UserGrantSearchRequest; -} - -export namespace UserGrantSearchRequest { - export type AsObject = { - offset: number, - limit: number, - queriesList: Array, - } -} - -export class UserGrantSearchQuery extends jspb.Message { - getKey(): UserGrantSearchKey; - setKey(value: UserGrantSearchKey): void; - - getMethod(): SearchMethod; - setMethod(value: SearchMethod): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserGrantSearchQuery.AsObject; - static toObject(includeInstance: boolean, msg: UserGrantSearchQuery): UserGrantSearchQuery.AsObject; - static serializeBinaryToWriter(message: UserGrantSearchQuery, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserGrantSearchQuery; - static deserializeBinaryFromReader(message: UserGrantSearchQuery, reader: jspb.BinaryReader): UserGrantSearchQuery; -} - -export namespace UserGrantSearchQuery { - export type AsObject = { - key: UserGrantSearchKey, - method: SearchMethod, - value: string, - } -} - -export class ProjectUserGrantSearchRequest extends jspb.Message { - getProjectId(): string; - setProjectId(value: string): void; - - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: UserGrantSearchQuery, index?: number): UserGrantSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectUserGrantSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: ProjectUserGrantSearchRequest): ProjectUserGrantSearchRequest.AsObject; - static serializeBinaryToWriter(message: ProjectUserGrantSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectUserGrantSearchRequest; - static deserializeBinaryFromReader(message: ProjectUserGrantSearchRequest, reader: jspb.BinaryReader): ProjectUserGrantSearchRequest; -} - -export namespace ProjectUserGrantSearchRequest { - export type AsObject = { - projectId: string, - offset: number, - limit: number, - queriesList: Array, - } -} - -export class ProjectGrantUserGrantSearchRequest extends jspb.Message { - getProjectGrantId(): string; - setProjectGrantId(value: string): void; - - getOffset(): number; - setOffset(value: number): void; - - getLimit(): number; - setLimit(value: number): void; - - getQueriesList(): Array; - setQueriesList(value: Array): void; - clearQueriesList(): void; - addQueries(value?: UserGrantSearchQuery, index?: number): UserGrantSearchQuery; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectGrantUserGrantSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: ProjectGrantUserGrantSearchRequest): ProjectGrantUserGrantSearchRequest.AsObject; - static serializeBinaryToWriter(message: ProjectGrantUserGrantSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectGrantUserGrantSearchRequest; - static deserializeBinaryFromReader(message: ProjectGrantUserGrantSearchRequest, reader: jspb.BinaryReader): ProjectGrantUserGrantSearchRequest; -} - -export namespace ProjectGrantUserGrantSearchRequest { - export type AsObject = { - projectGrantId: string, - offset: number, - limit: number, - queriesList: Array, - } -} - -export enum UserState { - USERSTATE_UNSPECIFIED = 0, - USERSTATE_ACTIVE = 1, - USERSTATE_INACTIVE = 2, - USERSTATE_DELETED = 3, - USERSTATE_LOCKED = 4, - USERSTATE_SUSPEND = 5, - USERSTATE_INITIAL = 6, -} -export enum Gender { - GENDER_UNSPECIFIED = 0, - GENDER_FEMALE = 1, - GENDER_MALE = 2, - GENDER_DIVERSE = 3, -} -export enum UserSearchKey { - USERSEARCHKEY_UNSPECIFIED = 0, - USERSEARCHKEY_USER_NAME = 1, - USERSEARCHKEY_FIRST_NAME = 2, - USERSEARCHKEY_LAST_NAME = 3, - USERSEARCHKEY_NICK_NAME = 4, - USERSEARCHKEY_DISPLAY_NAME = 5, - USERSEARCHKEY_EMAIL = 6, - USERSEARCHKEY_STATE = 7, -} -export enum SearchMethod { - SEARCHMETHOD_EQUALS = 0, - SEARCHMETHOD_STARTS_WITH = 1, - SEARCHMETHOD_CONTAINS = 2, - SEARCHMETHOD_EQUALS_IGNORE_CASE = 3, - SEARCHMETHOD_STARTS_WITH_IGNORE_CASE = 4, - SEARCHMETHOD_CONTAINS_IGNORE_CASE = 5, - SEARCHMETHOD_NOT_EQUALS = 6, - SEARCHMETHOD_GREATER_THAN = 7, - SEARCHMETHOD_LESS_THAN = 8, - SEARCHMETHOD_IS_ONE_OF = 9, - SEARCHMETHOD_LIST_CONTAINS = 10, -} -export enum MfaType { - MFATYPE_UNSPECIFIED = 0, - MFATYPE_SMS = 1, - MFATYPE_OTP = 2, -} -export enum MFAState { - MFASTATE_UNSPECIFIED = 0, - MFASTATE_NOT_READY = 1, - MFASTATE_READY = 2, - MFASTATE_REMOVED = 3, -} -export enum NotificationType { - NOTIFICATIONTYPE_EMAIL = 0, - NOTIFICATIONTYPE_SMS = 1, -} -export enum PolicyState { - POLICYSTATE_UNSPECIFIED = 0, - POLICYSTATE_ACTIVE = 1, - POLICYSTATE_INACTIVE = 2, - POLICYSTATE_DELETED = 3, -} -export enum OrgState { - ORGSTATE_UNSPECIFIED = 0, - ORGSTATE_ACTIVE = 1, - ORGSTATE_INACTIVE = 2, -} -export enum OrgDomainSearchKey { - ORGDOMAINSEARCHKEY_UNSPECIFIED = 0, - ORGDOMAINSEARCHKEY_DOMAIN = 1, -} -export enum OrgMemberSearchKey { - ORGMEMBERSEARCHKEY_UNSPECIFIED = 0, - ORGMEMBERSEARCHKEY_FIRST_NAME = 1, - ORGMEMBERSEARCHKEY_LAST_NAME = 2, - ORGMEMBERSEARCHKEY_EMAIL = 3, - ORGMEMBERSEARCHKEY_USER_ID = 4, -} -export enum ProjectSearchKey { - PROJECTSEARCHKEY_UNSPECIFIED = 0, - PROJECTSEARCHKEY_PROJECT_NAME = 1, -} -export enum ProjectState { - PROJECTSTATE_UNSPECIFIED = 0, - PROJECTSTATE_ACTIVE = 1, - PROJECTSTATE_INACTIVE = 2, -} -export enum ProjectType { - PROJECTTYPE_UNSPECIFIED = 0, - PROJECTTYPE_OWNED = 1, - PROJECTTYPE_GRANTED = 2, -} -export enum ProjectRoleSearchKey { - PROJECTROLESEARCHKEY_UNSPECIFIED = 0, - PROJECTROLESEARCHKEY_KEY = 1, - PROJECTROLESEARCHKEY_DISPLAY_NAME = 2, -} -export enum ProjectMemberSearchKey { - PROJECTMEMBERSEARCHKEY_UNSPECIFIED = 0, - PROJECTMEMBERSEARCHKEY_FIRST_NAME = 1, - PROJECTMEMBERSEARCHKEY_LAST_NAME = 2, - PROJECTMEMBERSEARCHKEY_EMAIL = 3, - PROJECTMEMBERSEARCHKEY_USER_ID = 4, - PROJECTMEMBERSEARCHKEY_USER_NAME = 5, -} -export enum AppState { - APPSTATE_UNSPECIFIED = 0, - APPSTATE_ACTIVE = 1, - APPSTATE_INACTIVE = 2, -} -export enum OIDCResponseType { - OIDCRESPONSETYPE_CODE = 0, - OIDCRESPONSETYPE_ID_TOKEN = 1, - OIDCRESPONSETYPE_TOKEN = 2, -} -export enum OIDCGrantType { - OIDCGRANTTYPE_AUTHORIZATION_CODE = 0, - OIDCGRANTTYPE_IMPLICIT = 1, - OIDCGRANTTYPE_REFRESH_TOKEN = 2, -} -export enum OIDCApplicationType { - OIDCAPPLICATIONTYPE_WEB = 0, - OIDCAPPLICATIONTYPE_USER_AGENT = 1, - OIDCAPPLICATIONTYPE_NATIVE = 2, -} -export enum OIDCAuthMethodType { - OIDCAUTHMETHODTYPE_BASIC = 0, - OIDCAUTHMETHODTYPE_POST = 1, - OIDCAUTHMETHODTYPE_NONE = 2, -} -export enum ApplicationSearchKey { - APPLICATIONSERACHKEY_UNSPECIFIED = 0, - APPLICATIONSEARCHKEY_APP_NAME = 1, -} -export enum ProjectGrantState { - PROJECTGRANTSTATE_UNSPECIFIED = 0, - PROJECTGRANTSTATE_ACTIVE = 1, - PROJECTGRANTSTATE_INACTIVE = 2, -} -export enum ProjectGrantSearchKey { - PROJECTGRANTSEARCHKEY_UNSPECIFIED = 0, - PROJECTGRANTSEARCHKEY_PROJECT_NAME = 1, - PROJECTGRANTSEARCHKEY_ROLE_KEY = 2, -} -export enum ProjectGrantMemberSearchKey { - PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED = 0, - PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME = 1, - PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME = 2, - PROJECTGRANTMEMBERSEARCHKEY_EMAIL = 3, - PROJECTGRANTMEMBERSEARCHKEY_USER_ID = 4, - PROJECTGRANTMEMBERSEARCHKEY_USER_NAME = 5, -} -export enum UserGrantState { - USERGRANTSTATE_UNSPECIFIED = 0, - USERGRANTSTATE_ACTIVE = 1, - USERGRANTSTATE_INACTIVE = 2, -} -export enum UserGrantSearchKey { - USERGRANTSEARCHKEY_UNSPECIFIED = 0, - USERGRANTSEARCHKEY_PROJECT_ID = 1, - USERGRANTSEARCHKEY_USER_ID = 2, - USERGRANTSEARCHKEY_ORG_ID = 3, - USERGRANTSEARCHKEY_ROLE_KEY = 4, -} diff --git a/console/src/app/proto/generated/management_pb.js b/console/src/app/proto/generated/management_pb.js deleted file mode 100644 index 65f1252859..0000000000 --- a/console/src/app/proto/generated/management_pb.js +++ /dev/null @@ -1,37587 +0,0 @@ -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('./google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var protoc$gen$swagger_options_annotations_pb = require('./protoc-gen-swagger/options/annotations_pb.js'); -goog.object.extend(proto, protoc$gen$swagger_options_annotations_pb); -var validate_validate_pb = require('./validate/validate_pb.js'); -goog.object.extend(proto, validate_validate_pb); -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -var authoption_options_pb = require('./authoption/options_pb.js'); -goog.object.extend(proto, authoption_options_pb); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.AddOrgDomainRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.AddOrgMemberRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.AppState', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.Application', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ApplicationID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ApplicationSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ApplicationSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ApplicationSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ApplicationSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ApplicationUpdate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ApplicationView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.Change', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ChangeRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.Changes', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ClientSecret', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.CreateUserRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.Domain', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.Email', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.Gender', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.Iam', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.MFAState', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.MfaType', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.MultiFactor', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.MultiFactors', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.NotificationType', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OIDCApplicationCreate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OIDCApplicationType', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OIDCAuthMethodType', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OIDCConfig', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OIDCConfigUpdate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OIDCGrantType', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OIDCResponseType', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.Org', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgDomain', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgDomainSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgDomainView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgDomains', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgIamPolicy', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgMember', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgMemberRoles', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgMemberSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgMemberView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgState', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.OrgView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordAgePolicy', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordAgePolicyID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PasswordRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.PolicyState', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.Project', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectCreateRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrant', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantCreate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantMember', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantMemberView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantState', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantUpdate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectGrantView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectMember', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectMemberAdd', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectMemberChange', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectMemberRemove', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectMemberRoles', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectMemberSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectMemberView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectRole', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectRoleAdd', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectRoleChange', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectRoleRemove', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectRoleSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectRoleView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectState', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectType', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectUpdateRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectUserGrantID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ProjectView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.Projects', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.ResetPasswordRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.SearchMethod', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UniqueUserRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UniqueUserResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.User', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserAddress', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserAddressView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserEmail', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserEmailView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrant', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantCreate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantCreateBulk', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantState', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantUpdate', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserGrantView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserID', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserPhone', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserPhoneView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserProfile', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserProfileView', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserSearchKey', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserSearchQuery', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserSearchRequest', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserSearchResponse', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserState', null, global); -goog.exportSymbol('proto.caos.zitadel.management.api.v1.UserView', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.Iam = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.Iam, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.Iam.displayName = 'proto.caos.zitadel.management.api.v1.Iam'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ChangeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ChangeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ChangeRequest.displayName = 'proto.caos.zitadel.management.api.v1.ChangeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.Changes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.Changes.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.Changes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.Changes.displayName = 'proto.caos.zitadel.management.api.v1.Changes'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.Change = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.Change, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.Change.displayName = 'proto.caos.zitadel.management.api.v1.Change'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ApplicationID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ApplicationID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ApplicationID.displayName = 'proto.caos.zitadel.management.api.v1.ApplicationID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectID.displayName = 'proto.caos.zitadel.management.api.v1.ProjectID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserID.displayName = 'proto.caos.zitadel.management.api.v1.UserID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.Email = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.Email, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.Email.displayName = 'proto.caos.zitadel.management.api.v1.Email'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UniqueUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UniqueUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UniqueUserRequest.displayName = 'proto.caos.zitadel.management.api.v1.UniqueUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UniqueUserResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UniqueUserResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UniqueUserResponse.displayName = 'proto.caos.zitadel.management.api.v1.UniqueUserResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.CreateUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.CreateUserRequest.displayName = 'proto.caos.zitadel.management.api.v1.CreateUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.User = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.User, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.User.displayName = 'proto.caos.zitadel.management.api.v1.User'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserView.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserView.displayName = 'proto.caos.zitadel.management.api.v1.UserView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.UserSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserSearchQuery.displayName = 'proto.caos.zitadel.management.api.v1.UserSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserSearchResponse.displayName = 'proto.caos.zitadel.management.api.v1.UserSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserProfile = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserProfile, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserProfile.displayName = 'proto.caos.zitadel.management.api.v1.UserProfile'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserProfileView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserProfileView.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserProfileView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserProfileView.displayName = 'proto.caos.zitadel.management.api.v1.UserProfileView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.displayName = 'proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserEmail = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserEmail, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserEmail.displayName = 'proto.caos.zitadel.management.api.v1.UserEmail'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserEmailView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserEmailView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserEmailView.displayName = 'proto.caos.zitadel.management.api.v1.UserEmailView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.displayName = 'proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserPhone = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserPhone, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserPhone.displayName = 'proto.caos.zitadel.management.api.v1.UserPhone'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserPhoneView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserPhoneView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserPhoneView.displayName = 'proto.caos.zitadel.management.api.v1.UserPhoneView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.displayName = 'proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserAddress = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserAddress, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserAddress.displayName = 'proto.caos.zitadel.management.api.v1.UserAddress'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserAddressView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserAddressView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserAddressView.displayName = 'proto.caos.zitadel.management.api.v1.UserAddressView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.displayName = 'proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.MultiFactors = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.MultiFactors.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.MultiFactors, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.MultiFactors.displayName = 'proto.caos.zitadel.management.api.v1.MultiFactors'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.MultiFactor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.MultiFactor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.MultiFactor.displayName = 'proto.caos.zitadel.management.api.v1.MultiFactor'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordID.displayName = 'proto.caos.zitadel.management.api.v1.PasswordID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordRequest.displayName = 'proto.caos.zitadel.management.api.v1.PasswordRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ResetPasswordRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ResetPasswordRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ResetPasswordRequest.displayName = 'proto.caos.zitadel.management.api.v1.ResetPasswordRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.displayName = 'proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.displayName = 'proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.displayName = 'proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.displayName = 'proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.displayName = 'proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordAgePolicyID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.displayName = 'proto.caos.zitadel.management.api.v1.PasswordAgePolicyID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordAgePolicy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordAgePolicy.displayName = 'proto.caos.zitadel.management.api.v1.PasswordAgePolicy'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.displayName = 'proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.displayName = 'proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.displayName = 'proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.displayName = 'proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.displayName = 'proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.displayName = 'proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgIamPolicy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgIamPolicy.displayName = 'proto.caos.zitadel.management.api.v1.OrgIamPolicy'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgID.displayName = 'proto.caos.zitadel.management.api.v1.OrgID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.Org = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.Org, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.Org.displayName = 'proto.caos.zitadel.management.api.v1.Org'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgView.displayName = 'proto.caos.zitadel.management.api.v1.OrgView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.Domain = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.Domain, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.Domain.displayName = 'proto.caos.zitadel.management.api.v1.Domain'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgDomains = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.OrgDomains.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgDomains, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgDomains.displayName = 'proto.caos.zitadel.management.api.v1.OrgDomains'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgDomain = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgDomain, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgDomain.displayName = 'proto.caos.zitadel.management.api.v1.OrgDomain'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgDomainView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgDomainView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgDomainView.displayName = 'proto.caos.zitadel.management.api.v1.OrgDomainView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.AddOrgDomainRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.AddOrgDomainRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.displayName = 'proto.caos.zitadel.management.api.v1.AddOrgDomainRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.displayName = 'proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.displayName = 'proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.displayName = 'proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.OrgMemberRoles.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgMemberRoles, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgMemberRoles.displayName = 'proto.caos.zitadel.management.api.v1.OrgMemberRoles'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgMember = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.OrgMember.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgMember, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgMember.displayName = 'proto.caos.zitadel.management.api.v1.OrgMember'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.AddOrgMemberRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.displayName = 'proto.caos.zitadel.management.api.v1.AddOrgMemberRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.displayName = 'proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.displayName = 'proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.displayName = 'proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgMemberView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.OrgMemberView.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgMemberView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgMemberView.displayName = 'proto.caos.zitadel.management.api.v1.OrgMemberView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.displayName = 'proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectCreateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectCreateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectCreateRequest.displayName = 'proto.caos.zitadel.management.api.v1.ProjectCreateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectUpdateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectUpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.displayName = 'proto.caos.zitadel.management.api.v1.ProjectUpdateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectSearchResponse.displayName = 'proto.caos.zitadel.management.api.v1.ProjectSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectView.displayName = 'proto.caos.zitadel.management.api.v1.ProjectView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.ProjectSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectSearchQuery.displayName = 'proto.caos.zitadel.management.api.v1.ProjectSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.Projects = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.Projects.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.Projects, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.Projects.displayName = 'proto.caos.zitadel.management.api.v1.Projects'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.Project = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.Project, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.Project.displayName = 'proto.caos.zitadel.management.api.v1.Project'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectMemberRoles.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectMemberRoles, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectMemberRoles.displayName = 'proto.caos.zitadel.management.api.v1.ProjectMemberRoles'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectMember = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectMember.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectMember, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectMember.displayName = 'proto.caos.zitadel.management.api.v1.ProjectMember'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectMemberAdd.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectMemberAdd, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectMemberAdd.displayName = 'proto.caos.zitadel.management.api.v1.ProjectMemberAdd'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectMemberChange.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectMemberChange, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectMemberChange.displayName = 'proto.caos.zitadel.management.api.v1.ProjectMemberChange'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRemove = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectMemberRemove, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectMemberRemove.displayName = 'proto.caos.zitadel.management.api.v1.ProjectMemberRemove'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectRoleAdd, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectRoleAdd.displayName = 'proto.caos.zitadel.management.api.v1.ProjectRoleAdd'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.displayName = 'proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectRoleChange, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectRoleChange.displayName = 'proto.caos.zitadel.management.api.v1.ProjectRoleChange'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectRole = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectRole, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectRole.displayName = 'proto.caos.zitadel.management.api.v1.ProjectRole'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectRoleView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectRoleView.displayName = 'proto.caos.zitadel.management.api.v1.ProjectRoleView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectRoleRemove = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectRoleRemove, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectRoleRemove.displayName = 'proto.caos.zitadel.management.api.v1.ProjectRoleRemove'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.displayName = 'proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.displayName = 'proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectMemberView.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectMemberView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectMemberView.displayName = 'proto.caos.zitadel.management.api.v1.ProjectMemberView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.displayName = 'proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.displayName = 'proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.Application = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.caos.zitadel.management.api.v1.Application.oneofGroups_); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.Application, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.Application.displayName = 'proto.caos.zitadel.management.api.v1.Application'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ApplicationUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ApplicationUpdate.displayName = 'proto.caos.zitadel.management.api.v1.ApplicationUpdate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OIDCConfig = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.OIDCConfig.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OIDCConfig, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OIDCConfig.displayName = 'proto.caos.zitadel.management.api.v1.OIDCConfig'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OIDCApplicationCreate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.displayName = 'proto.caos.zitadel.management.api.v1.OIDCApplicationCreate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.OIDCConfigUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.displayName = 'proto.caos.zitadel.management.api.v1.OIDCConfigUpdate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ClientSecret = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ClientSecret, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ClientSecret.displayName = 'proto.caos.zitadel.management.api.v1.ClientSecret'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ApplicationView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.caos.zitadel.management.api.v1.ApplicationView.oneofGroups_); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ApplicationView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ApplicationView.displayName = 'proto.caos.zitadel.management.api.v1.ApplicationView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ApplicationSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.displayName = 'proto.caos.zitadel.management.api.v1.ApplicationSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ApplicationSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.ApplicationSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ApplicationSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.displayName = 'proto.caos.zitadel.management.api.v1.ApplicationSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrant = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrant.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrant, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrant.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrant'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantCreate.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantCreate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantCreate.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantCreate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantUpdate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantID.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantView.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantView.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantMember.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantMember, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantMember.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantMember'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantMemberView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantMemberView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserGrant = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserGrant.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserGrant, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserGrant.displayName = 'proto.caos.zitadel.management.api.v1.UserGrant'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserGrantCreateBulk, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.displayName = 'proto.caos.zitadel.management.api.v1.UserGrantCreateBulk'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserGrantCreate.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserGrantCreate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserGrantCreate.displayName = 'proto.caos.zitadel.management.api.v1.UserGrantCreate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.displayName = 'proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserGrantUpdate.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserGrantUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserGrantUpdate.displayName = 'proto.caos.zitadel.management.api.v1.UserGrantUpdate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.displayName = 'proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserGrantID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserGrantID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserGrantID.displayName = 'proto.caos.zitadel.management.api.v1.UserGrantID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectUserGrantID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectUserGrantID.displayName = 'proto.caos.zitadel.management.api.v1.ProjectUserGrantID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.displayName = 'proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserGrantView = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserGrantView.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserGrantView, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserGrantView.displayName = 'proto.caos.zitadel.management.api.v1.UserGrantView'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserGrantSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.displayName = 'proto.caos.zitadel.management.api.v1.UserGrantSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserGrantSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.UserGrantSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.UserGrantSearchQuery, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.displayName = 'proto.caos.zitadel.management.api.v1.UserGrantSearchQuery'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.repeatedFields_, null); -}; -goog.inherits(proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.displayName = 'proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.Iam.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.Iam.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.Iam} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Iam.toObject = function(includeInstance, msg) { - var f, obj = { - globalOrgId: jspb.Message.getFieldWithDefault(msg, 1, ""), - iamProjectId: jspb.Message.getFieldWithDefault(msg, 2, ""), - setUpDone: jspb.Message.getFieldWithDefault(msg, 3, false), - setUpStarted: jspb.Message.getFieldWithDefault(msg, 4, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.Iam} - */ -proto.caos.zitadel.management.api.v1.Iam.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.Iam; - return proto.caos.zitadel.management.api.v1.Iam.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.Iam} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.Iam} - */ -proto.caos.zitadel.management.api.v1.Iam.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGlobalOrgId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setIamProjectId(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSetUpDone(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSetUpStarted(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.Iam.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.Iam.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.Iam} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Iam.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGlobalOrgId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIamProjectId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSetUpDone(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getSetUpStarted(); - if (f) { - writer.writeBool( - 4, - f - ); - } -}; - - -/** - * optional string global_org_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Iam.prototype.getGlobalOrgId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Iam.prototype.setGlobalOrgId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string iam_project_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Iam.prototype.getIamProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Iam.prototype.setIamProjectId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool set_up_done = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.Iam.prototype.getSetUpDone = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.Iam.prototype.setSetUpDone = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bool set_up_started = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.Iam.prototype.getSetUpStarted = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.Iam.prototype.setSetUpStarted = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ChangeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ChangeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - secId: jspb.Message.getFieldWithDefault(msg, 2, ""), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0), - sequenceOffset: jspb.Message.getFieldWithDefault(msg, 4, 0), - asc: jspb.Message.getFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ChangeRequest} - */ -proto.caos.zitadel.management.api.v1.ChangeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ChangeRequest; - return proto.caos.zitadel.management.api.v1.ChangeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ChangeRequest} - */ -proto.caos.zitadel.management.api.v1.ChangeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSecId(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequenceOffset(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAsc(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ChangeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ChangeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ChangeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSecId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getSequenceOffset(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getAsc(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string sec_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.getSecId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.setSecId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 limit = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 sequence_offset = 4; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.getSequenceOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.setSequenceOffset = function(value) { - jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bool asc = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.getAsc = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.ChangeRequest.prototype.setAsc = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.Changes.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.Changes.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.Changes.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.Changes} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Changes.toObject = function(includeInstance, msg) { - var f, obj = { - changesList: jspb.Message.toObjectList(msg.getChangesList(), - proto.caos.zitadel.management.api.v1.Change.toObject, includeInstance), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.Changes} - */ -proto.caos.zitadel.management.api.v1.Changes.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.Changes; - return proto.caos.zitadel.management.api.v1.Changes.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.Changes} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.Changes} - */ -proto.caos.zitadel.management.api.v1.Changes.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.caos.zitadel.management.api.v1.Change; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.Change.deserializeBinaryFromReader); - msg.addChanges(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.Changes.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.Changes.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.Changes} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Changes.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChangesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.caos.zitadel.management.api.v1.Change.serializeBinaryToWriter - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } -}; - - -/** - * repeated Change changes = 1; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.Changes.prototype.getChangesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.Change, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.Changes.prototype.setChangesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.Change=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.Change} - */ -proto.caos.zitadel.management.api.v1.Changes.prototype.addChanges = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.caos.zitadel.management.api.v1.Change, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.Changes.prototype.clearChangesList = function() { - this.setChangesList([]); -}; - - -/** - * optional uint64 offset = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.Changes.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.Changes.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 limit = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.Changes.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.Changes.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.Change.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.Change.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.Change} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Change.toObject = function(includeInstance, msg) { - var f, obj = { - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - eventType: jspb.Message.getFieldWithDefault(msg, 2, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 3, 0), - editorId: jspb.Message.getFieldWithDefault(msg, 4, ""), - editor: jspb.Message.getFieldWithDefault(msg, 5, ""), - data: (f = msg.getData()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.Change} - */ -proto.caos.zitadel.management.api.v1.Change.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.Change; - return proto.caos.zitadel.management.api.v1.Change.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.Change} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.Change} - */ -proto.caos.zitadel.management.api.v1.Change.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEventType(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEditorId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setEditor(value); - break; - case 6: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.Change.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.Change.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.Change} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Change.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEventType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getEditorId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getEditor(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Timestamp change_date = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.Change.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.Change.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.Change.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.Change.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string event_type = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Change.prototype.getEventType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Change.prototype.setEventType = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 sequence = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.Change.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.Change.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string editor_id = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Change.prototype.getEditorId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Change.prototype.setEditorId = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string editor = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Change.prototype.getEditor = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Change.prototype.setEditor = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional google.protobuf.Struct data = 6; - * @return {?proto.google.protobuf.Struct} - */ -proto.caos.zitadel.management.api.v1.Change.prototype.getData = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); -}; - - -/** @param {?proto.google.protobuf.Struct|undefined} value */ -proto.caos.zitadel.management.api.v1.Change.prototype.setData = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.Change.prototype.clearData = function() { - this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.Change.prototype.hasData = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ApplicationID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ApplicationID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationID.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - projectId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationID} - */ -proto.caos.zitadel.management.api.v1.ApplicationID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ApplicationID; - return proto.caos.zitadel.management.api.v1.ApplicationID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationID} - */ -proto.caos.zitadel.management.api.v1.ApplicationID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ApplicationID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ApplicationID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ApplicationID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ApplicationID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string project_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ApplicationID.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ApplicationID.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectID.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectID} - */ -proto.caos.zitadel.management.api.v1.ProjectID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectID; - return proto.caos.zitadel.management.api.v1.ProjectID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectID} - */ -proto.caos.zitadel.management.api.v1.ProjectID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserID.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserID} - */ -proto.caos.zitadel.management.api.v1.UserID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserID; - return proto.caos.zitadel.management.api.v1.UserID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserID} - */ -proto.caos.zitadel.management.api.v1.UserID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.Email.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.Email.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.Email} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Email.toObject = function(includeInstance, msg) { - var f, obj = { - email: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.Email} - */ -proto.caos.zitadel.management.api.v1.Email.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.Email; - return proto.caos.zitadel.management.api.v1.Email.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.Email} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.Email} - */ -proto.caos.zitadel.management.api.v1.Email.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.Email.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.Email.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.Email} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Email.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string email = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Email.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Email.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UniqueUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UniqueUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UniqueUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UniqueUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, ""), - email: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UniqueUserRequest} - */ -proto.caos.zitadel.management.api.v1.UniqueUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UniqueUserRequest; - return proto.caos.zitadel.management.api.v1.UniqueUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UniqueUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UniqueUserRequest} - */ -proto.caos.zitadel.management.api.v1.UniqueUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UniqueUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UniqueUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UniqueUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UniqueUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UniqueUserRequest.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UniqueUserRequest.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string email = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UniqueUserRequest.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UniqueUserRequest.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UniqueUserResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UniqueUserResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UniqueUserResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UniqueUserResponse.toObject = function(includeInstance, msg) { - var f, obj = { - isUnique: jspb.Message.getFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UniqueUserResponse} - */ -proto.caos.zitadel.management.api.v1.UniqueUserResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UniqueUserResponse; - return proto.caos.zitadel.management.api.v1.UniqueUserResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UniqueUserResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UniqueUserResponse} - */ -proto.caos.zitadel.management.api.v1.UniqueUserResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsUnique(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UniqueUserResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UniqueUserResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UniqueUserResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UniqueUserResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIsUnique(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool is_unique = 1; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UniqueUserResponse.prototype.getIsUnique = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.UniqueUserResponse.prototype.setIsUnique = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.CreateUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.CreateUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 2, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 3, ""), - nickName: jspb.Message.getFieldWithDefault(msg, 4, ""), - preferredLanguage: jspb.Message.getFieldWithDefault(msg, 5, ""), - gender: jspb.Message.getFieldWithDefault(msg, 6, 0), - email: jspb.Message.getFieldWithDefault(msg, 7, ""), - isEmailVerified: jspb.Message.getFieldWithDefault(msg, 8, false), - phone: jspb.Message.getFieldWithDefault(msg, 9, ""), - isPhoneVerified: jspb.Message.getFieldWithDefault(msg, 10, false), - country: jspb.Message.getFieldWithDefault(msg, 11, ""), - locality: jspb.Message.getFieldWithDefault(msg, 12, ""), - postalCode: jspb.Message.getFieldWithDefault(msg, 13, ""), - region: jspb.Message.getFieldWithDefault(msg, 14, ""), - streetAddress: jspb.Message.getFieldWithDefault(msg, 15, ""), - password: jspb.Message.getFieldWithDefault(msg, 16, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.CreateUserRequest} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.CreateUserRequest; - return proto.caos.zitadel.management.api.v1.CreateUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.CreateUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.CreateUserRequest} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNickName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLanguage(value); - break; - case 6: - var value = /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsEmailVerified(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setPhone(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPhoneVerified(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setLocality(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setPostalCode(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setStreetAddress(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.CreateUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.CreateUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getNickName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPreferredLanguage(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getGender(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getIsEmailVerified(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getPhone(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getIsPhoneVerified(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getLocality(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getPostalCode(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getStreetAddress(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } -}; - - -/** - * optional string user_name = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string first_name = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string last_name = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string nick_name = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getNickName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setNickName = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string preferred_language = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getPreferredLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setPreferredLanguage = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional Gender gender = 6; - * @return {!proto.caos.zitadel.management.api.v1.Gender} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getGender = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.Gender} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setGender = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional string email = 7; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional bool is_email_verified = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getIsEmailVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setIsEmailVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional string phone = 9; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getPhone = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setPhone = function(value) { - jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional bool is_phone_verified = 10; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getIsPhoneVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 10, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setIsPhoneVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional string country = 11; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setCountry = function(value) { - jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string locality = 12; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getLocality = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setLocality = function(value) { - jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional string postal_code = 13; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getPostalCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setPostalCode = function(value) { - jspb.Message.setProto3StringField(this, 13, value); -}; - - -/** - * optional string region = 14; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setRegion = function(value) { - jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional string street_address = 15; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getStreetAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setStreetAddress = function(value) { - jspb.Message.setProto3StringField(this, 15, value); -}; - - -/** - * optional string password = 16; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.CreateUserRequest.prototype.setPassword = function(value) { - jspb.Message.setProto3StringField(this, 16, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.User.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.User.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.User} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.User.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - userName: jspb.Message.getFieldWithDefault(msg, 5, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 6, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 7, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 8, ""), - nickName: jspb.Message.getFieldWithDefault(msg, 9, ""), - preferredLanguage: jspb.Message.getFieldWithDefault(msg, 10, ""), - gender: jspb.Message.getFieldWithDefault(msg, 11, 0), - email: jspb.Message.getFieldWithDefault(msg, 12, ""), - isEmailVerified: jspb.Message.getFieldWithDefault(msg, 13, false), - phone: jspb.Message.getFieldWithDefault(msg, 14, ""), - isPhoneVerified: jspb.Message.getFieldWithDefault(msg, 15, false), - country: jspb.Message.getFieldWithDefault(msg, 16, ""), - locality: jspb.Message.getFieldWithDefault(msg, 17, ""), - postalCode: jspb.Message.getFieldWithDefault(msg, 18, ""), - region: jspb.Message.getFieldWithDefault(msg, 19, ""), - streetAddress: jspb.Message.getFieldWithDefault(msg, 20, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 21, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.User} - */ -proto.caos.zitadel.management.api.v1.User.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.User; - return proto.caos.zitadel.management.api.v1.User.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.User} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.User} - */ -proto.caos.zitadel.management.api.v1.User.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.UserState} */ (reader.readEnum()); - msg.setState(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setNickName(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLanguage(value); - break; - case 11: - var value = /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsEmailVerified(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setPhone(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPhoneVerified(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setLocality(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setPostalCode(value); - break; - case 19: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setStreetAddress(value); - break; - case 21: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.User.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.User.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.User} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.User.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getNickName(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getPreferredLanguage(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getGender(); - if (f !== 0.0) { - writer.writeEnum( - 11, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getIsEmailVerified(); - if (f) { - writer.writeBool( - 13, - f - ); - } - f = message.getPhone(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getIsPhoneVerified(); - if (f) { - writer.writeBool( - 15, - f - ); - } - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getLocality(); - if (f.length > 0) { - writer.writeString( - 17, - f - ); - } - f = message.getPostalCode(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 19, - f - ); - } - f = message.getStreetAddress(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 21, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional UserState state = 2; - * @return {!proto.caos.zitadel.management.api.v1.UserState} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.UserState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.UserState} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.User.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.User.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.User.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.User.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string user_name = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string first_name = 6; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string last_name = 7; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string display_name = 8; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string nick_name = 9; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getNickName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setNickName = function(value) { - jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string preferred_language = 10; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getPreferredLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setPreferredLanguage = function(value) { - jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional Gender gender = 11; - * @return {!proto.caos.zitadel.management.api.v1.Gender} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getGender = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.Gender} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setGender = function(value) { - jspb.Message.setProto3EnumField(this, 11, value); -}; - - -/** - * optional string email = 12; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional bool is_email_verified = 13; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getIsEmailVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 13, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setIsEmailVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 13, value); -}; - - -/** - * optional string phone = 14; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getPhone = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setPhone = function(value) { - jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional bool is_phone_verified = 15; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getIsPhoneVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 15, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setIsPhoneVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 15, value); -}; - - -/** - * optional string country = 16; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setCountry = function(value) { - jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional string locality = 17; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getLocality = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setLocality = function(value) { - jspb.Message.setProto3StringField(this, 17, value); -}; - - -/** - * optional string postal_code = 18; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getPostalCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setPostalCode = function(value) { - jspb.Message.setProto3StringField(this, 18, value); -}; - - -/** - * optional string region = 19; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setRegion = function(value) { - jspb.Message.setProto3StringField(this, 19, value); -}; - - -/** - * optional string street_address = 20; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getStreetAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setStreetAddress = function(value) { - jspb.Message.setProto3StringField(this, 20, value); -}; - - -/** - * optional uint64 sequence = 21; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.User.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.User.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 21, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserView.repeatedFields_ = [25]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastLogin: (f = msg.getLastLogin()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - passwordChanged: (f = msg.getPasswordChanged()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - userName: jspb.Message.getFieldWithDefault(msg, 7, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 8, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 9, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 10, ""), - nickName: jspb.Message.getFieldWithDefault(msg, 11, ""), - preferredLanguage: jspb.Message.getFieldWithDefault(msg, 12, ""), - gender: jspb.Message.getFieldWithDefault(msg, 13, 0), - email: jspb.Message.getFieldWithDefault(msg, 14, ""), - isEmailVerified: jspb.Message.getFieldWithDefault(msg, 15, false), - phone: jspb.Message.getFieldWithDefault(msg, 16, ""), - isPhoneVerified: jspb.Message.getFieldWithDefault(msg, 17, false), - country: jspb.Message.getFieldWithDefault(msg, 18, ""), - locality: jspb.Message.getFieldWithDefault(msg, 19, ""), - postalCode: jspb.Message.getFieldWithDefault(msg, 20, ""), - region: jspb.Message.getFieldWithDefault(msg, 21, ""), - streetAddress: jspb.Message.getFieldWithDefault(msg, 22, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 23, 0), - resourceOwner: jspb.Message.getFieldWithDefault(msg, 24, ""), - loginNamesList: jspb.Message.getRepeatedField(msg, 25), - preferredLoginName: jspb.Message.getFieldWithDefault(msg, 26, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserView} - */ -proto.caos.zitadel.management.api.v1.UserView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserView; - return proto.caos.zitadel.management.api.v1.UserView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserView} - */ -proto.caos.zitadel.management.api.v1.UserView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.UserState} */ (reader.readEnum()); - msg.setState(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastLogin(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setPasswordChanged(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setNickName(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLanguage(value); - break; - case 13: - var value = /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsEmailVerified(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setPhone(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPhoneVerified(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 19: - var value = /** @type {string} */ (reader.readString()); - msg.setLocality(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setPostalCode(value); - break; - case 21: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 22: - var value = /** @type {string} */ (reader.readString()); - msg.setStreetAddress(value); - break; - case 23: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 24: - var value = /** @type {string} */ (reader.readString()); - msg.setResourceOwner(value); - break; - case 25: - var value = /** @type {string} */ (reader.readString()); - msg.addLoginNames(value); - break; - case 26: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLoginName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastLogin(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getPasswordChanged(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getNickName(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getPreferredLanguage(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getGender(); - if (f !== 0.0) { - writer.writeEnum( - 13, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getIsEmailVerified(); - if (f) { - writer.writeBool( - 15, - f - ); - } - f = message.getPhone(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getIsPhoneVerified(); - if (f) { - writer.writeBool( - 17, - f - ); - } - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getLocality(); - if (f.length > 0) { - writer.writeString( - 19, - f - ); - } - f = message.getPostalCode(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 21, - f - ); - } - f = message.getStreetAddress(); - if (f.length > 0) { - writer.writeString( - 22, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 23, - f - ); - } - f = message.getResourceOwner(); - if (f.length > 0) { - writer.writeString( - 24, - f - ); - } - f = message.getLoginNamesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 25, - f - ); - } - f = message.getPreferredLoginName(); - if (f.length > 0) { - writer.writeString( - 26, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional UserState state = 2; - * @return {!proto.caos.zitadel.management.api.v1.UserState} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.UserState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.UserState} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_login = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getLastLogin = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setLastLogin = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.clearLastLogin = function() { - this.setLastLogin(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.hasLastLogin = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Timestamp password_changed = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getPasswordChanged = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setPasswordChanged = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.clearPasswordChanged = function() { - this.setPasswordChanged(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.hasPasswordChanged = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional string user_name = 7; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string first_name = 8; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string last_name = 9; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string display_name = 10; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional string nick_name = 11; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getNickName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setNickName = function(value) { - jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string preferred_language = 12; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getPreferredLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setPreferredLanguage = function(value) { - jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional Gender gender = 13; - * @return {!proto.caos.zitadel.management.api.v1.Gender} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getGender = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.Gender} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setGender = function(value) { - jspb.Message.setProto3EnumField(this, 13, value); -}; - - -/** - * optional string email = 14; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional bool is_email_verified = 15; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getIsEmailVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 15, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setIsEmailVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 15, value); -}; - - -/** - * optional string phone = 16; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getPhone = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setPhone = function(value) { - jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional bool is_phone_verified = 17; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getIsPhoneVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 17, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setIsPhoneVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 17, value); -}; - - -/** - * optional string country = 18; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setCountry = function(value) { - jspb.Message.setProto3StringField(this, 18, value); -}; - - -/** - * optional string locality = 19; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getLocality = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setLocality = function(value) { - jspb.Message.setProto3StringField(this, 19, value); -}; - - -/** - * optional string postal_code = 20; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getPostalCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setPostalCode = function(value) { - jspb.Message.setProto3StringField(this, 20, value); -}; - - -/** - * optional string region = 21; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setRegion = function(value) { - jspb.Message.setProto3StringField(this, 21, value); -}; - - -/** - * optional string street_address = 22; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getStreetAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setStreetAddress = function(value) { - jspb.Message.setProto3StringField(this, 22, value); -}; - - -/** - * optional uint64 sequence = 23; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 23, value); -}; - - -/** - * optional string resource_owner = 24; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getResourceOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setResourceOwner = function(value) { - jspb.Message.setProto3StringField(this, 24, value); -}; - - -/** - * repeated string login_names = 25; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getLoginNamesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 25)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setLoginNamesList = function(value) { - jspb.Message.setField(this, 25, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.addLoginNames = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 25, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.clearLoginNamesList = function() { - this.setLoginNamesList([]); -}; - - -/** - * optional string preferred_login_name = 26; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserView.prototype.getPreferredLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserView.prototype.setPreferredLoginName = function(value) { - jspb.Message.setProto3StringField(this, 26, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - sortingColumn: jspb.Message.getFieldWithDefault(msg, 3, 0), - asc: jspb.Message.getFieldWithDefault(msg, 4, false), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.UserSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserSearchRequest} - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserSearchRequest; - return proto.caos.zitadel.management.api.v1.UserSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserSearchRequest} - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {!proto.caos.zitadel.management.api.v1.UserSearchKey} */ (reader.readEnum()); - msg.setSortingColumn(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAsc(value); - break; - case 5: - var value = new proto.caos.zitadel.management.api.v1.UserSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.UserSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getSortingColumn(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getAsc(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.caos.zitadel.management.api.v1.UserSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional UserSearchKey sorting_column = 3; - * @return {!proto.caos.zitadel.management.api.v1.UserSearchKey} - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.getSortingColumn = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.UserSearchKey} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.UserSearchKey} value */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.setSortingColumn = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional bool asc = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.getAsc = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.setAsc = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * repeated UserSearchQuery queries = 5; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.UserSearchQuery, 5)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.UserSearchQuery} - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.caos.zitadel.management.api.v1.UserSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserSearchQuery} - */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserSearchQuery; - return proto.caos.zitadel.management.api.v1.UserSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserSearchQuery} - */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.management.api.v1.UserSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional UserSearchKey key = 1; - * @return {!proto.caos.zitadel.management.api.v1.UserSearchKey} - */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.UserSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.UserSearchKey} value */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.management.api.v1.SearchMethod} - */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.SearchMethod} value */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.management.api.v1.UserView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserSearchResponse} - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserSearchResponse; - return proto.caos.zitadel.management.api.v1.UserSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserSearchResponse} - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.UserView; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.UserView.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.UserView.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated UserView result = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.UserView, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.UserView} - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.UserView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserProfile.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserProfile} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserProfile.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 2, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 3, ""), - nickName: jspb.Message.getFieldWithDefault(msg, 4, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 5, ""), - preferredLanguage: jspb.Message.getFieldWithDefault(msg, 6, ""), - gender: jspb.Message.getFieldWithDefault(msg, 7, 0), - userName: jspb.Message.getFieldWithDefault(msg, 8, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 9, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserProfile} - */ -proto.caos.zitadel.management.api.v1.UserProfile.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserProfile; - return proto.caos.zitadel.management.api.v1.UserProfile.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserProfile} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserProfile} - */ -proto.caos.zitadel.management.api.v1.UserProfile.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNickName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLanguage(value); - break; - case 7: - var value = /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 10: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 11: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserProfile.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserProfile} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserProfile.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getNickName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getPreferredLanguage(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getGender(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 11, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string first_name = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string last_name = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string nick_name = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.getNickName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.setNickName = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string display_name = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string preferred_language = 6; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.getPreferredLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.setPreferredLanguage = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional Gender gender = 7; - * @return {!proto.caos.zitadel.management.api.v1.Gender} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.getGender = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.Gender} value */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.setGender = function(value) { - jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional string user_name = 8; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional uint64 sequence = 9; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 10; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 11; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserProfile.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 11) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserProfileView.repeatedFields_ = [12]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserProfileView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserProfileView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserProfileView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 2, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 3, ""), - nickName: jspb.Message.getFieldWithDefault(msg, 4, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 5, ""), - preferredLanguage: jspb.Message.getFieldWithDefault(msg, 6, ""), - gender: jspb.Message.getFieldWithDefault(msg, 7, 0), - userName: jspb.Message.getFieldWithDefault(msg, 8, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 9, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - loginNamesList: jspb.Message.getRepeatedField(msg, 12), - preferredLoginName: jspb.Message.getFieldWithDefault(msg, 27, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserProfileView} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserProfileView; - return proto.caos.zitadel.management.api.v1.UserProfileView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserProfileView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserProfileView} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNickName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLanguage(value); - break; - case 7: - var value = /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 10: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 11: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.addLoginNames(value); - break; - case 27: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLoginName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserProfileView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserProfileView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserProfileView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getNickName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getPreferredLanguage(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getGender(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 11, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLoginNamesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 12, - f - ); - } - f = message.getPreferredLoginName(); - if (f.length > 0) { - writer.writeString( - 27, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string first_name = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string last_name = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string nick_name = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getNickName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setNickName = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string display_name = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string preferred_language = 6; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getPreferredLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setPreferredLanguage = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional Gender gender = 7; - * @return {!proto.caos.zitadel.management.api.v1.Gender} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getGender = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.Gender} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setGender = function(value) { - jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional string user_name = 8; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional uint64 sequence = 9; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 10; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 11; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * repeated string login_names = 12; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getLoginNamesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 12)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setLoginNamesList = function(value) { - jspb.Message.setField(this, 12, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.addLoginNames = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 12, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.clearLoginNamesList = function() { - this.setLoginNamesList([]); -}; - - -/** - * optional string preferred_login_name = 27; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.getPreferredLoginName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserProfileView.prototype.setPreferredLoginName = function(value) { - jspb.Message.setProto3StringField(this, 27, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 2, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 3, ""), - nickName: jspb.Message.getFieldWithDefault(msg, 4, ""), - preferredLanguage: jspb.Message.getFieldWithDefault(msg, 5, ""), - gender: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest} - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest; - return proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest} - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNickName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPreferredLanguage(value); - break; - case 6: - var value = /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getNickName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPreferredLanguage(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getGender(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string first_name = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string last_name = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string nick_name = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.getNickName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.setNickName = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string preferred_language = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.getPreferredLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.setPreferredLanguage = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional Gender gender = 6; - * @return {!proto.caos.zitadel.management.api.v1.Gender} - */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.getGender = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.Gender} value */ -proto.caos.zitadel.management.api.v1.UpdateUserProfileRequest.prototype.setGender = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserEmail.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserEmail} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserEmail.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - email: jspb.Message.getFieldWithDefault(msg, 2, ""), - isEmailVerified: jspb.Message.getFieldWithDefault(msg, 3, false), - sequence: jspb.Message.getFieldWithDefault(msg, 4, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserEmail} - */ -proto.caos.zitadel.management.api.v1.UserEmail.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserEmail; - return proto.caos.zitadel.management.api.v1.UserEmail.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserEmail} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserEmail} - */ -proto.caos.zitadel.management.api.v1.UserEmail.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsEmailVerified(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserEmail.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserEmail} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserEmail.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsEmailVerified(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string email = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_email_verified = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.getIsEmailVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.setIsEmailVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint64 sequence = 4; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserEmail.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserEmailView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserEmailView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserEmailView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - email: jspb.Message.getFieldWithDefault(msg, 2, ""), - isEmailVerified: jspb.Message.getFieldWithDefault(msg, 3, false), - sequence: jspb.Message.getFieldWithDefault(msg, 4, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserEmailView} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserEmailView; - return proto.caos.zitadel.management.api.v1.UserEmailView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserEmailView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserEmailView} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsEmailVerified(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserEmailView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserEmailView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserEmailView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsEmailVerified(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string email = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_email_verified = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.getIsEmailVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.setIsEmailVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint64 sequence = 4; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserEmailView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - email: jspb.Message.getFieldWithDefault(msg, 2, ""), - isEmailVerified: jspb.Message.getFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest} - */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest; - return proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest} - */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsEmailVerified(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsEmailVerified(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string email = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_email_verified = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.prototype.getIsEmailVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.UpdateUserEmailRequest.prototype.setIsEmailVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserPhone.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserPhone} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserPhone.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - phone: jspb.Message.getFieldWithDefault(msg, 2, ""), - isPhoneVerified: jspb.Message.getFieldWithDefault(msg, 3, false), - sequence: jspb.Message.getFieldWithDefault(msg, 5, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserPhone} - */ -proto.caos.zitadel.management.api.v1.UserPhone.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserPhone; - return proto.caos.zitadel.management.api.v1.UserPhone.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserPhone} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserPhone} - */ -proto.caos.zitadel.management.api.v1.UserPhone.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPhone(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPhoneVerified(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserPhone.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserPhone} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserPhone.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPhone(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsPhoneVerified(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string phone = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.getPhone = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.setPhone = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_phone_verified = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.getIsPhoneVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.setIsPhoneVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint64 sequence = 5; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserPhone.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserPhoneView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserPhoneView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - phone: jspb.Message.getFieldWithDefault(msg, 2, ""), - isPhoneVerified: jspb.Message.getFieldWithDefault(msg, 3, false), - sequence: jspb.Message.getFieldWithDefault(msg, 5, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserPhoneView} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserPhoneView; - return proto.caos.zitadel.management.api.v1.UserPhoneView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserPhoneView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserPhoneView} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPhone(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPhoneVerified(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserPhoneView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserPhoneView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPhone(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsPhoneVerified(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string phone = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.getPhone = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.setPhone = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_phone_verified = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.getIsPhoneVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.setIsPhoneVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint64 sequence = 5; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserPhoneView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - phone: jspb.Message.getFieldWithDefault(msg, 2, ""), - isPhoneVerified: jspb.Message.getFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest} - */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest; - return proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest} - */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPhone(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPhoneVerified(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPhone(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsPhoneVerified(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string phone = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.prototype.getPhone = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.prototype.setPhone = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_phone_verified = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.prototype.getIsPhoneVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.UpdateUserPhoneRequest.prototype.setIsPhoneVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserAddress.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserAddress} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserAddress.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - country: jspb.Message.getFieldWithDefault(msg, 2, ""), - locality: jspb.Message.getFieldWithDefault(msg, 3, ""), - postalCode: jspb.Message.getFieldWithDefault(msg, 4, ""), - region: jspb.Message.getFieldWithDefault(msg, 5, ""), - streetAddress: jspb.Message.getFieldWithDefault(msg, 6, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 7, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserAddress} - */ -proto.caos.zitadel.management.api.v1.UserAddress.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserAddress; - return proto.caos.zitadel.management.api.v1.UserAddress.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserAddress} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserAddress} - */ -proto.caos.zitadel.management.api.v1.UserAddress.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLocality(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPostalCode(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setStreetAddress(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserAddress.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserAddress} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserAddress.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLocality(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPostalCode(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getStreetAddress(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string country = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.setCountry = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string locality = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.getLocality = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.setLocality = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string postal_code = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.getPostalCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.setPostalCode = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string region = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.setRegion = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string street_address = 6; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.getStreetAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.setStreetAddress = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint64 sequence = 7; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 9; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserAddress.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserAddressView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserAddressView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserAddressView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - country: jspb.Message.getFieldWithDefault(msg, 2, ""), - locality: jspb.Message.getFieldWithDefault(msg, 3, ""), - postalCode: jspb.Message.getFieldWithDefault(msg, 4, ""), - region: jspb.Message.getFieldWithDefault(msg, 5, ""), - streetAddress: jspb.Message.getFieldWithDefault(msg, 6, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 7, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserAddressView} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserAddressView; - return proto.caos.zitadel.management.api.v1.UserAddressView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserAddressView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserAddressView} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLocality(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPostalCode(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setStreetAddress(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserAddressView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserAddressView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserAddressView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLocality(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPostalCode(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getStreetAddress(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string country = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.setCountry = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string locality = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.getLocality = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.setLocality = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string postal_code = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.getPostalCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.setPostalCode = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string region = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.setRegion = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string street_address = 6; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.getStreetAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.setStreetAddress = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint64 sequence = 7; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 9; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserAddressView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - country: jspb.Message.getFieldWithDefault(msg, 2, ""), - locality: jspb.Message.getFieldWithDefault(msg, 3, ""), - postalCode: jspb.Message.getFieldWithDefault(msg, 4, ""), - region: jspb.Message.getFieldWithDefault(msg, 5, ""), - streetAddress: jspb.Message.getFieldWithDefault(msg, 6, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest} - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest; - return proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest} - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLocality(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPostalCode(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setStreetAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLocality(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPostalCode(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getStreetAddress(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string country = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.setCountry = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string locality = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.getLocality = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.setLocality = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string postal_code = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.getPostalCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.setPostalCode = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string region = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.setRegion = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string street_address = 6; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.getStreetAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UpdateUserAddressRequest.prototype.setStreetAddress = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.MultiFactors.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.MultiFactors.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.MultiFactors.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.MultiFactors} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.MultiFactors.toObject = function(includeInstance, msg) { - var f, obj = { - mfasList: jspb.Message.toObjectList(msg.getMfasList(), - proto.caos.zitadel.management.api.v1.MultiFactor.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.MultiFactors} - */ -proto.caos.zitadel.management.api.v1.MultiFactors.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.MultiFactors; - return proto.caos.zitadel.management.api.v1.MultiFactors.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.MultiFactors} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.MultiFactors} - */ -proto.caos.zitadel.management.api.v1.MultiFactors.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.caos.zitadel.management.api.v1.MultiFactor; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.MultiFactor.deserializeBinaryFromReader); - msg.addMfas(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.MultiFactors.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.MultiFactors.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.MultiFactors} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.MultiFactors.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMfasList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.caos.zitadel.management.api.v1.MultiFactor.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated MultiFactor mfas = 1; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.MultiFactors.prototype.getMfasList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.MultiFactor, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.MultiFactors.prototype.setMfasList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.MultiFactor=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.MultiFactor} - */ -proto.caos.zitadel.management.api.v1.MultiFactors.prototype.addMfas = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.caos.zitadel.management.api.v1.MultiFactor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.MultiFactors.prototype.clearMfasList = function() { - this.setMfasList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.MultiFactor.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.MultiFactor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.MultiFactor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.MultiFactor.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, 0), - state: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.MultiFactor} - */ -proto.caos.zitadel.management.api.v1.MultiFactor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.MultiFactor; - return proto.caos.zitadel.management.api.v1.MultiFactor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.MultiFactor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.MultiFactor} - */ -proto.caos.zitadel.management.api.v1.MultiFactor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.management.api.v1.MfaType} */ (reader.readEnum()); - msg.setType(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.MFAState} */ (reader.readEnum()); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.MultiFactor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.MultiFactor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.MultiFactor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.MultiFactor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional MfaType type = 1; - * @return {!proto.caos.zitadel.management.api.v1.MfaType} - */ -proto.caos.zitadel.management.api.v1.MultiFactor.prototype.getType = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.MfaType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.MfaType} value */ -proto.caos.zitadel.management.api.v1.MultiFactor.prototype.setType = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional MFAState state = 2; - * @return {!proto.caos.zitadel.management.api.v1.MFAState} - */ -proto.caos.zitadel.management.api.v1.MultiFactor.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.MFAState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.MFAState} value */ -proto.caos.zitadel.management.api.v1.MultiFactor.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordID.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordID} - */ -proto.caos.zitadel.management.api.v1.PasswordID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordID; - return proto.caos.zitadel.management.api.v1.PasswordID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordID} - */ -proto.caos.zitadel.management.api.v1.PasswordID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - password: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordRequest} - */ -proto.caos.zitadel.management.api.v1.PasswordRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordRequest; - return proto.caos.zitadel.management.api.v1.PasswordRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordRequest} - */ -proto.caos.zitadel.management.api.v1.PasswordRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string password = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordRequest.prototype.setPassword = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ResetPasswordRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ResetPasswordRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ResetPasswordRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ResetPasswordRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ResetPasswordRequest} - */ -proto.caos.zitadel.management.api.v1.ResetPasswordRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ResetPasswordRequest; - return proto.caos.zitadel.management.api.v1.ResetPasswordRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ResetPasswordRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ResetPasswordRequest} - */ -proto.caos.zitadel.management.api.v1.ResetPasswordRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ResetPasswordRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ResetPasswordRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ResetPasswordRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ResetPasswordRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ResetPasswordRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ResetPasswordRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest} - */ -proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest; - return proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest} - */ -proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.NotificationType} */ (reader.readEnum()); - msg.setType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NotificationType type = 2; - * @return {!proto.caos.zitadel.management.api.v1.NotificationType} - */ -proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.prototype.getType = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.NotificationType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.NotificationType} value */ -proto.caos.zitadel.management.api.v1.SetPasswordNotificationRequest.prototype.setType = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID; - return proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - state: jspb.Message.getFieldWithDefault(msg, 3, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - minLength: jspb.Message.getFieldWithDefault(msg, 6, 0), - hasLowercase: jspb.Message.getFieldWithDefault(msg, 7, false), - hasUppercase: jspb.Message.getFieldWithDefault(msg, 8, false), - hasNumber: jspb.Message.getFieldWithDefault(msg, 9, false), - hasSymbol: jspb.Message.getFieldWithDefault(msg, 10, false), - sequence: jspb.Message.getFieldWithDefault(msg, 11, 0), - isDefault: jspb.Message.getFieldWithDefault(msg, 12, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy; - return proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {!proto.caos.zitadel.management.api.v1.PolicyState} */ (reader.readEnum()); - msg.setState(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinLength(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasLowercase(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasUppercase(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasNumber(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasSymbol(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 12: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDefault(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getMinLength(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } - f = message.getHasLowercase(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getHasUppercase(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getHasNumber(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getHasSymbol(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 11, - f - ); - } - f = message.getIsDefault(); - if (f) { - writer.writeBool( - 12, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional PolicyState state = 3; - * @return {!proto.caos.zitadel.management.api.v1.PolicyState} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.PolicyState} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.PolicyState} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional uint64 min_length = 6; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getMinLength = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setMinLength = function(value) { - jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional bool has_lowercase = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getHasLowercase = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setHasLowercase = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional bool has_uppercase = 8; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getHasUppercase = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 8, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setHasUppercase = function(value) { - jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional bool has_number = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getHasNumber = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setHasNumber = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional bool has_symbol = 10; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getHasSymbol = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 10, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setHasSymbol = function(value) { - jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional uint64 sequence = 11; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional bool is_default = 12; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.getIsDefault = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 12, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicy.prototype.setIsDefault = function(value) { - jspb.Message.setProto3BooleanField(this, 12, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.toObject = function(includeInstance, msg) { - var f, obj = { - description: jspb.Message.getFieldWithDefault(msg, 1, ""), - minLength: jspb.Message.getFieldWithDefault(msg, 2, 0), - hasLowercase: jspb.Message.getFieldWithDefault(msg, 3, false), - hasUppercase: jspb.Message.getFieldWithDefault(msg, 4, false), - hasNumber: jspb.Message.getFieldWithDefault(msg, 5, false), - hasSymbol: jspb.Message.getFieldWithDefault(msg, 6, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate; - return proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinLength(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasLowercase(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasUppercase(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasNumber(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasSymbol(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMinLength(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getHasLowercase(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getHasUppercase(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getHasNumber(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getHasSymbol(); - if (f) { - writer.writeBool( - 6, - f - ); - } -}; - - -/** - * optional string description = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 min_length = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.getMinLength = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.setMinLength = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bool has_lowercase = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.getHasLowercase = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.setHasLowercase = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bool has_uppercase = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.getHasUppercase = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.setHasUppercase = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool has_number = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.getHasNumber = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.setHasNumber = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool has_symbol = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.getHasSymbol = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyCreate.prototype.setHasSymbol = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - minLength: jspb.Message.getFieldWithDefault(msg, 3, 0), - hasLowercase: jspb.Message.getFieldWithDefault(msg, 4, false), - hasUppercase: jspb.Message.getFieldWithDefault(msg, 5, false), - hasNumber: jspb.Message.getFieldWithDefault(msg, 6, false), - hasSymbol: jspb.Message.getFieldWithDefault(msg, 7, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate; - return proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinLength(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasLowercase(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasUppercase(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasNumber(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHasSymbol(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getMinLength(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getHasLowercase(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getHasUppercase(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getHasNumber(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getHasSymbol(); - if (f) { - writer.writeBool( - 7, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 min_length = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.getMinLength = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.setMinLength = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bool has_lowercase = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.getHasLowercase = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.setHasLowercase = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool has_uppercase = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.getHasUppercase = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.setHasUppercase = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool has_number = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.getHasNumber = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.setHasNumber = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool has_symbol = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.getHasSymbol = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordComplexityPolicyUpdate.prototype.setHasSymbol = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyID} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordAgePolicyID; - return proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyID} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordAgePolicy.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicy} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - state: jspb.Message.getFieldWithDefault(msg, 3, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - maxAgeDays: jspb.Message.getFieldWithDefault(msg, 6, 0), - expireWarnDays: jspb.Message.getFieldWithDefault(msg, 7, 0), - sequence: jspb.Message.getFieldWithDefault(msg, 8, 0), - isDefault: jspb.Message.getFieldWithDefault(msg, 9, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordAgePolicy} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordAgePolicy; - return proto.caos.zitadel.management.api.v1.PasswordAgePolicy.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicy} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordAgePolicy} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {!proto.caos.zitadel.management.api.v1.PolicyState} */ (reader.readEnum()); - msg.setState(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxAgeDays(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExpireWarnDays(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDefault(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordAgePolicy.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicy} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getMaxAgeDays(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } - f = message.getExpireWarnDays(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 8, - f - ); - } - f = message.getIsDefault(); - if (f) { - writer.writeBool( - 9, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional PolicyState state = 3; - * @return {!proto.caos.zitadel.management.api.v1.PolicyState} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.PolicyState} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.PolicyState} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional uint64 max_age_days = 6; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.getMaxAgeDays = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.setMaxAgeDays = function(value) { - jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional uint64 expire_warn_days = 7; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.getExpireWarnDays = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.setExpireWarnDays = function(value) { - jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint64 sequence = 8; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional bool is_default = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.getIsDefault = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicy.prototype.setIsDefault = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.toObject = function(includeInstance, msg) { - var f, obj = { - description: jspb.Message.getFieldWithDefault(msg, 1, ""), - maxAgeDays: jspb.Message.getFieldWithDefault(msg, 2, 0), - expireWarnDays: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate; - return proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxAgeDays(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExpireWarnDays(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMaxAgeDays(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getExpireWarnDays(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } -}; - - -/** - * optional string description = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 max_age_days = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.prototype.getMaxAgeDays = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.prototype.setMaxAgeDays = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 expire_warn_days = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.prototype.getExpireWarnDays = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyCreate.prototype.setExpireWarnDays = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - maxAgeDays: jspb.Message.getFieldWithDefault(msg, 3, 0), - expireWarnDays: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate; - return proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxAgeDays(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setExpireWarnDays(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getMaxAgeDays(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getExpireWarnDays(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 max_age_days = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.prototype.getMaxAgeDays = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.prototype.setMaxAgeDays = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 expire_warn_days = 4; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.prototype.getExpireWarnDays = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordAgePolicyUpdate.prototype.setExpireWarnDays = function(value) { - jspb.Message.setProto3IntField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID; - return proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - state: jspb.Message.getFieldWithDefault(msg, 3, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - maxAttempts: jspb.Message.getFieldWithDefault(msg, 6, 0), - showLockOutFailures: jspb.Message.getFieldWithDefault(msg, 7, false), - sequence: jspb.Message.getFieldWithDefault(msg, 8, 0), - isDefault: jspb.Message.getFieldWithDefault(msg, 9, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy; - return proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {!proto.caos.zitadel.management.api.v1.PolicyState} */ (reader.readEnum()); - msg.setState(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxAttempts(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setShowLockOutFailures(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDefault(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getMaxAttempts(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } - f = message.getShowLockOutFailures(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 8, - f - ); - } - f = message.getIsDefault(); - if (f) { - writer.writeBool( - 9, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional PolicyState state = 3; - * @return {!proto.caos.zitadel.management.api.v1.PolicyState} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.PolicyState} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.PolicyState} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional uint64 max_attempts = 6; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.getMaxAttempts = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.setMaxAttempts = function(value) { - jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional bool show_lock_out_failures = 7; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.getShowLockOutFailures = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.setShowLockOutFailures = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional uint64 sequence = 8; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional bool is_default = 9; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.getIsDefault = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 9, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicy.prototype.setIsDefault = function(value) { - jspb.Message.setProto3BooleanField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.toObject = function(includeInstance, msg) { - var f, obj = { - description: jspb.Message.getFieldWithDefault(msg, 1, ""), - maxAttempts: jspb.Message.getFieldWithDefault(msg, 2, 0), - showLockOutFailures: jspb.Message.getFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate; - return proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxAttempts(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setShowLockOutFailures(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMaxAttempts(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getShowLockOutFailures(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional string description = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 max_attempts = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.prototype.getMaxAttempts = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.prototype.setMaxAttempts = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bool show_lock_out_failures = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.prototype.getShowLockOutFailures = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyCreate.prototype.setShowLockOutFailures = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - maxAttempts: jspb.Message.getFieldWithDefault(msg, 3, 0), - showLockOutFailures: jspb.Message.getFieldWithDefault(msg, 4, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate; - return proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMaxAttempts(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setShowLockOutFailures(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getMaxAttempts(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getShowLockOutFailures(); - if (f) { - writer.writeBool( - 4, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 max_attempts = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.prototype.getMaxAttempts = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.prototype.setMaxAttempts = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bool show_lock_out_failures = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.prototype.getShowLockOutFailures = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.PasswordLockoutPolicyUpdate.prototype.setShowLockOutFailures = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgIamPolicy.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgIamPolicy} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.toObject = function(includeInstance, msg) { - var f, obj = { - orgId: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - userLoginMustBeDomain: jspb.Message.getFieldWithDefault(msg, 3, false), - pb_default: jspb.Message.getFieldWithDefault(msg, 4, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgIamPolicy} - */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgIamPolicy; - return proto.caos.zitadel.management.api.v1.OrgIamPolicy.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgIamPolicy} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgIamPolicy} - */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOrgId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUserLoginMustBeDomain(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDefault(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgIamPolicy.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgIamPolicy} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrgId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getUserLoginMustBeDomain(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getDefault(); - if (f) { - writer.writeBool( - 4, - f - ); - } -}; - - -/** - * optional string org_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.prototype.getOrgId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.prototype.setOrgId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.prototype.setDescription = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool user_login_must_be_domain = 3; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.prototype.getUserLoginMustBeDomain = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.prototype.setUserLoginMustBeDomain = function(value) { - jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bool default = 4; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.prototype.getDefault = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.OrgIamPolicy.prototype.setDefault = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgID.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgID} - */ -proto.caos.zitadel.management.api.v1.OrgID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgID; - return proto.caos.zitadel.management.api.v1.OrgID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgID} - */ -proto.caos.zitadel.management.api.v1.OrgID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.Org.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.Org.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.Org} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Org.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 5, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.Org} - */ -proto.caos.zitadel.management.api.v1.Org.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.Org; - return proto.caos.zitadel.management.api.v1.Org.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.Org} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.Org} - */ -proto.caos.zitadel.management.api.v1.Org.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.OrgState} */ (reader.readEnum()); - msg.setState(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.Org.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.Org.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.Org} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Org.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Org.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Org.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional OrgState state = 2; - * @return {!proto.caos.zitadel.management.api.v1.OrgState} - */ -proto.caos.zitadel.management.api.v1.Org.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.OrgState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.OrgState} value */ -proto.caos.zitadel.management.api.v1.Org.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.Org.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.Org.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.Org.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.Org.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.Org.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.Org.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.Org.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.Org.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string name = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Org.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Org.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional uint64 sequence = 6; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.Org.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.Org.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 5, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgView} - */ -proto.caos.zitadel.management.api.v1.OrgView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgView; - return proto.caos.zitadel.management.api.v1.OrgView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgView} - */ -proto.caos.zitadel.management.api.v1.OrgView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.OrgState} */ (reader.readEnum()); - msg.setState(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional OrgState state = 2; - * @return {!proto.caos.zitadel.management.api.v1.OrgState} - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.OrgState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.OrgState} value */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string name = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional uint64 sequence = 6; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.Domain.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.Domain.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.Domain} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Domain.toObject = function(includeInstance, msg) { - var f, obj = { - domain: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.Domain} - */ -proto.caos.zitadel.management.api.v1.Domain.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.Domain; - return proto.caos.zitadel.management.api.v1.Domain.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.Domain} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.Domain} - */ -proto.caos.zitadel.management.api.v1.Domain.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDomain(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.Domain.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.Domain.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.Domain} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Domain.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDomain(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string domain = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Domain.prototype.getDomain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Domain.prototype.setDomain = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.OrgDomains.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgDomains.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgDomains.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgDomains} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomains.toObject = function(includeInstance, msg) { - var f, obj = { - domainsList: jspb.Message.toObjectList(msg.getDomainsList(), - proto.caos.zitadel.management.api.v1.OrgDomain.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomains} - */ -proto.caos.zitadel.management.api.v1.OrgDomains.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgDomains; - return proto.caos.zitadel.management.api.v1.OrgDomains.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomains} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomains} - */ -proto.caos.zitadel.management.api.v1.OrgDomains.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.caos.zitadel.management.api.v1.OrgDomain; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.OrgDomain.deserializeBinaryFromReader); - msg.addDomains(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgDomains.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgDomains.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomains} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomains.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDomainsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.caos.zitadel.management.api.v1.OrgDomain.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated OrgDomain domains = 1; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OrgDomains.prototype.getDomainsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.OrgDomain, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OrgDomains.prototype.setDomainsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OrgDomain=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.OrgDomain} - */ -proto.caos.zitadel.management.api.v1.OrgDomains.prototype.addDomains = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.caos.zitadel.management.api.v1.OrgDomain, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OrgDomains.prototype.clearDomainsList = function() { - this.setDomainsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgDomain.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgDomain} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomain.toObject = function(includeInstance, msg) { - var f, obj = { - orgId: jspb.Message.getFieldWithDefault(msg, 1, ""), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - domain: jspb.Message.getFieldWithDefault(msg, 4, ""), - verified: jspb.Message.getFieldWithDefault(msg, 5, false), - primary: jspb.Message.getFieldWithDefault(msg, 6, false), - sequence: jspb.Message.getFieldWithDefault(msg, 7, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomain} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgDomain; - return proto.caos.zitadel.management.api.v1.OrgDomain.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomain} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomain} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOrgId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDomain(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setVerified(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPrimary(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgDomain.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomain} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomain.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrgId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDomain(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getVerified(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getPrimary(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } -}; - - -/** - * optional string org_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.getOrgId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.setOrgId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string domain = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.getDomain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.setDomain = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool verified = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.getVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.setVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool primary = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.getPrimary = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.setPrimary = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional uint64 sequence = 7; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgDomain.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgDomainView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.toObject = function(includeInstance, msg) { - var f, obj = { - orgId: jspb.Message.getFieldWithDefault(msg, 1, ""), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - domain: jspb.Message.getFieldWithDefault(msg, 4, ""), - verified: jspb.Message.getFieldWithDefault(msg, 5, false), - primary: jspb.Message.getFieldWithDefault(msg, 6, false), - sequence: jspb.Message.getFieldWithDefault(msg, 7, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomainView} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgDomainView; - return proto.caos.zitadel.management.api.v1.OrgDomainView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomainView} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOrgId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDomain(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setVerified(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPrimary(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgDomainView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOrgId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDomain(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getVerified(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getPrimary(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } -}; - - -/** - * optional string org_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.getOrgId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.setOrgId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string domain = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.getDomain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.setDomain = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool verified = 5; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.getVerified = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.setVerified = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool primary = 6; - * Note that Boolean fields may be set to 0/1 when serialized from a Java server. - * You should avoid comparisons like {@code val === true/false} in those cases. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.getPrimary = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 6, false)); -}; - - -/** @param {boolean} value */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.setPrimary = function(value) { - jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional uint64 sequence = 7; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgDomainView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.AddOrgDomainRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.toObject = function(includeInstance, msg) { - var f, obj = { - domain: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.AddOrgDomainRequest} - */ -proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.AddOrgDomainRequest; - return proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.AddOrgDomainRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.AddOrgDomainRequest} - */ -proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDomain(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.AddOrgDomainRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDomain(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string domain = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.prototype.getDomain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.AddOrgDomainRequest.prototype.setDomain = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.toObject = function(includeInstance, msg) { - var f, obj = { - domain: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest} - */ -proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest; - return proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest} - */ -proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDomain(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDomain(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string domain = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.prototype.getDomain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.RemoveOrgDomainRequest.prototype.setDomain = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.management.api.v1.OrgDomainView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse; - return proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.OrgDomainView; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.OrgDomainView.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.OrgDomainView.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated OrgDomainView result = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.OrgDomainView, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.OrgDomainView} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.OrgDomainView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest; - return proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = new proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * repeated OrgDomainSearchQuery queries = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery; - return proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.management.api.v1.OrgDomainSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional OrgDomainSearchKey key = 1; - * @return {!proto.caos.zitadel.management.api.v1.OrgDomainSearchKey} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.OrgDomainSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.OrgDomainSearchKey} value */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.management.api.v1.SearchMethod} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.SearchMethod} value */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgMemberRoles.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberRoles} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles.toObject = function(includeInstance, msg) { - var f, obj = { - rolesList: jspb.Message.getRepeatedField(msg, 1) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberRoles} - */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgMemberRoles; - return proto.caos.zitadel.management.api.v1.OrgMemberRoles.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberRoles} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberRoles} - */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgMemberRoles.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberRoles} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string roles = 1; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OrgMemberRoles.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.OrgMember.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgMember.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgMember} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMember.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - rolesList: jspb.Message.getRepeatedField(msg, 2), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - sequence: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgMember} - */ -proto.caos.zitadel.management.api.v1.OrgMember.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgMember; - return proto.caos.zitadel.management.api.v1.OrgMember.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgMember} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgMember} - */ -proto.caos.zitadel.management.api.v1.OrgMember.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgMember.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgMember} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMember.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string roles = 2; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - -/** - * optional google.protobuf.Timestamp change_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional uint64 sequence = 5; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgMember.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.AddOrgMemberRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - rolesList: jspb.Message.getRepeatedField(msg, 2) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.AddOrgMemberRequest} - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.AddOrgMemberRequest; - return proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.AddOrgMemberRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.AddOrgMemberRequest} - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.AddOrgMemberRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string roles = 2; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.AddOrgMemberRequest.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - rolesList: jspb.Message.getRepeatedField(msg, 2) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest} - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest; - return proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest} - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string roles = 2; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ChangeOrgMemberRequest.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest} - */ -proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest; - return proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest} - */ -proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.RemoveOrgMemberRequest.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.management.api.v1.OrgMemberView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse; - return proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.OrgMemberView; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.OrgMemberView.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.OrgMemberView.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated OrgMemberView result = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.OrgMemberView, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberView} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.OrgMemberView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgMemberView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - rolesList: jspb.Message.getRepeatedField(msg, 2), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - sequence: jspb.Message.getFieldWithDefault(msg, 5, 0), - userName: jspb.Message.getFieldWithDefault(msg, 6, ""), - email: jspb.Message.getFieldWithDefault(msg, 7, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 8, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 9, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberView} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgMemberView; - return proto.caos.zitadel.management.api.v1.OrgMemberView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberView} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgMemberView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string roles = 2; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - -/** - * optional google.protobuf.Timestamp change_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional uint64 sequence = 5; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional string user_name = 6; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string email = 7; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string first_name = 8; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string last_name = 9; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgMemberView.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 9, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest; - return proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = new proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * repeated OrgMemberSearchQuery queries = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery; - return proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.management.api.v1.OrgMemberSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional OrgMemberSearchKey key = 1; - * @return {!proto.caos.zitadel.management.api.v1.OrgMemberSearchKey} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.OrgMemberSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.OrgMemberSearchKey} value */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.management.api.v1.SearchMethod} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.SearchMethod} value */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectCreateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectCreateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectCreateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectCreateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectCreateRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectCreateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectCreateRequest; - return proto.caos.zitadel.management.api.v1.ProjectCreateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectCreateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectCreateRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectCreateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectCreateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectCreateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectCreateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectCreateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectCreateRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectCreateRequest.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectUpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectUpdateRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectUpdateRequest; - return proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectUpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectUpdateRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectUpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectUpdateRequest.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.management.api.v1.ProjectView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectSearchResponse; - return proto.caos.zitadel.management.api.v1.ProjectSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.ProjectView; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectView.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.ProjectView.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated ProjectView result = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectView, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectView} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.ProjectView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectView.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - state: jspb.Message.getFieldWithDefault(msg, 3, 0), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - resourceOwner: jspb.Message.getFieldWithDefault(msg, 6, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 7, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectView} - */ -proto.caos.zitadel.management.api.v1.ProjectView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectView; - return proto.caos.zitadel.management.api.v1.ProjectView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectView} - */ -proto.caos.zitadel.management.api.v1.ProjectView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {!proto.caos.zitadel.management.api.v1.ProjectState} */ (reader.readEnum()); - msg.setState(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setResourceOwner(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getResourceOwner(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional ProjectState state = 3; - * @return {!proto.caos.zitadel.management.api.v1.ProjectState} - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.ProjectState} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.ProjectState} value */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp change_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string resource_owner = 6; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.getResourceOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.setResourceOwner = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint64 sequence = 7; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 7, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.ProjectSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectSearchRequest; - return proto.caos.zitadel.management.api.v1.ProjectSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = new proto.caos.zitadel.management.api.v1.ProjectSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.caos.zitadel.management.api.v1.ProjectSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * repeated ProjectSearchQuery queries = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectSearchQuery, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.caos.zitadel.management.api.v1.ProjectSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectSearchQuery; - return proto.caos.zitadel.management.api.v1.ProjectSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.management.api.v1.ProjectSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional ProjectSearchKey key = 1; - * @return {!proto.caos.zitadel.management.api.v1.ProjectSearchKey} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.ProjectSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.ProjectSearchKey} value */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.management.api.v1.SearchMethod} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.SearchMethod} value */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.Projects.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.Projects.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.Projects.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.Projects} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Projects.toObject = function(includeInstance, msg) { - var f, obj = { - projectsList: jspb.Message.toObjectList(msg.getProjectsList(), - proto.caos.zitadel.management.api.v1.Project.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.Projects} - */ -proto.caos.zitadel.management.api.v1.Projects.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.Projects; - return proto.caos.zitadel.management.api.v1.Projects.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.Projects} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.Projects} - */ -proto.caos.zitadel.management.api.v1.Projects.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.caos.zitadel.management.api.v1.Project; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.Project.deserializeBinaryFromReader); - msg.addProjects(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.Projects.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.Projects.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.Projects} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Projects.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.caos.zitadel.management.api.v1.Project.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Project projects = 1; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.Projects.prototype.getProjectsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.Project, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.Projects.prototype.setProjectsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.Project=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.Project} - */ -proto.caos.zitadel.management.api.v1.Projects.prototype.addProjects = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.caos.zitadel.management.api.v1.Project, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.Projects.prototype.clearProjectsList = function() { - this.setProjectsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.Project.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.Project.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.Project} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Project.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - state: jspb.Message.getFieldWithDefault(msg, 3, 0), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - sequence: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.Project} - */ -proto.caos.zitadel.management.api.v1.Project.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.Project; - return proto.caos.zitadel.management.api.v1.Project.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.Project} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.Project} - */ -proto.caos.zitadel.management.api.v1.Project.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {!proto.caos.zitadel.management.api.v1.ProjectState} */ (reader.readEnum()); - msg.setState(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.Project.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.Project.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.Project} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Project.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Project.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Project.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Project.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Project.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional ProjectState state = 3; - * @return {!proto.caos.zitadel.management.api.v1.ProjectState} - */ -proto.caos.zitadel.management.api.v1.Project.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.ProjectState} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.ProjectState} value */ -proto.caos.zitadel.management.api.v1.Project.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp change_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.Project.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.Project.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.Project.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.Project.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.Project.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.Project.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.Project.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.Project.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional uint64 sequence = 6; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.Project.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.Project.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 6, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectMemberRoles.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberRoles} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles.toObject = function(includeInstance, msg) { - var f, obj = { - rolesList: jspb.Message.getRepeatedField(msg, 1) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberRoles} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectMemberRoles; - return proto.caos.zitadel.management.api.v1.ProjectMemberRoles.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberRoles} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberRoles} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectMemberRoles.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberRoles} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string roles = 1; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRoles.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectMember.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectMember.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectMember} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMember.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - rolesList: jspb.Message.getRepeatedField(msg, 2), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - sequence: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMember} - */ -proto.caos.zitadel.management.api.v1.ProjectMember.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectMember; - return proto.caos.zitadel.management.api.v1.ProjectMember.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMember} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMember} - */ -proto.caos.zitadel.management.api.v1.ProjectMember.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectMember.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMember} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMember.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string roles = 2; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - -/** - * optional google.protobuf.Timestamp change_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional uint64 sequence = 5; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectMember.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectMemberAdd.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberAdd} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - rolesList: jspb.Message.getRepeatedField(msg, 3) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberAdd} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectMemberAdd; - return proto.caos.zitadel.management.api.v1.ProjectMemberAdd.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberAdd} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberAdd} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectMemberAdd.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberAdd} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string roles = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectMemberAdd.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectMemberChange.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberChange} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - rolesList: jspb.Message.getRepeatedField(msg, 3) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberChange} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectMemberChange; - return proto.caos.zitadel.management.api.v1.ProjectMemberChange.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberChange} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberChange} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectMemberChange.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberChange} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string roles = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectMemberChange.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRemove.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectMemberRemove.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberRemove} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRemove.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberRemove} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRemove.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectMemberRemove; - return proto.caos.zitadel.management.api.v1.ProjectMemberRemove.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberRemove} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberRemove} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRemove.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRemove.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectMemberRemove.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberRemove} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRemove.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRemove.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberRemove.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberRemove.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberRemove.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectRoleAdd.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAdd} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 3, ""), - group: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleAdd} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectRoleAdd; - return proto.caos.zitadel.management.api.v1.ProjectRoleAdd.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAdd} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleAdd} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setGroup(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectRoleAdd.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAdd} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getGroup(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.prototype.setKey = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string display_name = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string group = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.prototype.getGroup = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleAdd.prototype.setGroup = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - projectRolesList: jspb.Message.toObjectList(msg.getProjectRolesList(), - proto.caos.zitadel.management.api.v1.ProjectRoleAdd.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk; - return proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new proto.caos.zitadel.management.api.v1.ProjectRoleAdd; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectRoleAdd.deserializeBinaryFromReader); - msg.addProjectRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getProjectRolesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.caos.zitadel.management.api.v1.ProjectRoleAdd.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated ProjectRoleAdd project_roles = 2; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.prototype.getProjectRolesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectRoleAdd, 2)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.prototype.setProjectRolesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleAdd=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleAdd} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.prototype.addProjectRoles = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.caos.zitadel.management.api.v1.ProjectRoleAdd, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectRoleAddBulk.prototype.clearProjectRolesList = function() { - this.setProjectRolesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectRoleChange.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleChange} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 3, ""), - group: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleChange} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectRoleChange; - return proto.caos.zitadel.management.api.v1.ProjectRoleChange.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleChange} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleChange} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setGroup(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectRoleChange.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleChange} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getGroup(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.prototype.setKey = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string display_name = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string group = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.prototype.getGroup = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleChange.prototype.setGroup = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectRole.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectRole} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRole.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 3, ""), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - group: jspb.Message.getFieldWithDefault(msg, 6, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 7, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRole} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectRole; - return proto.caos.zitadel.management.api.v1.ProjectRole.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRole} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRole} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setGroup(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectRole.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRole} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRole.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getGroup(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.setKey = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string display_name = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string group = 6; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.getGroup = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.setGroup = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint64 sequence = 7; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectRole.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectRoleView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 3, ""), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - group: jspb.Message.getFieldWithDefault(msg, 6, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 7, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleView} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectRoleView; - return proto.caos.zitadel.management.api.v1.ProjectRoleView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleView} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setGroup(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectRoleView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getGroup(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.setKey = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string display_name = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string group = 6; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.getGroup = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.setGroup = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint64 sequence = 7; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleRemove.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectRoleRemove.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleRemove} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleRemove.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleRemove} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleRemove.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectRoleRemove; - return proto.caos.zitadel.management.api.v1.ProjectRoleRemove.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleRemove} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleRemove} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleRemove.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleRemove.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectRoleRemove.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleRemove} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleRemove.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleRemove.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleRemove.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleRemove.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleRemove.prototype.setKey = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.management.api.v1.ProjectRoleView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse; - return proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.ProjectRoleView; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectRoleView.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.ProjectRoleView.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated ProjectRoleView result = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectRoleView, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleView} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.ProjectRoleView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest; - return proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 offset = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 limit = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated ProjectRoleSearchQuery queries = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery; - return proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional ProjectRoleSearchKey key = 1; - * @return {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchKey} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.ProjectRoleSearchKey} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.management.api.v1.SearchMethod} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.SearchMethod} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.repeatedFields_ = [6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectMemberView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userName: jspb.Message.getFieldWithDefault(msg, 2, ""), - email: jspb.Message.getFieldWithDefault(msg, 3, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 4, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 5, ""), - rolesList: jspb.Message.getRepeatedField(msg, 6), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - sequence: jspb.Message.getFieldWithDefault(msg, 10, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberView} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectMemberView; - return proto.caos.zitadel.management.api.v1.ProjectMemberView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberView} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectMemberView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 10, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_name = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string email = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string first_name = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string last_name = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * repeated string roles = 6; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 6, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 6, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - -/** - * optional google.protobuf.Timestamp change_date = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional uint64 sequence = 10; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 10, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.management.api.v1.ProjectMemberView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse; - return proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.ProjectMemberView; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectMemberView.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.ProjectMemberView.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated ProjectMemberView result = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectMemberView, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberView} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.ProjectMemberView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest; - return proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 offset = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 limit = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated ProjectMemberSearchQuery queries = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery; - return proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional ProjectMemberSearchKey key = 1; - * @return {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchKey} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.ProjectMemberSearchKey} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.management.api.v1.SearchMethod} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.SearchMethod} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.caos.zitadel.management.api.v1.Application.oneofGroups_ = [[8]]; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.Application.AppConfigCase = { - APP_CONFIG_NOT_SET: 0, - OIDC_CONFIG: 8 -}; - -/** - * @return {proto.caos.zitadel.management.api.v1.Application.AppConfigCase} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.getAppConfigCase = function() { - return /** @type {proto.caos.zitadel.management.api.v1.Application.AppConfigCase} */(jspb.Message.computeOneofCase(this, proto.caos.zitadel.management.api.v1.Application.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.Application.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.Application} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Application.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 5, ""), - oidcConfig: (f = msg.getOidcConfig()) && proto.caos.zitadel.management.api.v1.OIDCConfig.toObject(includeInstance, f), - sequence: jspb.Message.getFieldWithDefault(msg, 9, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.Application} - */ -proto.caos.zitadel.management.api.v1.Application.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.Application; - return proto.caos.zitadel.management.api.v1.Application.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.Application} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.Application} - */ -proto.caos.zitadel.management.api.v1.Application.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.AppState} */ (reader.readEnum()); - msg.setState(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 8: - var value = new proto.caos.zitadel.management.api.v1.OIDCConfig; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.OIDCConfig.deserializeBinaryFromReader); - msg.setOidcConfig(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.Application.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.Application} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.Application.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getOidcConfig(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.caos.zitadel.management.api.v1.OIDCConfig.serializeBinaryToWriter - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Application.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional AppState state = 2; - * @return {!proto.caos.zitadel.management.api.v1.AppState} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.AppState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.AppState} value */ -proto.caos.zitadel.management.api.v1.Application.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.Application.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.Application.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.Application.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.Application.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string name = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.Application.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional OIDCConfig oidc_config = 8; - * @return {?proto.caos.zitadel.management.api.v1.OIDCConfig} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.getOidcConfig = function() { - return /** @type{?proto.caos.zitadel.management.api.v1.OIDCConfig} */ ( - jspb.Message.getWrapperField(this, proto.caos.zitadel.management.api.v1.OIDCConfig, 8)); -}; - - -/** @param {?proto.caos.zitadel.management.api.v1.OIDCConfig|undefined} value */ -proto.caos.zitadel.management.api.v1.Application.prototype.setOidcConfig = function(value) { - jspb.Message.setOneofWrapperField(this, 8, proto.caos.zitadel.management.api.v1.Application.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.Application.prototype.clearOidcConfig = function() { - this.setOidcConfig(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.hasOidcConfig = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional uint64 sequence = 9; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.Application.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.Application.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ApplicationUpdate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ApplicationUpdate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - id: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationUpdate} - */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ApplicationUpdate; - return proto.caos.zitadel.management.api.v1.ApplicationUpdate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationUpdate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationUpdate} - */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ApplicationUpdate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationUpdate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string name = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ApplicationUpdate.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.repeatedFields_ = [1,2,3,8]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OIDCConfig.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OIDCConfig} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.toObject = function(includeInstance, msg) { - var f, obj = { - redirectUrisList: jspb.Message.getRepeatedField(msg, 1), - responseTypesList: jspb.Message.getRepeatedField(msg, 2), - grantTypesList: jspb.Message.getRepeatedField(msg, 3), - applicationType: jspb.Message.getFieldWithDefault(msg, 4, 0), - clientId: jspb.Message.getFieldWithDefault(msg, 5, ""), - clientSecret: jspb.Message.getFieldWithDefault(msg, 6, ""), - authMethodType: jspb.Message.getFieldWithDefault(msg, 7, 0), - postLogoutRedirectUrisList: jspb.Message.getRepeatedField(msg, 8) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OIDCConfig} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OIDCConfig; - return proto.caos.zitadel.management.api.v1.OIDCConfig.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OIDCConfig} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OIDCConfig} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addRedirectUris(value); - break; - case 2: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setResponseTypesList(value); - break; - case 3: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setGrantTypesList(value); - break; - case 4: - var value = /** @type {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} */ (reader.readEnum()); - msg.setApplicationType(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setClientId(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setClientSecret(value); - break; - case 7: - var value = /** @type {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} */ (reader.readEnum()); - msg.setAuthMethodType(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.addPostLogoutRedirectUris(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OIDCConfig.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OIDCConfig} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRedirectUrisList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getResponseTypesList(); - if (f.length > 0) { - writer.writePackedEnum( - 2, - f - ); - } - f = message.getGrantTypesList(); - if (f.length > 0) { - writer.writePackedEnum( - 3, - f - ); - } - f = message.getApplicationType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getClientId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getClientSecret(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getAuthMethodType(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getPostLogoutRedirectUrisList(); - if (f.length > 0) { - writer.writeRepeatedString( - 8, - f - ); - } -}; - - -/** - * repeated string redirect_uris = 1; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.getRedirectUrisList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.setRedirectUrisList = function(value) { - jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.addRedirectUris = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.clearRedirectUrisList = function() { - this.setRedirectUrisList([]); -}; - - -/** - * repeated OIDCResponseType response_types = 2; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.getResponseTypesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.setResponseTypesList = function(value) { - jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OIDCResponseType} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.addResponseTypes = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.clearResponseTypesList = function() { - this.setResponseTypesList([]); -}; - - -/** - * repeated OIDCGrantType grant_types = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.getGrantTypesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.setGrantTypesList = function(value) { - jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OIDCGrantType} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.addGrantTypes = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.clearGrantTypesList = function() { - this.setGrantTypesList([]); -}; - - -/** - * optional OIDCApplicationType application_type = 4; - * @return {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.getApplicationType = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} value */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.setApplicationType = function(value) { - jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string client_id = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.getClientId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.setClientId = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string client_secret = 6; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.getClientSecret = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.setClientSecret = function(value) { - jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional OIDCAuthMethodType auth_method_type = 7; - * @return {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.getAuthMethodType = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} value */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.setAuthMethodType = function(value) { - jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * repeated string post_logout_redirect_uris = 8; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.getPostLogoutRedirectUrisList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 8)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.setPostLogoutRedirectUrisList = function(value) { - jspb.Message.setField(this, 8, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.addPostLogoutRedirectUris = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 8, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCConfig.prototype.clearPostLogoutRedirectUrisList = function() { - this.setPostLogoutRedirectUrisList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.repeatedFields_ = [3,4,5,8]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OIDCApplicationCreate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - redirectUrisList: jspb.Message.getRepeatedField(msg, 3), - responseTypesList: jspb.Message.getRepeatedField(msg, 4), - grantTypesList: jspb.Message.getRepeatedField(msg, 5), - applicationType: jspb.Message.getFieldWithDefault(msg, 6, 0), - authMethodType: jspb.Message.getFieldWithDefault(msg, 7, 0), - postLogoutRedirectUrisList: jspb.Message.getRepeatedField(msg, 8) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OIDCApplicationCreate} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OIDCApplicationCreate; - return proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OIDCApplicationCreate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OIDCApplicationCreate} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addRedirectUris(value); - break; - case 4: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setResponseTypesList(value); - break; - case 5: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setGrantTypesList(value); - break; - case 6: - var value = /** @type {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} */ (reader.readEnum()); - msg.setApplicationType(value); - break; - case 7: - var value = /** @type {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} */ (reader.readEnum()); - msg.setAuthMethodType(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.addPostLogoutRedirectUris(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OIDCApplicationCreate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRedirectUrisList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getResponseTypesList(); - if (f.length > 0) { - writer.writePackedEnum( - 4, - f - ); - } - f = message.getGrantTypesList(); - if (f.length > 0) { - writer.writePackedEnum( - 5, - f - ); - } - f = message.getApplicationType(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getAuthMethodType(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getPostLogoutRedirectUrisList(); - if (f.length > 0) { - writer.writeRepeatedString( - 8, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string redirect_uris = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.getRedirectUrisList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.setRedirectUrisList = function(value) { - jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.addRedirectUris = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.clearRedirectUrisList = function() { - this.setRedirectUrisList([]); -}; - - -/** - * repeated OIDCResponseType response_types = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.getResponseTypesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.setResponseTypesList = function(value) { - jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OIDCResponseType} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.addResponseTypes = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.clearResponseTypesList = function() { - this.setResponseTypesList([]); -}; - - -/** - * repeated OIDCGrantType grant_types = 5; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.getGrantTypesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.setGrantTypesList = function(value) { - jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OIDCGrantType} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.addGrantTypes = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.clearGrantTypesList = function() { - this.setGrantTypesList([]); -}; - - -/** - * optional OIDCApplicationType application_type = 6; - * @return {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.getApplicationType = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} value */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.setApplicationType = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional OIDCAuthMethodType auth_method_type = 7; - * @return {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.getAuthMethodType = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} value */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.setAuthMethodType = function(value) { - jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * repeated string post_logout_redirect_uris = 8; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.getPostLogoutRedirectUrisList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 8)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.setPostLogoutRedirectUrisList = function(value) { - jspb.Message.setField(this, 8, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.addPostLogoutRedirectUris = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 8, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationCreate.prototype.clearPostLogoutRedirectUrisList = function() { - this.setPostLogoutRedirectUrisList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.repeatedFields_ = [3,4,5,8]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.OIDCConfigUpdate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 2, ""), - redirectUrisList: jspb.Message.getRepeatedField(msg, 3), - responseTypesList: jspb.Message.getRepeatedField(msg, 4), - grantTypesList: jspb.Message.getRepeatedField(msg, 5), - applicationType: jspb.Message.getFieldWithDefault(msg, 6, 0), - authMethodType: jspb.Message.getFieldWithDefault(msg, 7, 0), - postLogoutRedirectUrisList: jspb.Message.getRepeatedField(msg, 8) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.OIDCConfigUpdate} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.OIDCConfigUpdate; - return proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.OIDCConfigUpdate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.OIDCConfigUpdate} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addRedirectUris(value); - break; - case 4: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setResponseTypesList(value); - break; - case 5: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setGrantTypesList(value); - break; - case 6: - var value = /** @type {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} */ (reader.readEnum()); - msg.setApplicationType(value); - break; - case 7: - var value = /** @type {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} */ (reader.readEnum()); - msg.setAuthMethodType(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.addPostLogoutRedirectUris(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.OIDCConfigUpdate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRedirectUrisList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getResponseTypesList(); - if (f.length > 0) { - writer.writePackedEnum( - 4, - f - ); - } - f = message.getGrantTypesList(); - if (f.length > 0) { - writer.writePackedEnum( - 5, - f - ); - } - f = message.getApplicationType(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getAuthMethodType(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getPostLogoutRedirectUrisList(); - if (f.length > 0) { - writer.writeRepeatedString( - 8, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string application_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.setApplicationId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string redirect_uris = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.getRedirectUrisList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.setRedirectUrisList = function(value) { - jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.addRedirectUris = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.clearRedirectUrisList = function() { - this.setRedirectUrisList([]); -}; - - -/** - * repeated OIDCResponseType response_types = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.getResponseTypesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.setResponseTypesList = function(value) { - jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OIDCResponseType} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.addResponseTypes = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.clearResponseTypesList = function() { - this.setResponseTypesList([]); -}; - - -/** - * repeated OIDCGrantType grant_types = 5; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.getGrantTypesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.setGrantTypesList = function(value) { - jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.OIDCGrantType} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.addGrantTypes = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.clearGrantTypesList = function() { - this.setGrantTypesList([]); -}; - - -/** - * optional OIDCApplicationType application_type = 6; - * @return {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.getApplicationType = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.OIDCApplicationType} value */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.setApplicationType = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional OIDCAuthMethodType auth_method_type = 7; - * @return {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.getAuthMethodType = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.OIDCAuthMethodType} value */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.setAuthMethodType = function(value) { - jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * repeated string post_logout_redirect_uris = 8; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.getPostLogoutRedirectUrisList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 8)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.setPostLogoutRedirectUrisList = function(value) { - jspb.Message.setField(this, 8, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.addPostLogoutRedirectUris = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 8, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.OIDCConfigUpdate.prototype.clearPostLogoutRedirectUrisList = function() { - this.setPostLogoutRedirectUrisList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ClientSecret.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ClientSecret.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ClientSecret} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ClientSecret.toObject = function(includeInstance, msg) { - var f, obj = { - clientSecret: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ClientSecret} - */ -proto.caos.zitadel.management.api.v1.ClientSecret.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ClientSecret; - return proto.caos.zitadel.management.api.v1.ClientSecret.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ClientSecret} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ClientSecret} - */ -proto.caos.zitadel.management.api.v1.ClientSecret.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClientSecret(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ClientSecret.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ClientSecret.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ClientSecret} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ClientSecret.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClientSecret(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string client_secret = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ClientSecret.prototype.getClientSecret = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ClientSecret.prototype.setClientSecret = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.caos.zitadel.management.api.v1.ApplicationView.oneofGroups_ = [[8]]; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.AppConfigCase = { - APP_CONFIG_NOT_SET: 0, - OIDC_CONFIG: 8 -}; - -/** - * @return {proto.caos.zitadel.management.api.v1.ApplicationView.AppConfigCase} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.getAppConfigCase = function() { - return /** @type {proto.caos.zitadel.management.api.v1.ApplicationView.AppConfigCase} */(jspb.Message.computeOneofCase(this, proto.caos.zitadel.management.api.v1.ApplicationView.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ApplicationView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ApplicationView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 5, ""), - oidcConfig: (f = msg.getOidcConfig()) && proto.caos.zitadel.management.api.v1.OIDCConfig.toObject(includeInstance, f), - sequence: jspb.Message.getFieldWithDefault(msg, 9, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationView} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ApplicationView; - return proto.caos.zitadel.management.api.v1.ApplicationView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationView} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.AppState} */ (reader.readEnum()); - msg.setState(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 8: - var value = new proto.caos.zitadel.management.api.v1.OIDCConfig; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.OIDCConfig.deserializeBinaryFromReader); - msg.setOidcConfig(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ApplicationView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getOidcConfig(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.caos.zitadel.management.api.v1.OIDCConfig.serializeBinaryToWriter - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional AppState state = 2; - * @return {!proto.caos.zitadel.management.api.v1.AppState} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.AppState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.AppState} value */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string name = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional OIDCConfig oidc_config = 8; - * @return {?proto.caos.zitadel.management.api.v1.OIDCConfig} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.getOidcConfig = function() { - return /** @type{?proto.caos.zitadel.management.api.v1.OIDCConfig} */ ( - jspb.Message.getWrapperField(this, proto.caos.zitadel.management.api.v1.OIDCConfig, 8)); -}; - - -/** @param {?proto.caos.zitadel.management.api.v1.OIDCConfig|undefined} value */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.setOidcConfig = function(value) { - jspb.Message.setOneofWrapperField(this, 8, proto.caos.zitadel.management.api.v1.ApplicationView.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.clearOidcConfig = function() { - this.setOidcConfig(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.hasOidcConfig = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional uint64 sequence = 9; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ApplicationView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 9, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.management.api.v1.ApplicationView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ApplicationSearchResponse; - return proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.ApplicationView; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ApplicationView.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.ApplicationView.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated ApplicationView result = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ApplicationView, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ApplicationView} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.ApplicationView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ApplicationSearchRequest; - return proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.ApplicationSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 offset = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 limit = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated ApplicationSearchQuery queries = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ApplicationSearchQuery, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ApplicationSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.ApplicationSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ApplicationSearchQuery; - return proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ApplicationSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.management.api.v1.ApplicationSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional ApplicationSearchKey key = 1; - * @return {!proto.caos.zitadel.management.api.v1.ApplicationSearchKey} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.ApplicationSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.ApplicationSearchKey} value */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.management.api.v1.SearchMethod} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.SearchMethod} value */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ApplicationSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrant.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrant} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - projectId: jspb.Message.getFieldWithDefault(msg, 2, ""), - grantedOrgId: jspb.Message.getFieldWithDefault(msg, 3, ""), - roleKeysList: jspb.Message.getRepeatedField(msg, 4), - state: jspb.Message.getFieldWithDefault(msg, 5, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - sequence: jspb.Message.getFieldWithDefault(msg, 9, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrant} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrant; - return proto.caos.zitadel.management.api.v1.ProjectGrant.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrant} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrant} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setGrantedOrgId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addRoleKeys(value); - break; - case 5: - var value = /** @type {!proto.caos.zitadel.management.api.v1.ProjectGrantState} */ (reader.readEnum()); - msg.setState(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrant.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrant} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getGrantedOrgId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRoleKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string project_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string granted_org_id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.getGrantedOrgId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.setGrantedOrgId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string role_keys = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.getRoleKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.setRoleKeysList = function(value) { - jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.addRoleKeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.clearRoleKeysList = function() { - this.setRoleKeysList([]); -}; - - -/** - * optional ProjectGrantState state = 5; - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantState} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.ProjectGrantState} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.ProjectGrantState} value */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional uint64 sequence = 9; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrant.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 9, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantCreate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantCreate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - grantedOrgId: jspb.Message.getFieldWithDefault(msg, 2, ""), - roleKeysList: jspb.Message.getRepeatedField(msg, 3) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantCreate} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantCreate; - return proto.caos.zitadel.management.api.v1.ProjectGrantCreate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantCreate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantCreate} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGrantedOrgId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addRoleKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantCreate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantCreate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGrantedOrgId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRoleKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string granted_org_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.prototype.getGrantedOrgId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.prototype.setGrantedOrgId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string role_keys = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.prototype.getRoleKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.prototype.setRoleKeysList = function(value) { - jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.prototype.addRoleKeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantCreate.prototype.clearRoleKeysList = function() { - this.setRoleKeysList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUpdate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - id: jspb.Message.getFieldWithDefault(msg, 2, ""), - roleKeysList: jspb.Message.getRepeatedField(msg, 3) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantUpdate} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantUpdate; - return proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUpdate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantUpdate} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addRoleKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUpdate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRoleKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string role_keys = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.prototype.getRoleKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.prototype.setRoleKeysList = function(value) { - jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.prototype.addRoleKeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUpdate.prototype.clearRoleKeysList = function() { - this.setRoleKeysList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantID.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - id: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantID} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantID; - return proto.caos.zitadel.management.api.v1.ProjectGrantID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantID} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantID.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantID.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - projectId: jspb.Message.getFieldWithDefault(msg, 2, ""), - grantedOrgId: jspb.Message.getFieldWithDefault(msg, 3, ""), - grantedOrgName: jspb.Message.getFieldWithDefault(msg, 4, ""), - roleKeysList: jspb.Message.getRepeatedField(msg, 5), - state: jspb.Message.getFieldWithDefault(msg, 6, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - projectName: jspb.Message.getFieldWithDefault(msg, 9, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 10, 0), - resourceOwner: jspb.Message.getFieldWithDefault(msg, 11, ""), - resourceOwnerName: jspb.Message.getFieldWithDefault(msg, 12, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantView} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantView; - return proto.caos.zitadel.management.api.v1.ProjectGrantView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantView} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setGrantedOrgId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setGrantedOrgName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addRoleKeys(value); - break; - case 6: - var value = /** @type {!proto.caos.zitadel.management.api.v1.ProjectGrantState} */ (reader.readEnum()); - msg.setState(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectName(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setResourceOwner(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setResourceOwnerName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getGrantedOrgId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getGrantedOrgName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRoleKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getProjectName(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 10, - f - ); - } - f = message.getResourceOwner(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getResourceOwnerName(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string project_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string granted_org_id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getGrantedOrgId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setGrantedOrgId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string granted_org_name = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getGrantedOrgName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setGrantedOrgName = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * repeated string role_keys = 5; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getRoleKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setRoleKeysList = function(value) { - jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.addRoleKeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.clearRoleKeysList = function() { - this.setRoleKeysList([]); -}; - - -/** - * optional ProjectGrantState state = 6; - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantState} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.ProjectGrantState} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.ProjectGrantState} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional string project_name = 9; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getProjectName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setProjectName = function(value) { - jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional uint64 sequence = 10; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional string resource_owner = 11; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getResourceOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setResourceOwner = function(value) { - jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string resource_owner_name = 12; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.getResourceOwnerName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantView.prototype.setResourceOwnerName = function(value) { - jspb.Message.setProto3StringField(this, 12, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.management.api.v1.ProjectGrantView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse; - return proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.ProjectGrantView; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectGrantView.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.ProjectGrantView.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated ProjectGrantView result = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectGrantView, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantView} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.ProjectGrantView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.ProjectSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest} - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest; - return proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest} - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = new proto.caos.zitadel.management.api.v1.ProjectSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.caos.zitadel.management.api.v1.ProjectSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * repeated ProjectSearchQuery queries = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectSearchQuery, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectSearchQuery} - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.caos.zitadel.management.api.v1.ProjectSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.GrantedProjectSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest; - return proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 offset = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 limit = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated ProjectGrantSearchQuery queries = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery; - return proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional ProjectGrantSearchKey key = 1; - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchKey} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.ProjectGrantSearchKey} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.management.api.v1.SearchMethod} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.SearchMethod} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.toObject = function(includeInstance, msg) { - var f, obj = { - rolesList: jspb.Message.getRepeatedField(msg, 1) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles; - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string roles = 1; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRoles.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantMember.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMember} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - rolesList: jspb.Message.getRepeatedField(msg, 2), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - sequence: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMember} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantMember; - return proto.caos.zitadel.management.api.v1.ProjectGrantMember.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMember} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMember} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantMember.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMember} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string roles = 2; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - -/** - * optional google.protobuf.Timestamp change_date = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional uint64 sequence = 5; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMember.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - grantId: jspb.Message.getFieldWithDefault(msg, 2, ""), - userId: jspb.Message.getFieldWithDefault(msg, 3, ""), - rolesList: jspb.Message.getRepeatedField(msg, 4) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd; - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGrantId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGrantId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string grant_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.getGrantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.setGrantId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string user_id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string roles = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberAdd.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - grantId: jspb.Message.getFieldWithDefault(msg, 2, ""), - userId: jspb.Message.getFieldWithDefault(msg, 3, ""), - rolesList: jspb.Message.getRepeatedField(msg, 4) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange; - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGrantId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGrantId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string grant_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.getGrantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.setGrantId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string user_id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string roles = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberChange.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - grantId: jspb.Message.getFieldWithDefault(msg, 2, ""), - userId: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove; - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGrantId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGrantId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string grant_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.prototype.getGrantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.prototype.setGrantId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string user_id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberRemove.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.repeatedFields_ = [6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userName: jspb.Message.getFieldWithDefault(msg, 2, ""), - email: jspb.Message.getFieldWithDefault(msg, 3, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 4, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 5, ""), - rolesList: jspb.Message.getRepeatedField(msg, 6), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - sequence: jspb.Message.getFieldWithDefault(msg, 9, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberView} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantMemberView; - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberView} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addRoles(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRolesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_name = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string email = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string first_name = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string last_name = 5; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * repeated string roles = 6; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.getRolesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.setRolesList = function(value) { - jspb.Message.setField(this, 6, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.addRoles = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 6, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.clearRolesList = function() { - this.setRolesList([]); -}; - - -/** - * optional google.protobuf.Timestamp change_date = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional uint64 sequence = 9; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 9, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse; - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.ProjectGrantMemberView; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberView.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated ProjectGrantMemberView result = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectGrantMemberView, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberView} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.ProjectGrantMemberView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - grantId: jspb.Message.getFieldWithDefault(msg, 2, ""), - offset: jspb.Message.getFieldWithDefault(msg, 3, 0), - limit: jspb.Message.getFieldWithDefault(msg, 4, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest; - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGrantId(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 5: - var value = new proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGrantId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string grant_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.getGrantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.setGrantId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 offset = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 limit = 4; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * repeated ProjectGrantMemberSearchQuery queries = 5; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery, 5)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery; - return proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional ProjectGrantMemberSearchKey key = 1; - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.management.api.v1.SearchMethod} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.SearchMethod} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserGrant.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserGrant.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserGrant} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrant.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - orgId: jspb.Message.getFieldWithDefault(msg, 3, ""), - projectId: jspb.Message.getFieldWithDefault(msg, 4, ""), - roleKeysList: jspb.Message.getRepeatedField(msg, 5), - state: jspb.Message.getFieldWithDefault(msg, 6, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - sequence: jspb.Message.getFieldWithDefault(msg, 9, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserGrant} - */ -proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserGrant; - return proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserGrant} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserGrant} - */ -proto.caos.zitadel.management.api.v1.UserGrant.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setOrgId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addRoleKeys(value); - break; - case 6: - var value = /** @type {!proto.caos.zitadel.management.api.v1.UserGrantState} */ (reader.readEnum()); - msg.setState(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserGrant.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserGrant} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrant.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getOrgId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRoleKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string org_id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.getOrgId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.setOrgId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string project_id = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * repeated string role_keys = 5; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.getRoleKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.setRoleKeysList = function(value) { - jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.addRoleKeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.clearRoleKeysList = function() { - this.setRoleKeysList([]); -}; - - -/** - * optional UserGrantState state = 6; - * @return {!proto.caos.zitadel.management.api.v1.UserGrantState} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.UserGrantState} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.UserGrantState} value */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional uint64 sequence = 9; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserGrant.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 9, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreateBulk} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.toObject = function(includeInstance, msg) { - var f, obj = { - userGrantsList: jspb.Message.toObjectList(msg.getUserGrantsList(), - proto.caos.zitadel.management.api.v1.UserGrantCreate.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantCreateBulk} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserGrantCreateBulk; - return proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreateBulk} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantCreateBulk} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.caos.zitadel.management.api.v1.UserGrantCreate; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.UserGrantCreate.deserializeBinaryFromReader); - msg.addUserGrants(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreateBulk} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserGrantsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.caos.zitadel.management.api.v1.UserGrantCreate.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated UserGrantCreate user_grants = 1; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.prototype.getUserGrantsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.UserGrantCreate, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.prototype.setUserGrantsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.UserGrantCreate} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.prototype.addUserGrants = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.caos.zitadel.management.api.v1.UserGrantCreate, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserGrantCreateBulk.prototype.clearUserGrantsList = function() { - this.setUserGrantsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserGrantCreate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - projectId: jspb.Message.getFieldWithDefault(msg, 2, ""), - roleKeysList: jspb.Message.getRepeatedField(msg, 3) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantCreate} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserGrantCreate; - return proto.caos.zitadel.management.api.v1.UserGrantCreate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantCreate} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addRoleKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserGrantCreate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantCreate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRoleKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string project_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string role_keys = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.prototype.getRoleKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.prototype.setRoleKeysList = function(value) { - jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.prototype.addRoleKeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserGrantCreate.prototype.clearRoleKeysList = function() { - this.setRoleKeysList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.toObject = function(includeInstance, msg) { - var f, obj = { - userGrantsList: jspb.Message.toObjectList(msg.getUserGrantsList(), - proto.caos.zitadel.management.api.v1.UserGrantUpdate.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk; - return proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.caos.zitadel.management.api.v1.UserGrantUpdate; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.UserGrantUpdate.deserializeBinaryFromReader); - msg.addUserGrants(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserGrantsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.caos.zitadel.management.api.v1.UserGrantUpdate.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated UserGrantUpdate user_grants = 1; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.prototype.getUserGrantsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.UserGrantUpdate, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.prototype.setUserGrantsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdate=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.UserGrantUpdate} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.prototype.addUserGrants = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.caos.zitadel.management.api.v1.UserGrantUpdate, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdateBulk.prototype.clearUserGrantsList = function() { - this.setUserGrantsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserGrantUpdate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - id: jspb.Message.getFieldWithDefault(msg, 2, ""), - roleKeysList: jspb.Message.getRepeatedField(msg, 3) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantUpdate} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserGrantUpdate; - return proto.caos.zitadel.management.api.v1.UserGrantUpdate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantUpdate} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addRoleKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserGrantUpdate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantUpdate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRoleKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string role_keys = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.prototype.getRoleKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.prototype.setRoleKeysList = function(value) { - jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.prototype.addRoleKeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserGrantUpdate.prototype.clearRoleKeysList = function() { - this.setRoleKeysList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.toObject = function(includeInstance, msg) { - var f, obj = { - idsList: jspb.Message.getRepeatedField(msg, 1) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk} - */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk; - return proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk} - */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string ids = 1; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.prototype.setIdsList = function(value) { - jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.prototype.addIds = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserGrantRemoveBulk.prototype.clearIdsList = function() { - this.setIdsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserGrantID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserGrantID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantID.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - id: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantID} - */ -proto.caos.zitadel.management.api.v1.UserGrantID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserGrantID; - return proto.caos.zitadel.management.api.v1.UserGrantID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantID} - */ -proto.caos.zitadel.management.api.v1.UserGrantID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserGrantID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantID.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantID.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectUserGrantID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - id: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectUserGrantID; - return proto.caos.zitadel.management.api.v1.ProjectUserGrantID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectUserGrantID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - id: jspb.Message.getFieldWithDefault(msg, 3, ""), - roleKeysList: jspb.Message.getRepeatedField(msg, 4) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate; - return proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addRoleKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRoleKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string role_keys = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.getRoleKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.setRoleKeysList = function(value) { - jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.addRoleKeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantUpdate.prototype.clearRoleKeysList = function() { - this.setRoleKeysList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.toObject = function(includeInstance, msg) { - var f, obj = { - projectGrantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - id: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID; - return proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectGrantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectGrantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string project_grant_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.prototype.getProjectGrantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.prototype.setProjectGrantId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantID.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - orgId: jspb.Message.getFieldWithDefault(msg, 2, ""), - projectGrantId: jspb.Message.getFieldWithDefault(msg, 3, ""), - projectId: jspb.Message.getFieldWithDefault(msg, 4, ""), - roleKeysList: jspb.Message.getRepeatedField(msg, 5) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate; - return proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setOrgId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectGrantId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addRoleKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOrgId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getProjectGrantId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRoleKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string org_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.getOrgId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.setOrgId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string project_grant_id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.getProjectGrantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.setProjectGrantId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string project_id = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * repeated string role_keys = 5; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.getRoleKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.setRoleKeysList = function(value) { - jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.addRoleKeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantCreate.prototype.clearRoleKeysList = function() { - this.setRoleKeysList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.toObject = function(includeInstance, msg) { - var f, obj = { - projectGrantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - id: jspb.Message.getFieldWithDefault(msg, 3, ""), - roleKeysList: jspb.Message.getRepeatedField(msg, 4) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate; - return proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectGrantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addRoleKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectGrantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRoleKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } -}; - - -/** - * optional string project_grant_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.getProjectGrantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.setProjectGrantId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string role_keys = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.getRoleKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.setRoleKeysList = function(value) { - jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.addRoleKeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantUpdate.prototype.clearRoleKeysList = function() { - this.setRoleKeysList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserGrantView.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserGrantView.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserGrantView} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantView.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - orgId: jspb.Message.getFieldWithDefault(msg, 3, ""), - projectId: jspb.Message.getFieldWithDefault(msg, 4, ""), - roleKeysList: jspb.Message.getRepeatedField(msg, 5), - state: jspb.Message.getFieldWithDefault(msg, 6, 0), - creationDate: (f = msg.getCreationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - changeDate: (f = msg.getChangeDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - userName: jspb.Message.getFieldWithDefault(msg, 9, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 10, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 11, ""), - email: jspb.Message.getFieldWithDefault(msg, 12, ""), - orgName: jspb.Message.getFieldWithDefault(msg, 13, ""), - orgDomain: jspb.Message.getFieldWithDefault(msg, 14, ""), - projectName: jspb.Message.getFieldWithDefault(msg, 15, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 16, 0), - resourceOwner: jspb.Message.getFieldWithDefault(msg, 17, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 18, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantView} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserGrantView; - return proto.caos.zitadel.management.api.v1.UserGrantView.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantView} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantView} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setOrgId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addRoleKeys(value); - break; - case 6: - var value = /** @type {!proto.caos.zitadel.management.api.v1.UserGrantState} */ (reader.readEnum()); - msg.setState(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreationDate(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setChangeDate(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setOrgName(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setOrgDomain(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectName(value); - break; - case 16: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setResourceOwner(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserGrantView.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantView} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantView.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getOrgId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRoleKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getCreationDate(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChangeDate(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getFirstName(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getLastName(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getOrgName(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } - f = message.getOrgDomain(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getProjectName(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 16, - f - ); - } - f = message.getResourceOwner(); - if (f.length > 0) { - writer.writeString( - 17, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setUserId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string org_id = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getOrgId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setOrgId = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string project_id = 4; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * repeated string role_keys = 5; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getRoleKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setRoleKeysList = function(value) { - jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.addRoleKeys = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.clearRoleKeysList = function() { - this.setRoleKeysList([]); -}; - - -/** - * optional UserGrantState state = 6; - * @return {!proto.caos.zitadel.management.api.v1.UserGrantState} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getState = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.UserGrantState} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.UserGrantState} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setState = function(value) { - jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional google.protobuf.Timestamp creation_date = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getCreationDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setCreationDate = function(value) { - jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.clearCreationDate = function() { - this.setCreationDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.hasCreationDate = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional google.protobuf.Timestamp change_date = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getChangeDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** @param {?proto.google.protobuf.Timestamp|undefined} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setChangeDate = function(value) { - jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.clearChangeDate = function() { - this.setChangeDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.hasChangeDate = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional string user_name = 9; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setUserName = function(value) { - jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string first_name = 10; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getFirstName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setFirstName = function(value) { - jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional string last_name = 11; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getLastName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setLastName = function(value) { - jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string email = 12; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setEmail = function(value) { - jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional string org_name = 13; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getOrgName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setOrgName = function(value) { - jspb.Message.setProto3StringField(this, 13, value); -}; - - -/** - * optional string org_domain = 14; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getOrgDomain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setOrgDomain = function(value) { - jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional string project_name = 15; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getProjectName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setProjectName = function(value) { - jspb.Message.setProto3StringField(this, 15, value); -}; - - -/** - * optional uint64 sequence = 16; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setSequence = function(value) { - jspb.Message.setProto3IntField(this, 16, value); -}; - - -/** - * optional string resource_owner = 17; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getResourceOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setResourceOwner = function(value) { - jspb.Message.setProto3StringField(this, 17, value); -}; - - -/** - * optional string display_name = 18; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantView.prototype.setDisplayName = function(value) { - jspb.Message.setProto3StringField(this, 18, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - totalResult: jspb.Message.getFieldWithDefault(msg, 3, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.caos.zitadel.management.api.v1.UserGrantView.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantSearchResponse} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserGrantSearchResponse; - return proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantSearchResponse} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTotalResult(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.UserGrantView; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.UserGrantView.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getTotalResult(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.UserGrantView.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 total_result = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.getTotalResult = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.setTotalResult = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated UserGrantView result = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.UserGrantView, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.setResultList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantView=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.UserGrantView} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.UserGrantView, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchResponse.prototype.clearResultList = function() { - this.setResultList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - offset: jspb.Message.getFieldWithDefault(msg, 1, 0), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantSearchRequest} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserGrantSearchRequest; - return proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantSearchRequest} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 3: - var value = new proto.caos.zitadel.management.api.v1.UserGrantSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 offset = 1; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 limit = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * repeated UserGrantSearchQuery queries = 3; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.UserGrantSearchQuery, 3)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.UserGrantSearchQuery} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.caos.zitadel.management.api.v1.UserGrantSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, 0), - method: jspb.Message.getFieldWithDefault(msg, 2, 0), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantSearchQuery} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.UserGrantSearchQuery; - return proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.UserGrantSearchQuery} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.caos.zitadel.management.api.v1.UserGrantSearchKey} */ (reader.readEnum()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (reader.readEnum()); - msg.setMethod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getMethod(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional UserGrantSearchKey key = 1; - * @return {!proto.caos.zitadel.management.api.v1.UserGrantSearchKey} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.prototype.getKey = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.UserGrantSearchKey} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchKey} value */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.prototype.setKey = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SearchMethod method = 2; - * @return {!proto.caos.zitadel.management.api.v1.SearchMethod} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.prototype.getMethod = function() { - return /** @type {!proto.caos.zitadel.management.api.v1.SearchMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {!proto.caos.zitadel.management.api.v1.SearchMethod} value */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.prototype.setMethod = function(value) { - jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.prototype.setValue = function(value) { - jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - projectId: jspb.Message.getFieldWithDefault(msg, 1, ""), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest; - return proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.UserGrantSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string project_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.setProjectId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 offset = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 limit = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated UserGrantSearchQuery queries = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.UserGrantSearchQuery, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.UserGrantSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.UserGrantSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectUserGrantSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - projectGrantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0), - queriesList: jspb.Message.toObjectList(msg.getQueriesList(), - proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest; - return proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectGrantId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - case 4: - var value = new proto.caos.zitadel.management.api.v1.UserGrantSearchQuery; - reader.readMessage(value,proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.deserializeBinaryFromReader); - msg.addQueries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProjectGrantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getQueriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.caos.zitadel.management.api.v1.UserGrantSearchQuery.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string project_grant_id = 1; - * @return {string} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.getProjectGrantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.setProjectGrantId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 offset = 2; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.setOffset = function(value) { - jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint64 limit = 3; - * @return {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** @param {number} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.setLimit = function(value) { - jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated UserGrantSearchQuery queries = 4; - * @return {!Array} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.getQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.caos.zitadel.management.api.v1.UserGrantSearchQuery, 4)); -}; - - -/** @param {!Array} value */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.setQueriesList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.caos.zitadel.management.api.v1.UserGrantSearchQuery=} opt_value - * @param {number=} opt_index - * @return {!proto.caos.zitadel.management.api.v1.UserGrantSearchQuery} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.addQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.caos.zitadel.management.api.v1.UserGrantSearchQuery, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - */ -proto.caos.zitadel.management.api.v1.ProjectGrantUserGrantSearchRequest.prototype.clearQueriesList = function() { - this.setQueriesList([]); -}; - - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.UserState = { - USERSTATE_UNSPECIFIED: 0, - USERSTATE_ACTIVE: 1, - USERSTATE_INACTIVE: 2, - USERSTATE_DELETED: 3, - USERSTATE_LOCKED: 4, - USERSTATE_SUSPEND: 5, - USERSTATE_INITIAL: 6 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.Gender = { - GENDER_UNSPECIFIED: 0, - GENDER_FEMALE: 1, - GENDER_MALE: 2, - GENDER_DIVERSE: 3 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.UserSearchKey = { - USERSEARCHKEY_UNSPECIFIED: 0, - USERSEARCHKEY_USER_NAME: 1, - USERSEARCHKEY_FIRST_NAME: 2, - USERSEARCHKEY_LAST_NAME: 3, - USERSEARCHKEY_NICK_NAME: 4, - USERSEARCHKEY_DISPLAY_NAME: 5, - USERSEARCHKEY_EMAIL: 6, - USERSEARCHKEY_STATE: 7 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.SearchMethod = { - SEARCHMETHOD_EQUALS: 0, - SEARCHMETHOD_STARTS_WITH: 1, - SEARCHMETHOD_CONTAINS: 2, - SEARCHMETHOD_EQUALS_IGNORE_CASE: 3, - SEARCHMETHOD_STARTS_WITH_IGNORE_CASE: 4, - SEARCHMETHOD_CONTAINS_IGNORE_CASE: 5, - SEARCHMETHOD_NOT_EQUALS: 6, - SEARCHMETHOD_GREATER_THAN: 7, - SEARCHMETHOD_LESS_THAN: 8, - SEARCHMETHOD_IS_ONE_OF: 9, - SEARCHMETHOD_LIST_CONTAINS: 10 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.MfaType = { - MFATYPE_UNSPECIFIED: 0, - MFATYPE_SMS: 1, - MFATYPE_OTP: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.MFAState = { - MFASTATE_UNSPECIFIED: 0, - MFASTATE_NOT_READY: 1, - MFASTATE_READY: 2, - MFASTATE_REMOVED: 3 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.NotificationType = { - NOTIFICATIONTYPE_EMAIL: 0, - NOTIFICATIONTYPE_SMS: 1 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.PolicyState = { - POLICYSTATE_UNSPECIFIED: 0, - POLICYSTATE_ACTIVE: 1, - POLICYSTATE_INACTIVE: 2, - POLICYSTATE_DELETED: 3 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.OrgState = { - ORGSTATE_UNSPECIFIED: 0, - ORGSTATE_ACTIVE: 1, - ORGSTATE_INACTIVE: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.OrgDomainSearchKey = { - ORGDOMAINSEARCHKEY_UNSPECIFIED: 0, - ORGDOMAINSEARCHKEY_DOMAIN: 1 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.OrgMemberSearchKey = { - ORGMEMBERSEARCHKEY_UNSPECIFIED: 0, - ORGMEMBERSEARCHKEY_FIRST_NAME: 1, - ORGMEMBERSEARCHKEY_LAST_NAME: 2, - ORGMEMBERSEARCHKEY_EMAIL: 3, - ORGMEMBERSEARCHKEY_USER_ID: 4 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.ProjectSearchKey = { - PROJECTSEARCHKEY_UNSPECIFIED: 0, - PROJECTSEARCHKEY_PROJECT_NAME: 1 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.ProjectState = { - PROJECTSTATE_UNSPECIFIED: 0, - PROJECTSTATE_ACTIVE: 1, - PROJECTSTATE_INACTIVE: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.ProjectType = { - PROJECTTYPE_UNSPECIFIED: 0, - PROJECTTYPE_OWNED: 1, - PROJECTTYPE_GRANTED: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.ProjectRoleSearchKey = { - PROJECTROLESEARCHKEY_UNSPECIFIED: 0, - PROJECTROLESEARCHKEY_KEY: 1, - PROJECTROLESEARCHKEY_DISPLAY_NAME: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.ProjectMemberSearchKey = { - PROJECTMEMBERSEARCHKEY_UNSPECIFIED: 0, - PROJECTMEMBERSEARCHKEY_FIRST_NAME: 1, - PROJECTMEMBERSEARCHKEY_LAST_NAME: 2, - PROJECTMEMBERSEARCHKEY_EMAIL: 3, - PROJECTMEMBERSEARCHKEY_USER_ID: 4, - PROJECTMEMBERSEARCHKEY_USER_NAME: 5 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.AppState = { - APPSTATE_UNSPECIFIED: 0, - APPSTATE_ACTIVE: 1, - APPSTATE_INACTIVE: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.OIDCResponseType = { - OIDCRESPONSETYPE_CODE: 0, - OIDCRESPONSETYPE_ID_TOKEN: 1, - OIDCRESPONSETYPE_TOKEN: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.OIDCGrantType = { - OIDCGRANTTYPE_AUTHORIZATION_CODE: 0, - OIDCGRANTTYPE_IMPLICIT: 1, - OIDCGRANTTYPE_REFRESH_TOKEN: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.OIDCApplicationType = { - OIDCAPPLICATIONTYPE_WEB: 0, - OIDCAPPLICATIONTYPE_USER_AGENT: 1, - OIDCAPPLICATIONTYPE_NATIVE: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.OIDCAuthMethodType = { - OIDCAUTHMETHODTYPE_BASIC: 0, - OIDCAUTHMETHODTYPE_POST: 1, - OIDCAUTHMETHODTYPE_NONE: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.ApplicationSearchKey = { - APPLICATIONSERACHKEY_UNSPECIFIED: 0, - APPLICATIONSEARCHKEY_APP_NAME: 1 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantState = { - PROJECTGRANTSTATE_UNSPECIFIED: 0, - PROJECTGRANTSTATE_ACTIVE: 1, - PROJECTGRANTSTATE_INACTIVE: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantSearchKey = { - PROJECTGRANTSEARCHKEY_UNSPECIFIED: 0, - PROJECTGRANTSEARCHKEY_PROJECT_NAME: 1, - PROJECTGRANTSEARCHKEY_ROLE_KEY: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey = { - PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED: 0, - PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME: 1, - PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME: 2, - PROJECTGRANTMEMBERSEARCHKEY_EMAIL: 3, - PROJECTGRANTMEMBERSEARCHKEY_USER_ID: 4, - PROJECTGRANTMEMBERSEARCHKEY_USER_NAME: 5 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.UserGrantState = { - USERGRANTSTATE_UNSPECIFIED: 0, - USERGRANTSTATE_ACTIVE: 1, - USERGRANTSTATE_INACTIVE: 2 -}; - -/** - * @enum {number} - */ -proto.caos.zitadel.management.api.v1.UserGrantSearchKey = { - USERGRANTSEARCHKEY_UNSPECIFIED: 0, - USERGRANTSEARCHKEY_PROJECT_ID: 1, - USERGRANTSEARCHKEY_USER_ID: 2, - USERGRANTSEARCHKEY_ORG_ID: 3, - USERGRANTSEARCHKEY_ROLE_KEY: 4 -}; - -goog.object.extend(exports, proto.caos.zitadel.management.api.v1); diff --git a/console/src/app/proto/generated/protoc-gen-swagger/options/annotations_pb.d.ts b/console/src/app/proto/generated/protoc-gen-swagger/options/annotations_pb.d.ts deleted file mode 100644 index 336ce12bb9..0000000000 --- a/console/src/app/proto/generated/protoc-gen-swagger/options/annotations_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {} diff --git a/console/src/app/proto/generated/protoc-gen-swagger/options/annotations_pb.js b/console/src/app/proto/generated/protoc-gen-swagger/options/annotations_pb.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/console/src/app/proto/generated/validate/validate_pb.d.ts b/console/src/app/proto/generated/validate/validate_pb.d.ts deleted file mode 100644 index 336ce12bb9..0000000000 --- a/console/src/app/proto/generated/validate/validate_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {} diff --git a/console/src/app/proto/generated/validate/validate_pb.js b/console/src/app/proto/generated/validate/validate_pb.js deleted file mode 100644 index e69de29bb2..0000000000