UNPKG

google-gax

Version:
1,043 lines (865 loc) 228 kB
/** * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import Long = require('long'); import * as $protobuf from "protobufjs"; /** Namespace google. */ export namespace google { /** Namespace iam. */ namespace iam { /** Namespace v1. */ namespace v1 { /** Represents a IAMPolicy */ class IAMPolicy extends $protobuf.rpc.Service { /** * Constructs a new IAMPolicy service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited */ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** * Creates new IAMPolicy service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IAMPolicy; /** * Calls SetIamPolicy. * @param request SetIamPolicyRequest message or plain object * @param callback Node-style callback called with the error, if any, and Policy */ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.iam.v1.IAMPolicy.SetIamPolicyCallback): void; /** * Calls SetIamPolicy. * @param request SetIamPolicyRequest message or plain object * @returns Promise */ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>; /** * Calls GetIamPolicy. * @param request GetIamPolicyRequest message or plain object * @param callback Node-style callback called with the error, if any, and Policy */ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.iam.v1.IAMPolicy.GetIamPolicyCallback): void; /** * Calls GetIamPolicy. * @param request GetIamPolicyRequest message or plain object * @returns Promise */ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>; /** * Calls TestIamPermissions. * @param request TestIamPermissionsRequest message or plain object * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse */ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.iam.v1.IAMPolicy.TestIamPermissionsCallback): void; /** * Calls TestIamPermissions. * @param request TestIamPermissionsRequest message or plain object * @returns Promise */ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>; } namespace IAMPolicy { /** * Callback as used by {@link google.iam.v1.IAMPolicy#setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** * Callback as used by {@link google.iam.v1.IAMPolicy#getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** * Callback as used by {@link google.iam.v1.IAMPolicy#testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; } /** Properties of a SetIamPolicyRequest. */ interface ISetIamPolicyRequest { /** SetIamPolicyRequest resource */ resource?: (string|null); /** SetIamPolicyRequest policy */ policy?: (google.iam.v1.IPolicy|null); } /** Represents a SetIamPolicyRequest. */ class SetIamPolicyRequest implements ISetIamPolicyRequest { /** * Constructs a new SetIamPolicyRequest. * @param [properties] Properties to set */ constructor(properties?: google.iam.v1.ISetIamPolicyRequest); /** SetIamPolicyRequest resource. */ public resource: string; /** SetIamPolicyRequest policy. */ public policy?: (google.iam.v1.IPolicy|null); /** * Creates a new SetIamPolicyRequest instance using the specified properties. * @param [properties] Properties to set * @returns SetIamPolicyRequest instance */ public static create(properties?: google.iam.v1.ISetIamPolicyRequest): google.iam.v1.SetIamPolicyRequest; /** * Encodes the specified SetIamPolicyRequest message. Does not implicitly {@link google.iam.v1.SetIamPolicyRequest.verify|verify} messages. * @param message SetIamPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.iam.v1.ISetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SetIamPolicyRequest message, length delimited. Does not implicitly {@link google.iam.v1.SetIamPolicyRequest.verify|verify} messages. * @param message SetIamPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.iam.v1.ISetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SetIamPolicyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SetIamPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.SetIamPolicyRequest; /** * Decodes a SetIamPolicyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SetIamPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.SetIamPolicyRequest; /** * Verifies a SetIamPolicyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a SetIamPolicyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SetIamPolicyRequest */ public static fromObject(object: { [k: string]: any }): google.iam.v1.SetIamPolicyRequest; /** * Creates a plain object from a SetIamPolicyRequest message. Also converts values to other types if specified. * @param message SetIamPolicyRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.iam.v1.SetIamPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SetIamPolicyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a GetIamPolicyRequest. */ interface IGetIamPolicyRequest { /** GetIamPolicyRequest resource */ resource?: (string|null); /** GetIamPolicyRequest options */ options?: (google.iam.v1.IGetPolicyOptions|null); } /** Represents a GetIamPolicyRequest. */ class GetIamPolicyRequest implements IGetIamPolicyRequest { /** * Constructs a new GetIamPolicyRequest. * @param [properties] Properties to set */ constructor(properties?: google.iam.v1.IGetIamPolicyRequest); /** GetIamPolicyRequest resource. */ public resource: string; /** GetIamPolicyRequest options. */ public options?: (google.iam.v1.IGetPolicyOptions|null); /** * Creates a new GetIamPolicyRequest instance using the specified properties. * @param [properties] Properties to set * @returns GetIamPolicyRequest instance */ public static create(properties?: google.iam.v1.IGetIamPolicyRequest): google.iam.v1.GetIamPolicyRequest; /** * Encodes the specified GetIamPolicyRequest message. Does not implicitly {@link google.iam.v1.GetIamPolicyRequest.verify|verify} messages. * @param message GetIamPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.iam.v1.IGetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GetIamPolicyRequest message, length delimited. Does not implicitly {@link google.iam.v1.GetIamPolicyRequest.verify|verify} messages. * @param message GetIamPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.iam.v1.IGetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetIamPolicyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GetIamPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.GetIamPolicyRequest; /** * Decodes a GetIamPolicyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns GetIamPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.GetIamPolicyRequest; /** * Verifies a GetIamPolicyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a GetIamPolicyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns GetIamPolicyRequest */ public static fromObject(object: { [k: string]: any }): google.iam.v1.GetIamPolicyRequest; /** * Creates a plain object from a GetIamPolicyRequest message. Also converts values to other types if specified. * @param message GetIamPolicyRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.iam.v1.GetIamPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetIamPolicyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a TestIamPermissionsRequest. */ interface ITestIamPermissionsRequest { /** TestIamPermissionsRequest resource */ resource?: (string|null); /** TestIamPermissionsRequest permissions */ permissions?: (string[]|null); } /** Represents a TestIamPermissionsRequest. */ class TestIamPermissionsRequest implements ITestIamPermissionsRequest { /** * Constructs a new TestIamPermissionsRequest. * @param [properties] Properties to set */ constructor(properties?: google.iam.v1.ITestIamPermissionsRequest); /** TestIamPermissionsRequest resource. */ public resource: string; /** TestIamPermissionsRequest permissions. */ public permissions: string[]; /** * Creates a new TestIamPermissionsRequest instance using the specified properties. * @param [properties] Properties to set * @returns TestIamPermissionsRequest instance */ public static create(properties?: google.iam.v1.ITestIamPermissionsRequest): google.iam.v1.TestIamPermissionsRequest; /** * Encodes the specified TestIamPermissionsRequest message. Does not implicitly {@link google.iam.v1.TestIamPermissionsRequest.verify|verify} messages. * @param message TestIamPermissionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.iam.v1.ITestIamPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified TestIamPermissionsRequest message, length delimited. Does not implicitly {@link google.iam.v1.TestIamPermissionsRequest.verify|verify} messages. * @param message TestIamPermissionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.iam.v1.ITestIamPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TestIamPermissionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns TestIamPermissionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.TestIamPermissionsRequest; /** * Decodes a TestIamPermissionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns TestIamPermissionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.TestIamPermissionsRequest; /** * Verifies a TestIamPermissionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a TestIamPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns TestIamPermissionsRequest */ public static fromObject(object: { [k: string]: any }): google.iam.v1.TestIamPermissionsRequest; /** * Creates a plain object from a TestIamPermissionsRequest message. Also converts values to other types if specified. * @param message TestIamPermissionsRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.iam.v1.TestIamPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this TestIamPermissionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a TestIamPermissionsResponse. */ interface ITestIamPermissionsResponse { /** TestIamPermissionsResponse permissions */ permissions?: (string[]|null); } /** Represents a TestIamPermissionsResponse. */ class TestIamPermissionsResponse implements ITestIamPermissionsResponse { /** * Constructs a new TestIamPermissionsResponse. * @param [properties] Properties to set */ constructor(properties?: google.iam.v1.ITestIamPermissionsResponse); /** TestIamPermissionsResponse permissions. */ public permissions: string[]; /** * Creates a new TestIamPermissionsResponse instance using the specified properties. * @param [properties] Properties to set * @returns TestIamPermissionsResponse instance */ public static create(properties?: google.iam.v1.ITestIamPermissionsResponse): google.iam.v1.TestIamPermissionsResponse; /** * Encodes the specified TestIamPermissionsResponse message. Does not implicitly {@link google.iam.v1.TestIamPermissionsResponse.verify|verify} messages. * @param message TestIamPermissionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.iam.v1.ITestIamPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified TestIamPermissionsResponse message, length delimited. Does not implicitly {@link google.iam.v1.TestIamPermissionsResponse.verify|verify} messages. * @param message TestIamPermissionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.iam.v1.ITestIamPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TestIamPermissionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns TestIamPermissionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.TestIamPermissionsResponse; /** * Decodes a TestIamPermissionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns TestIamPermissionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.TestIamPermissionsResponse; /** * Verifies a TestIamPermissionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a TestIamPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns TestIamPermissionsResponse */ public static fromObject(object: { [k: string]: any }): google.iam.v1.TestIamPermissionsResponse; /** * Creates a plain object from a TestIamPermissionsResponse message. Also converts values to other types if specified. * @param message TestIamPermissionsResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.iam.v1.TestIamPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this TestIamPermissionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a GetPolicyOptions. */ interface IGetPolicyOptions { /** GetPolicyOptions requestedPolicyVersion */ requestedPolicyVersion?: (number|null); } /** Represents a GetPolicyOptions. */ class GetPolicyOptions implements IGetPolicyOptions { /** * Constructs a new GetPolicyOptions. * @param [properties] Properties to set */ constructor(properties?: google.iam.v1.IGetPolicyOptions); /** GetPolicyOptions requestedPolicyVersion. */ public requestedPolicyVersion: number; /** * Creates a new GetPolicyOptions instance using the specified properties. * @param [properties] Properties to set * @returns GetPolicyOptions instance */ public static create(properties?: google.iam.v1.IGetPolicyOptions): google.iam.v1.GetPolicyOptions; /** * Encodes the specified GetPolicyOptions message. Does not implicitly {@link google.iam.v1.GetPolicyOptions.verify|verify} messages. * @param message GetPolicyOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.iam.v1.IGetPolicyOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GetPolicyOptions message, length delimited. Does not implicitly {@link google.iam.v1.GetPolicyOptions.verify|verify} messages. * @param message GetPolicyOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.iam.v1.IGetPolicyOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetPolicyOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GetPolicyOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.GetPolicyOptions; /** * Decodes a GetPolicyOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns GetPolicyOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.GetPolicyOptions; /** * Verifies a GetPolicyOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a GetPolicyOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns GetPolicyOptions */ public static fromObject(object: { [k: string]: any }): google.iam.v1.GetPolicyOptions; /** * Creates a plain object from a GetPolicyOptions message. Also converts values to other types if specified. * @param message GetPolicyOptions * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.iam.v1.GetPolicyOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetPolicyOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a Policy. */ interface IPolicy { /** Policy version */ version?: (number|null); /** Policy bindings */ bindings?: (google.iam.v1.IBinding[]|null); /** Policy etag */ etag?: (Uint8Array|null); } /** Represents a Policy. */ class Policy implements IPolicy { /** * Constructs a new Policy. * @param [properties] Properties to set */ constructor(properties?: google.iam.v1.IPolicy); /** Policy version. */ public version: number; /** Policy bindings. */ public bindings: google.iam.v1.IBinding[]; /** Policy etag. */ public etag: Uint8Array; /** * Creates a new Policy instance using the specified properties. * @param [properties] Properties to set * @returns Policy instance */ public static create(properties?: google.iam.v1.IPolicy): google.iam.v1.Policy; /** * Encodes the specified Policy message. Does not implicitly {@link google.iam.v1.Policy.verify|verify} messages. * @param message Policy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.iam.v1.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Policy message, length delimited. Does not implicitly {@link google.iam.v1.Policy.verify|verify} messages. * @param message Policy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.iam.v1.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Policy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Policy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.Policy; /** * Decodes a Policy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Policy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.Policy; /** * Verifies a Policy message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Policy message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Policy */ public static fromObject(object: { [k: string]: any }): google.iam.v1.Policy; /** * Creates a plain object from a Policy message. Also converts values to other types if specified. * @param message Policy * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.iam.v1.Policy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Policy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a Binding. */ interface IBinding { /** Binding role */ role?: (string|null); /** Binding members */ members?: (string[]|null); /** Binding condition */ condition?: (google.type.IExpr|null); } /** Represents a Binding. */ class Binding implements IBinding { /** * Constructs a new Binding. * @param [properties] Properties to set */ constructor(properties?: google.iam.v1.IBinding); /** Binding role. */ public role: string; /** Binding members. */ public members: string[]; /** Binding condition. */ public condition?: (google.type.IExpr|null); /** * Creates a new Binding instance using the specified properties. * @param [properties] Properties to set * @returns Binding instance */ public static create(properties?: google.iam.v1.IBinding): google.iam.v1.Binding; /** * Encodes the specified Binding message. Does not implicitly {@link google.iam.v1.Binding.verify|verify} messages. * @param message Binding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.iam.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Binding message, length delimited. Does not implicitly {@link google.iam.v1.Binding.verify|verify} messages. * @param message Binding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.iam.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Binding message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Binding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.Binding; /** * Decodes a Binding message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Binding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.Binding; /** * Verifies a Binding message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Binding message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Binding */ public static fromObject(object: { [k: string]: any }): google.iam.v1.Binding; /** * Creates a plain object from a Binding message. Also converts values to other types if specified. * @param message Binding * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.iam.v1.Binding, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Binding to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a PolicyDelta. */ interface IPolicyDelta { /** PolicyDelta bindingDeltas */ bindingDeltas?: (google.iam.v1.IBindingDelta[]|null); /** PolicyDelta auditConfigDeltas */ auditConfigDeltas?: (google.iam.v1.IAuditConfigDelta[]|null); } /** Represents a PolicyDelta. */ class PolicyDelta implements IPolicyDelta { /** * Constructs a new PolicyDelta. * @param [properties] Properties to set */ constructor(properties?: google.iam.v1.IPolicyDelta); /** PolicyDelta bindingDeltas. */ public bindingDeltas: google.iam.v1.IBindingDelta[]; /** PolicyDelta auditConfigDeltas. */ public auditConfigDeltas: google.iam.v1.IAuditConfigDelta[]; /** * Creates a new PolicyDelta instance using the specified properties. * @param [properties] Properties to set * @returns PolicyDelta instance */ public static create(properties?: google.iam.v1.IPolicyDelta): google.iam.v1.PolicyDelta; /** * Encodes the specified PolicyDelta message. Does not implicitly {@link google.iam.v1.PolicyDelta.verify|verify} messages. * @param message PolicyDelta message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.iam.v1.IPolicyDelta, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PolicyDelta message, length delimited. Does not implicitly {@link google.iam.v1.PolicyDelta.verify|verify} messages. * @param message PolicyDelta message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.iam.v1.IPolicyDelta, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PolicyDelta message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns PolicyDelta * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.PolicyDelta; /** * Decodes a PolicyDelta message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns PolicyDelta * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.PolicyDelta; /** * Verifies a PolicyDelta message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a PolicyDelta message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns PolicyDelta */ public static fromObject(object: { [k: string]: any }): google.iam.v1.PolicyDelta; /** * Creates a plain object from a PolicyDelta message. Also converts values to other types if specified. * @param message PolicyDelta * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.iam.v1.PolicyDelta, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PolicyDelta to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a BindingDelta. */ interface IBindingDelta { /** BindingDelta action */ action?: (google.iam.v1.BindingDelta.Action|null); /** BindingDelta role */ role?: (string|null); /** BindingDelta member */ member?: (string|null); /** BindingDelta condition */ condition?: (google.type.IExpr|null); } /** Represents a BindingDelta. */ class BindingDelta implements IBindingDelta { /** * Constructs a new BindingDelta. * @param [properties] Properties to set */ constructor(properties?: google.iam.v1.IBindingDelta); /** BindingDelta action. */ public action: google.iam.v1.BindingDelta.Action; /** BindingDelta role. */ public role: string; /** BindingDelta member. */ public member: string; /** BindingDelta condition. */ public condition?: (google.type.IExpr|null); /** * Creates a new BindingDelta instance using the specified properties. * @param [properties] Properties to set * @returns BindingDelta instance */ public static create(properties?: google.iam.v1.IBindingDelta): google.iam.v1.BindingDelta; /** * Encodes the specified BindingDelta message. Does not implicitly {@link google.iam.v1.BindingDelta.verify|verify} messages. * @param message BindingDelta message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.iam.v1.IBindingDelta, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified BindingDelta message, length delimited. Does not implicitly {@link google.iam.v1.BindingDelta.verify|verify} messages. * @param message BindingDelta message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.iam.v1.IBindingDelta, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a BindingDelta message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns BindingDelta * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.BindingDelta; /** * Decodes a BindingDelta message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns BindingDelta * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.BindingDelta; /** * Verifies a BindingDelta message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a BindingDelta message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns BindingDelta */ public static fromObject(object: { [k: string]: any }): google.iam.v1.BindingDelta; /** * Creates a plain object from a BindingDelta message. Also converts values to other types if specified. * @param message BindingDelta * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.iam.v1.BindingDelta, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this BindingDelta to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace BindingDelta { /** Action enum. */ enum Action { ACTION_UNSPECIFIED = 0, ADD = 1, REMOVE = 2 } } /** Properties of an AuditConfigDelta. */ interface IAuditConfigDelta { /** AuditConfigDelta action */ action?: (google.iam.v1.AuditConfigDelta.Action|null); /** AuditConfigDelta service */ service?: (string|null); /** AuditConfigDelta exemptedMember */ exemptedMember?: (string|null); /** AuditConfigDelta logType */ logType?: (string|null); } /** Represents an AuditConfigDelta. */ class AuditConfigDelta implements IAuditConfigDelta { /** * Constructs a new AuditConfigDelta. * @param [properties] Properties to set */ constructor(properties?: google.iam.v1.IAuditConfigDelta); /** AuditConfigDelta action. */ public action: google.iam.v1.AuditConfigDelta.Action; /** AuditConfigDelta service. */ public service: string; /** AuditConfigDelta exemptedMember. */ public exemptedMember: string; /** AuditConfigDelta logType. */ public logType: string; /** * Creates a new AuditConfigDelta instance using the specified properties. * @param [properties] Properties to set * @returns AuditConfigDelta instance */ public static create(properties?: google.iam.v1.IAuditConfigDelta): google.iam.v1.